DD.WellWorkover.Cloud/AsbCloudWebApi/Rest/Example.http

35 lines
925 B
Plaintext
Raw Normal View History

2023-03-31 16:40:34 +05:00
@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
}
]
}