POST api/testscope
Insert test scope with it's test data list
Request Information
URI Parameters
None.
Body Parameters
Test scope data transfer object (contains Test data list)
TestScopeDto| Name | Description | Type | Additional information |
|---|---|---|---|
| Id |
Test scope id (Row key) |
globally unique identifier |
None. |
| WellId |
Test scope well parent (Partition key) |
integer |
Required |
| StartUnixTime |
Test start time |
integer |
Required |
| IsApproved |
Is test approved |
boolean |
None. |
| ConductedBy |
Conducted by |
string |
Required |
| CertifiedBy |
Certified by |
string |
Required |
| TestDataDtoList |
List of test data in this scope: required for POST requests |
Collection of TestData |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": "013f12c7-26ff-460c-8274-f83831fb14ea",
"WellId": 2,
"StartUnixTime": 3,
"IsApproved": true,
"ConductedBy": "sample string 4",
"CertifiedBy": "sample string 5",
"TestDataDtoList": [
{
"Comment": "sample string 1",
"HourNumber": 64,
"TestScopeId": "90fb0fdc-2db3-4135-a7df-1a01bde8766c",
"Dict": {
"sample string 1": "sample string 2",
"sample string 3": "sample string 4"
}
},
{
"Comment": "sample string 1",
"HourNumber": 64,
"TestScopeId": "90fb0fdc-2db3-4135-a7df-1a01bde8766c",
"Dict": {
"sample string 1": "sample string 2",
"sample string 3": "sample string 4"
}
}
]
}
application/xml, text/xml
Sample:
<TestScopeDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Reyvart.WellFileManager.Web.Models">
<CertifiedBy>sample string 5</CertifiedBy>
<ConductedBy>sample string 4</ConductedBy>
<Id>013f12c7-26ff-460c-8274-f83831fb14ea</Id>
<IsApproved>true</IsApproved>
<StartUnixTime>3</StartUnixTime>
<TestDataDtoList>
<TestData>
<Comment>sample string 1</Comment>
<Dict xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:KeyValueOfstringstring>
<d4p1:Key>sample string 1</d4p1:Key>
<d4p1:Value>sample string 2</d4p1:Value>
</d4p1:KeyValueOfstringstring>
<d4p1:KeyValueOfstringstring>
<d4p1:Key>sample string 3</d4p1:Key>
<d4p1:Value>sample string 4</d4p1:Value>
</d4p1:KeyValueOfstringstring>
</Dict>
<HourNumber>64</HourNumber>
<TestScopeId>90fb0fdc-2db3-4135-a7df-1a01bde8766c</TestScopeId>
</TestData>
<TestData>
<Comment>sample string 1</Comment>
<Dict xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:KeyValueOfstringstring>
<d4p1:Key>sample string 1</d4p1:Key>
<d4p1:Value>sample string 2</d4p1:Value>
</d4p1:KeyValueOfstringstring>
<d4p1:KeyValueOfstringstring>
<d4p1:Key>sample string 3</d4p1:Key>
<d4p1:Value>sample string 4</d4p1:Value>
</d4p1:KeyValueOfstringstring>
</Dict>
<HourNumber>64</HourNumber>
<TestScopeId>90fb0fdc-2db3-4135-a7df-1a01bde8766c</TestScopeId>
</TestData>
</TestDataDtoList>
<WellId>2</WellId>
</TestScopeDto>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
Created test scope
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |