POST api/Task
Get Task By Date
Request Information
URI Parameters
None.
Body Parameters
TaskParam| Name | Description | Type | Additional information |
|---|---|---|---|
| year |
年 |
string |
None. |
| month |
月 |
string |
None. |
| Category |
category |
string |
None. |
| userID |
用户ID |
integer |
None. |
| token |
用户token |
string |
None. |
Request Formats
application/json, text/json
Sample:
{
"year": "sample string 1",
"month": "sample string 2",
"Category": "sample string 3",
"userID": 4,
"token": "sample string 5"
}
application/xml, text/xml
Sample:
<TaskParam xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Topwin.Adidas.VM.API.Models"> <token>sample string 5</token> <userID>4</userID> <Category>sample string 3</Category> <month>sample string 2</month> <year>sample string 1</year> </TaskParam>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
BasicResultOfTask| Name | Description | Type | Additional information |
|---|---|---|---|
| code | integer |
None. |
|
| msg | string |
None. |
|
| data | Task |
None. |
Response Formats
application/json, text/json
Sample:
{
"code": 1,
"msg": "sample string 2",
"data": {
"Year": "sample string 1",
"Month": "sample string 2",
"Categories": [
{
"ID": 1,
"Title": "sample string 2"
},
{
"ID": 1,
"Title": "sample string 2"
}
]
}
}
application/xml, text/xml
Sample:
<BasicResultOfTaskibSt4PRI xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Topwin.Adidas.VM.API.Models">
<code>1</code>
<data>
<Categories>
<Category>
<ID>1</ID>
<Title>sample string 2</Title>
</Category>
<Category>
<ID>1</ID>
<Title>sample string 2</Title>
</Category>
</Categories>
<Month>sample string 2</Month>
<Year>sample string 1</Year>
</data>
<msg>sample string 2</msg>
</BasicResultOfTaskibSt4PRI>