POST api/wells/{idOfWell}/logs
Post log of well data transfer object
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
idOfWell |
Id of well (parent) |
integer |
Required |
Body Parameters
Log of well DTO
LogOfWellDtoName | Description | Type | Additional information |
---|---|---|---|
Id |
Id of log: autogenerate on the controller |
globally unique identifier |
None. |
IdOfWell |
Id of well (parent) |
integer |
Required |
IdOfFileSpec |
Id of file of text file |
globally unique identifier |
Required |
Name |
Log name: by default - file name |
string |
Required Max length: 255 |
Description |
Log decription: by default - empty |
string |
Required |
ListOfSvgElemDto |
List of svg elems |
Collection of SvgElemDto |
None. |
Request Formats
application/json, text/json
Sample:
{ "Id": "6fdc3324-8195-4d6e-986a-992ef5698034", "IdOfWell": 2, "IdOfFileSpec": "a17495c7-eb31-4f98-ade4-138108669d63", "Name": "sample string 4", "Description": "sample string 5", "ListOfSvgElemDto": [ { "Id": "a533c78a-53de-49cc-9f35-a10b4b55796b", "Color": "sample string 2", "Tpe": "sample string 3", "Opts": "sample string 4" }, { "Id": "a533c78a-53de-49cc-9f35-a10b4b55796b", "Color": "sample string 2", "Tpe": "sample string 3", "Opts": "sample string 4" } ] }
application/xml, text/xml
Sample:
<LogOfWellDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Reyvart.WellFileManager.Web.Models"> <Description>sample string 5</Description> <Id>6fdc3324-8195-4d6e-986a-992ef5698034</Id> <IdOfFileSpec>a17495c7-eb31-4f98-ade4-138108669d63</IdOfFileSpec> <IdOfWell>2</IdOfWell> <ListOfSvgElemDto> <SvgElemDto> <Color>sample string 2</Color> <Id>a533c78a-53de-49cc-9f35-a10b4b55796b</Id> <Opts>sample string 4</Opts> <Tpe>sample string 3</Tpe> </SvgElemDto> <SvgElemDto> <Color>sample string 2</Color> <Id>a533c78a-53de-49cc-9f35-a10b4b55796b</Id> <Opts>sample string 4</Opts> <Tpe>sample string 3</Tpe> </SvgElemDto> </ListOfSvgElemDto> <Name>sample string 4</Name> </LogOfWellDto>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
Created log DTO
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.