GET api/Services/CheckList?for_mom={for_mom}
Чеклист
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| for_mom |
Если true то для мамы, Если false для ребенка |
boolean |
Required |
Body Parameters
None.
Response Information
Resource Description
CheckListData| Name | Description | Type | Additional information |
|---|---|---|---|
| is_pregnant |
Если пользователь не беременна, нельзя добавлять/удалять данные |
boolean |
None. |
| total_count |
Общее кол-во |
integer |
None. |
| checked_count |
Кол-во отмеченных |
integer |
None. |
| list |
Список |
Collection of CheckList |
None. |
Response Formats
application/json, text/json
Sample:
{
"is_pregnant": true,
"total_count": 2,
"checked_count": 3,
"list": [
{
"record_id": 1,
"name": "sample string 2",
"category_rid": 3,
"category_name": "sample string 4",
"for_mom": true,
"is_checked": true
},
{
"record_id": 1,
"name": "sample string 2",
"category_rid": 3,
"category_name": "sample string 4",
"for_mom": true,
"is_checked": true
}
]
}
text/html
Sample:
{"is_pregnant":true,"total_count":2,"checked_count":3,"list":[{"record_id":1,"name":"sample string 2","category_rid":3,"category_name":"sample string 4","for_mom":true,"is_checked":true},{"record_id":1,"name":"sample string 2","category_rid":3,"category_name":"sample string 4","for_mom":true,"is_checked":true}]}