POST api/TestData
Insert test data
Request Information
URI Parameters
None.
Body Parameters
Test data
TestDataName | Description | Type | Additional information |
---|---|---|---|
Comment |
A comment |
string |
None. |
HourNumber |
A number of hour |
byte |
None. |
TestScopeId |
Id of the parent (test scope) |
globally unique identifier |
None. |
Dict |
Dictionary |
Dictionary of string [key] and string [value] |
None. |
Request Formats
application/json, text/json
Sample:
{ "Comment": "sample string 1", "HourNumber": 64, "TestScopeId": "82195f85-c5df-4523-9c5b-fe6c9683363d", "Dict": { "sample string 1": "sample string 2", "sample string 3": "sample string 4" } }
application/xml, text/xml
Sample:
<TestData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Reyvart.WellFileManager.Web.Models"> <Comment>sample string 1</Comment> <Dict xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:KeyValueOfstringstring> <d2p1:Key>sample string 1</d2p1:Key> <d2p1:Value>sample string 2</d2p1:Value> </d2p1:KeyValueOfstringstring> <d2p1:KeyValueOfstringstring> <d2p1:Key>sample string 3</d2p1:Key> <d2p1:Value>sample string 4</d2p1:Value> </d2p1:KeyValueOfstringstring> </Dict> <HourNumber>64</HourNumber> <TestScopeId>82195f85-c5df-4523-9c5b-fe6c9683363d</TestScopeId> </TestData>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
Created test data
HttpResponseMessageName | 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. |