forked from ddrilling/AsbCloudServer
add test http file
This commit is contained in:
parent
c869dd705d
commit
c169f19ad2
66
AsbCloudWebApi/Rest/WellContact.http
Normal file
66
AsbCloudWebApi/Rest/WellContact.http
Normal file
@ -0,0 +1,66 @@
|
||||
@baseUrl = http://127.0.0.1:5000
|
||||
@contentType = application/json
|
||||
@auth = Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjEiLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoiZGV2IiwiaWRDb21wYW55IjoiMSIsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcm9sZSI6InJvb3QiLCJuYmYiOjE2OTc0MzcwMzEsImV4cCI6MTcyODk5NDYzMSwiaXNzIjoiYSIsImF1ZCI6ImEifQ.vB7Qb3K9gG77iP8y25zB3RcZIQk9cHkq3I1SkcooYJs
|
||||
|
||||
@uid = 20210101_000000000
|
||||
@id = 1
|
||||
@idWell = 1
|
||||
@contactTypeId = 1
|
||||
|
||||
### ïîëó÷åíèå ñïèñêà òèïîâ êîíòàêòîâ
|
||||
GET {{baseUrl}}/api/well/{{idWell}}/WellContact/types
|
||||
Content-Type: {{contentType}}
|
||||
accept: */*
|
||||
Authorization: {{auth}}
|
||||
|
||||
### Ïîëó÷åíèå êîíòàêòîâ ïî òèïó êîíòàêòà è êëþ÷ó ñêâàæèíû
|
||||
GET {{baseUrl}}/api/well/{{idWell}}/WellContact/contactType/{{contactTypeId}}
|
||||
Content-Type: {{contentType}}
|
||||
accept: */*
|
||||
Authorization: {{auth}}
|
||||
|
||||
### Ïîëó÷åíèå êîíòàêòà ïî êëþ÷ó
|
||||
GET {{baseUrl}}/api/well/{{idWell}}/WellContact/{{id}}
|
||||
Content-Type: {{contentType}}
|
||||
accept: */*
|
||||
Authorization: {{auth}}
|
||||
|
||||
### äîáàâëåíèå íîâîãî êîíòàêòà
|
||||
POST {{baseUrl}}/api/well/{{idWell}}/WellContact
|
||||
Content-Type: {{contentType}}
|
||||
accept: */*
|
||||
Authorization: {{auth}}
|
||||
|
||||
{
|
||||
"IdCompanyType" : 1,
|
||||
"IdWell": 1,
|
||||
"FullName": "Áýòìàí Ñóïåðìåíîâè÷",
|
||||
"Email": "aa@aa.aa",
|
||||
"Phone": "80000000000",
|
||||
"Position": "Ïîâàð",
|
||||
"Company": "Ìèøëåí ëòä"
|
||||
}
|
||||
|
||||
|
||||
### èçìåíåíèå êîíòàêòà
|
||||
PUT {{baseUrl}}/api/well/{{idWell}}/WellContact
|
||||
Content-Type: {{contentType}}
|
||||
accept: */*
|
||||
Authorization: {{auth}}
|
||||
|
||||
{
|
||||
"IdCompanyType" : 1,
|
||||
"IdWell": 1,
|
||||
"FullName": "Áýòìàí Ñóïåðìåíîâè÷",
|
||||
"Email": "bb@bb.bb",
|
||||
"Phone": "80000000001",
|
||||
"Position": "Ïîâàð",
|
||||
"Company": "Ìèøëåí ëòä"
|
||||
}
|
||||
|
||||
### Óäàëåíèå êîíòàêòà
|
||||
DELETE {{baseUrl}}/api/well/{{idWell}}/WellContact/{{id}}
|
||||
Content-Type: {{contentType}}
|
||||
accept: */*
|
||||
Authorization: {{auth}}
|
||||
|
Loading…
Reference in New Issue
Block a user