DD.WellWorkover.Cloud/AsbCloudWebApi/Rest/ProcessMapPlanDrillingController.http
2024-01-19 17:48:45 +05:00

132 lines
2.9 KiB
HTTP

@baseUrl = http://127.0.0.1:5000
@contentType = application/json
@contentTypeForFiles = application/octet-stream
@auth = Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjEiLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoiZGV2IiwiaWRDb21wYW55IjoiMSIsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcm9sZSI6InJvb3QiLCJuYmYiOjE2OTc0MzcwMzEsImV4cCI6MTcyODk5NDYzMSwiaXNzIjoiYSIsImF1ZCI6ImEifQ.vB7Qb3K9gG77iP8y25zB3RcZIQk9cHkq3I1SkcooYJs
@uid = 20210101_000000000
@id = 1
@idWell = 1
### ïîëó÷åíèå äàííûõ drill test ñ ïàíåëè è ñîõðàíåíèå èõ â ÅÖÏ
POST {{baseUrl}}/api/well/{{idWell}}/ProcessMapPlanDrilling
Content-Type: {{contentType}}
accept: */*
Authorization: {{auth}}
[
{
"id": 0,
"idAuthor": 0,
"idEditor": 0,
"creation": "2024-01-18T12:45:58.205Z",
"obsolete": "2024-01-18T12:45:58.205Z",
"idState": 0,
"idPrevious": 0,
"idWell": 1,
"idWellSectionType": 1,
"depthStart": 0,
"depthEnd": 10,
"idMode": 2,
"axialLoad": {
"plan": 0,
"limitMax": 0
},
"deltaPressure": {
"plan": 0,
"limitMax": 0
},
"topDriveTorque": {
"plan": 0,
"limitMax": 0
},
"topDriveSpeed": {
"plan": 0,
"limitMax": 0
},
"flow": {
"plan": 0,
"limitMax": 0
},
"ropPlan": 99999.9,
"usageSaub": 100,
"usageSpin": 100,
"comment": ""
}
]
### Ïîëó÷åíèå âñåõ
GET {{baseUrl}}/api/well/{{idWell}}/ProcessMapPlanDrilling
accept: */*
Authorization: {{auth}}
### çàìåíà ñòàðûõ çàïèñåé íîâûìè
POST {{baseUrl}}/api/well/{{idWell}}/ProcessMapPlanDrilling/replace
Content-Type: {{contentType}}
accept: */*
Authorization: {{auth}}
[
{
"id": 0,
"idAuthor": 0,
"idEditor": 0,
"creation": "2024-01-19T05:31:54.762Z",
"obsolete": "2024-01-19T05:31:54.762Z",
"idState": 0,
"idPrevious": 0,
"idWell": 1,
"idWellSectionType": 1,
"depthStart": 0,
"depthEnd": 10,
"idMode": 2,
"axialLoad": {
"plan": 0,
"limitMax": 0
},
"deltaPressure": {
"plan": 0,
"limitMax": 0
},
"topDriveTorque": {
"plan": 0,
"limitMax": 0
},
"topDriveSpeed": {
"plan": 0,
"limitMax": 0
},
"flow": {
"plan": 0,
"limitMax": 0
},
"ropPlan": 99999.9,
"usageSaub": 100,
"usageSpin": 100,
"comment": "There is no spoon"
}
]
### Ïîëó÷åíèå òîëüêî àêòóàëüíûõ
GET {{baseUrl}}/api/well/{{idWell}}/ProcessMapPlanDrilling?Moment=3000-01-01
accept: */*
Authorization: {{auth}}
### Ïîëó÷åíèå
GET {{baseUrl}}/api/well/{{idWell}}/ProcessMapPlanDrilling/dates
accept: */*
Authorization: {{auth}}
### Ïîëó÷åíèå èçìåíåíèé çà äàòó
GET {{baseUrl}}/api/well/{{idWell}}/ProcessMapPlanDrilling/changeLog?date=2024-01-19
accept: */*
Authorization: {{auth}}
### óäàëåíèå
DELETE {{baseUrl}}/api/well/{{idWell}}/ProcessMapPlanDrilling
Content-Type: {{contentType}}
accept: */*
Authorization: {{auth}}
[
1
]