| POST | /CompletionDocumentGetById |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Id | body | string | Yes |
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /CompletionDocumentGetById HTTP/1.1
Host: s10.tdfkm.ru
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
id: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
document:
{
id: String,
userName: String,
taskId: String,
number: String,
dateUtc: 0001-01-01,
updateDateUtc: 0001-01-01,
comment: String,
uidParent: String,
objectUid: String,
projectUid: String,
completionType: String,
parentType: String,
kindOfMaintenance: String,
applicationVersion: String,
hardwares:
[
{
id: String,
uid: String,
name: String,
items:
[
{
id: String,
uid: String,
name: String,
quantity: 0,
quality:
{
uid: String,
name: String
},
unit:
{
uid: String,
name: String,
coefficients: 0
},
characteristic:
{
uid: String,
name: String
},
series:
{
uid: String,
name: String,
serialNumber: String
}
}
]
}
]
},
responseStatus:
{
errorCode: String,
message: String,
stackTrace: String,
errors:
[
{
errorCode: String,
fieldName: String,
message: String,
meta:
{
String: String
}
}
],
meta:
{
String: String
}
}
}