Time Profile's list
Return Time Profile's list
Query Parameters
- limit integer
Possible values: [
10
,20
,30
,50
]Number of items. Value by default is 10
- page_number integer
Possible values:
>= 1
Page number
- sort_field string
Field name (JSON Key in item entity)
- sort_type string
Possible values: [
asc
,desc
]Default value:
asc
Sort type (asc/desc)
- filter object
Filtering options
- 200
- 400
- 401
- 403
OK
- application/json
- Schema
- Example (from schema)
Schema
- list_items object[]
list_option object
Available options for sorting, filtering and pagination of lists
pagination object
Available pagination options for tables
total_items integerThe total number of items found and reflected across all pages
items_limit integerPossible values: [
10
,25
,50
]Limiting the display of the amount of data for one page
total_pages integerPossible values:
>= 1
The number of tables that hold the requested data
current_page integerPossible values:
>= 1
Current page number
filter object
Available filter sets for different tables, one set for one type of tables
oneOf- MOD1
- MOD2
- MOD3
filter_field stringField available for filtering
filter_type stringPossible values: [
equal
]Available filtering type, only equal here
filter_format stringData format, only string here
filter_value stringBaker Street
filter_field stringPossible values: [
apartment_address
]Field available for filtering
filter_type stringPossible values: [
equal
]Available filter type, only equal here
filter_format stringPossible values: [
string
]Available filter format, only string here
filter_value string1-1-0-4
filter_field stringPossible values: [
residents
]Field available for filtering
filter_type stringPossible values: [
less
,equal
,more
]Available filter type
filter_format stringPossible values: [
integer
]Available filter format, only integer here
filter_value integerReturns apartments with residents count greater then six
sort object
Available sorting options for the selected table
field stringSorting field name
asc booleanDirection of sorting
available_fields string[]Available for sorting fields names
{
"list_items": [
{
"time_profile_uid": 1,
"name": "Worker 1",
"time_options": {
"is_all_day": true,
"date_from": 1540819272,
"date_to": 1540819272
},
"repeat_options": {
"repeat_enable": true,
"repeat_format": {
"repeat_type": "day",
"repeat_end": {
"format": "date",
"date": 1540819272
},
"repeat_custom": {
"repeat_point_type": "week",
"repeat_looper": 5,
"repeat_options": [
"MON",
"TUE",
"WED",
"THU",
"FRI"
]
}
}
},
"identifiers": {
"count": 4,
"uid_items": [
11,
13,
23,
42
]
}
},
{
"time_profile_uid": 2,
"name": "Worker 2",
"time_options": {
"is_all_day": true,
"date_from": 1540819272,
"date_to": 1540819272
},
"repeat_options": {
"repeat_enable": true,
"repeat_format": {
"repeat_type": "day",
"repeat_end": {
"format": "date",
"date": 1540819272
},
"repeat_custom": {
"repeat_point_type": "week",
"repeat_looper": 5,
"repeat_options": [
"MON",
"TUE",
"WED",
"THU",
"FRI"
]
}
}
},
"identifiers": {
"count": 4,
"uid_items": [
11,
13,
23,
42
]
}
},
{
"time_profile_uid": 3,
"name": "Worker 3",
"time_options": {
"is_all_day": true,
"date_from": 1540819272,
"date_to": 1540819272
},
"repeat_options": {
"repeat_enable": true,
"repeat_format": {
"repeat_type": "day",
"repeat_end": {
"format": "date",
"date": 1540819272
},
"repeat_custom": {
"repeat_point_type": "week",
"repeat_looper": 5,
"repeat_options": [
"MON",
"TUE",
"WED",
"THU",
"FRI"
]
}
}
},
"identifiers": {
"count": 4,
"uid_items": [
11,
13,
23,
42
]
}
}
],
"list_option": {
"pagination": {
"total_items": 18,
"items_limit": 10,
"total_pages": 2,
"current_page": 1
},
"filter": {
"filter_field": "apartment_name",
"filter_type": "equal",
"filter_format": "string",
"filter_value": "Baker Street"
},
"sort": {
"field": "apartment_name",
"asc": true,
"available_fields": [
"apartment_name"
]
}
}
}
- Wrong pagination limit
- Wrong pagintation page number
- Wrong sort field
- Wrong sort type
- Wrong filter options
Log In
Administrator rights required