FadhaAlatfal.com
Today is a great one!
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 all Notifcation |
/api/all_notifications/
|
GET |
| List all unread Notifcation |
/api/unread_notfications/
|
GET |
| Send Notifcation From student To Manger |
/api/send_notfication_student2manger/
|
POST |
| Set read message API |
/api/set_read_notification/
|
POST |
API to enable user to List all Notifcations
/api/all_notifications/
| Header | |
|---|---|
| Token (input in aheader of request) |
b21lcl9vbWVyM0BnbWFpbC5jb20
|
| Content-Type (input in aheader of request) |
Application/json
|
Output Example
{
"notifcations": [
{
"content": "لقد تم تعديل بيانات ام سلمة",
"date": "2019-01-16T11:40:11.961523Z",
"distination": 3,
"id": 1,
"read": true,
"source": 1,
"to_user": 333,
"user": "ام سلمه"
}
],
"status": 1
}
API to enable user to List unread Notifcations
/api/unread_notfications/
| Header | |
|---|---|
| Token (input in aheader of request) |
b21lcl9vbWVyM0BnbWFpbC5jb20
|
| Content-Type (input in aheader of request) |
Application/json
|
Output Example
{
"notifcations": [
{
"content": "لقد تم تعديل بيانات ام سلمة",
"date": "2019-01-16T11:40:11.961523Z",
"distination": 3,
"id": 1,
"read": false,
"source": 1,
"to_user": 333,
"user": "ام سلمه"
}
],
"status": 1
}
Send Notifcation From parent To admin
API to mark a Send Notifcation From parent To admin
/api/send_notfication_student2manger/
| Header | |
|---|---|
| Token (input in aheader of request) |
b21lcl9vbWVyM0BnbWFpbC5jb20
|
| Content-Type (input in aheader of request) |
Application/json
|
| Input Field | Example |
|---|---|
| message |
أريد ان استفسر عن أحد العروض
|
Output Example
{
"status": 1,
"message": "created done اريد أن استفسر عن احد العروض notifcations"
}
Set read notification API
API to mark a notification as read
/api/set_read_notification/
| Header | |
|---|---|
| Token (input in aheader of request) |
b21lcl9vbWVyM0BnbWFpbC5jb20
|
| Content-Type (input in aheader of request) |
Application/json
|
| Input Field | Example |
|---|---|
| notification_id |
1
|