Introduction

this document aims to inroduce kidsspace back-end APIs in which the application app can invoke to utilize several backend services

Api Url Method
List Events /api/get_event_with_filter/ GET
List Events /api/get_all_event/ GET

API to enable show events

/api/get_event_with_filter/

Header
Token (input in aheader of request) b21lcl9vbWVyM0BnbWFpbC5jb20
Content-Type (input in aheader of request) Application/json
Params Example
date_from 2019-09-06
date_to 2019-09-09
school 1

Output Example

{
"events": [
{
"model": "app.evenets",
"pk": 2,
"fields": {
"Title": "14 أكتوبر",
"content": "إجازة وطنية",
"location": "المكلا",
"date_from": "2020-09-06",
"date_to": "2020-09-09",
"className": 1,
"time_to": "09:00:00",
"time_from": "05:00:00",
"school": 1
}
}
]
}

API to enable show all events

/api/get_all_event/

Header
Token (input in aheader of request) b21lcl9vbWVyM0BnbWFpbC5jb20
Content-Type (input in aheader of request) Application/json

Output Example

{
"events": [
{
"model": "app.evenets",
"pk": 1,
"fields": {
"Title": "30 نوفمبر",
"content": "إجازة وطنية",
"location": "المكلا",
"date_from": "2020-09-01",
"date_to": "2020-09-08",
"className": 1,
"time_to": "09:00:00",
"time_from": "05:00:00",
"school": 1
}
},
{
"model": "app.evenets",
"pk": 2,
"fields": {
"Title": "14 أكتوبر",
"content": "إجازة وطنية",
"location": "المكلا",
"date_from": "2020-09-06",
"date_to": "2020-09-09",
"className": 1,
"time_to": "09:00:00",
"time_from": "05:00:00",
"school": 1
}
}
]
}