POST api/HitRaw/{id}
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
| Name | Description | Additional information |
|---|---|---|
| pHitRawInput | The ID of the data. |
Define this parameter in the request body. |
| id | No documentation available. |
Define this parameter in the request URI. |
Request body formats
application/json, text/json
{
"Befehlspuffer": "sample string 1",
"Bnr": "sample string 2",
"Mbn": "sample string 3",
"Pin": "sample string 4",
"Mandant": "sample string 5",
"TOTP": "sample string 6",
"Light": "sample string 7",
"ExtraLogonCols": "sample string 8",
"Session": "sample string 9",
"Secret": "sample string 10",
"Timeout": "sample string 11",
"Ausgabeform": "sample string 12",
"Context": "sample string 13"
}
application/xml, text/xml
<HitRawInput xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HitTest2.Models"> <Ausgabeform>sample string 12</Ausgabeform> <Bnr>sample string 2</Bnr> <Context>sample string 13</Context> <ExtraLogonCols>sample string 8</ExtraLogonCols> <Light>sample string 7</Light> <Mandant>sample string 5</Mandant> <Mbn>sample string 3</Mbn> <Pin>sample string 4</Pin> <Secret>sample string 10</Secret> <Session>sample string 9</Session> <TOTP>sample string 6</TOTP> <Timeout>sample string 11</Timeout> <Befehlspuffer>sample string 1</Befehlspuffer> </HitRawInput>
application/x-www-form-urlencoded
Sample not available.
Response Information
No documentation available.
Response body formats
application/json, text/json, application/xml, text/xml
Sample not available.