POST apis/HitRaw

Creating a Resource ... Return unklar ???? sollte 201 sein ? CRUD Pattern: http://www.asp.net/web-api/overview/creating-web-apis/creating-a-web-api-that-supports-crud-operations This implementation will work, but it is not quite complete. Ideally, we would like the HTTP response to include the following: Response code: By default, the Web API framework sets the response status code to 200 (OK). But according to the HTTP/1.1 protocol, when a POST request results in the creation of a resource, the server should reply with status 201 (Created). Location: When the server creates a resource, it should include the URI of the new resource in the Location header of the response.

Request Information

Parameters

NameDescriptionAdditional information
pHitRawInput
The ID of the data.

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "Befehlspuffer": "sample string 1",
  "Bnr": "sample string 2",
  "Mbn": "sample string 3",
  "Pin": "sample string 4",
  "Mandant": "sample string 5",
  "Parameter": "sample string 6",
  "Session": "sample string 7",
  "Secret": "sample string 8",
  "Timeout": "sample string 9",
  "Ausgabeform": "sample string 10",
  "Context": "sample string 11"
}

application/xml, text/xml

Sample:
<HitRawInput xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HitTest2.Models">
  <Ausgabeform>sample string 10</Ausgabeform>
  <Bnr>sample string 2</Bnr>
  <Context>sample string 11</Context>
  <Mandant>sample string 5</Mandant>
  <Mbn>sample string 3</Mbn>
  <Parameter>sample string 6</Parameter>
  <Pin>sample string 4</Pin>
  <Secret>sample string 8</Secret>
  <Session>sample string 7</Session>
  <Timeout>sample string 9</Timeout>
  <Befehlspuffer>sample string 1</Befehlspuffer>
</HitRawInput>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'HitRawInput'.

Response Information

No documentation available.

Response body formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.