POST new/location/add
添加打卡记录
Request Information
URI Parameters
None.
Body Parameters
LocationModel| Name | Description | Type | Additional information |
|---|---|---|---|
| X | string |
None. |
|
| Y | string |
None. |
|
| Address | string |
None. |
|
| Status | integer |
None. |
|
| Remark | string |
None. |
|
| Img | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"X": "sample string 1",
"Y": "sample string 2",
"Address": "sample string 3",
"Status": 4,
"Remark": "sample string 5",
"Img": "sample string 6"
}
application/xml, text/xml
Sample:
<LocationModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ma.Model.ApiModel"> <Address>sample string 3</Address> <Img>sample string 6</Img> <Remark>sample string 5</Remark> <Status>4</Status> <X>sample string 1</X> <Y>sample string 2</Y> </LocationModel>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
LocationAddResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| Ok |
接口是否成功。 |
boolean |
None. |
| Msg |
返回消息。 |
string |
None. |
Response Formats
application/json, text/json
Sample:
{
"Ok": true,
"Msg": "sample string 2"
}
application/xml, text/xml
Sample:
<LocationAddResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ma.Api.Controllers.Dtos"> <Msg>sample string 2</Msg> <Ok>true</Ok> </LocationAddResponse>