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 Letters |
/api/get_letters/
|
GET |
| List numbers |
/api/get_numbers/
|
GET |
| List shapes |
/api/get_shapes/
|
GET |
| List Paints |
/api/get_paints/
|
GET |
| List Puzzels |
/api/get_puzzels/
|
GET |
API to enable show letters content
/api/get_letters/
Output Example
{
"letters": [
{
"model": "app.appcontent",
"pk": 1,
"fields": {
"content_title": "أ",
"content_symbol": "أ",
"content_note": "حرف الألف"
}
},
{
"model": "app.appcontent",
"pk": 2,
"fields": {
"content_title": "ب",
"content_symbol": "ب",
"content_note": "حرف الباء"
}
},
]
}
API to enable show numbers content
/api/get_numbers/
Output Example
{
"letters": [
{
"model": "app.appcontent",
"pk": 3,
"fields": {
"content_title": "1",
"content_symbol": "1",
"content_note": "واحد"
}
},
{
"model": "app.appcontent",
"pk":4,
"fields": {
"content_title": "2",
"content_symbol": "2",
"content_note": "اثنين"
}
},
]
}
API to enable show shapes content
/api/get_shapes
Output Example
{
"shapes": [
{
"model": "app.appcontent",
"pk": 5,
"fields": {
"content_title": "مربع",
"content_symbol": "مربع",
"content_note": "المربع"
}
},
{
"model": "app.appcontent",
"pk": 6,
"fields": {
"content_title": "مستطيل",
"content_symbol": "مستطيل",
"content_note": "المستطيل"
}
},
]
}
API to enable show paints content
/api/get_paints/
Output Example
{
"paints": [
{
"model": "app.appcontent",
"pk": 7,
"fields": {
"content_title": "قط",
"content_symbol": "قط",
"content_note": "صورة قط",
"logo":"image1.jpg"
}
},
{
"model": "app.appcontent",
"pk": 8,
"fields": {
"content_title": "ذرة",
"content_symbol": "ذرة",
"content_note": "صورة ذره",
"logo":"image2.jpg"
}
},
]
}