forked from ddrilling/AsbCloudServer
Merge branch 'dev' into feature/refactoring-dtos-for-rtk-report
This commit is contained in:
commit
7cb16c7df9
35
AsbCloudWebApi/Rest/Example.http
Normal file
35
AsbCloudWebApi/Rest/Example.http
Normal file
@ -0,0 +1,35 @@
|
||||
@baseUrl = http://127.0.0.1:5000
|
||||
@contentType = application/json
|
||||
@auth = Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCIsImN0eSI6IkpXVCJ9.eyJpZCI6IjEiLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoiZGV2IiwiaWRDb21wYW55IjoiMSIsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcm9sZSI6InJvb3QiLCJuYmYiOjE2NjI1NDgxNjIsImV4cCI6MTY5NDEwNTc2MiwiaXNzIjoiYSIsImF1ZCI6ImEifQ.OEAlNzxi7Jat6pzDBTAjTbChskc-tdJthJexyWwwUKE
|
||||
|
||||
# https://marketplace.visualstudio.com/items?itemName=humao.rest-client
|
||||
|
||||
###
|
||||
GET {{baseUrl}}/api/schedule/test
|
||||
Content-Type: {{contentType}}
|
||||
accept: */*
|
||||
Authorization: {{auth}}
|
||||
|
||||
###
|
||||
POST {{baseUrl}}/api/schedule/test
|
||||
Content-Type: {{contentType}}
|
||||
accept: */*
|
||||
Authorization: {{auth}}
|
||||
|
||||
{
|
||||
"id": 0,
|
||||
"items": [
|
||||
{
|
||||
"id": 1,
|
||||
"value": 0.1
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"value": 1.
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"value": 2.0
|
||||
}
|
||||
]
|
||||
}
|
7
AsbCloudWebApi/Rest/Readme.md
Normal file
7
AsbCloudWebApi/Rest/Readme.md
Normal file
@ -0,0 +1,7 @@
|
||||
# Эта папка предназначена для хранения файлов для отладки/проверки web-api.
|
||||
|
||||
Файлы *.http (или *.rest) позволяют вызывать endpoint api без swagger (или postman).
|
||||
|
||||
[Документация по созданию файлов](https://marketplace.visualstudio.com/items?itemName=humao.rest-client)
|
||||
|
||||
Желательно создавать 1 файл на 1 контроллер.
|
Loading…
Reference in New Issue
Block a user