If any request ends up with errors, they will be sent by plain text Access token should be sent in headers for requests with [Token required] mark Header example:
{
"version": "1.0",
"Authorization": "bearer {ACCESS TOKEN HERE}"
}
Request (application/json)
{
"id": Int,
"locale": String
}
Response (application/json)
{
"title": String,
"locale": String,
"text": String,
"type": Int,
"category": Int,
"uploadedTime": Long,
[UPDATE]
"imageUrl": String
}
Media types
1 - Checklist 2 - Longread 3 - About cool guys [DEPRECATED]
Request (application/json)
{
"id": Int,
"locale": String
}
Response (image/png OR image/jpeg OR image/jpg)
Image file
Request (application/json)
{
"id": Int
}
Response (application/json)
{
"success": Bool
}
Request (application/form-data)
{
"title": String,
"file": Image,
"text": String,
"locale": String,
"type": Int,
"category": Int
}
Categories
1 - ... 2 - ... 3 - ... 4 - ...
Media types
1 - Checklist 2 - Longread 3 - About cool guys
Response (application/pdf)
{
"success": Bool
}
Sorts by date descending Contains 8 media elements from every category
Request (application/json)
{
"locale": String
}
Response (application/json)
[
{
"id": Int,
"title": String,
"type": Int,
"category": Int,
"uploadedTime": Long,
[UPDATE]
"imageUrl": String
}
]
Media types
1 - Checklist 2 - Longread 3 - About cool guys
Sorts by date descending Every page contains up to 20 media elements
Request (application/json)
{
"locale": String,
"category": Int,
"page": Int
}
Response (application/json)
[
{
"id": Int,
"title": String,
"type": Int,
"category": Int,
"uploadedTime": Long,
[UPDATE]
"imageUrl": String
}
]
Media types
1 - Checklist 2 - Longread 3 - About cool guys
Request (application/json)
{
"name": String,
"email": String,
"password": String,
"dreamingAbout": String,
"inspirer": String,
"whyInspired": String.
"interests": [Int]
}
Response (application/json)
{
"token": "string of nonsense",
"refreshToken": "another string of nonsense"
}
Error codes
455 - email format is incorrect 456 - email is already exists (on register) 457 - password format is incorrect (on register)
Request (application/json)
{
"email": String,
"password": String
}
Response (application/json)
{
"token": "string of nonsense",
"refreshToken": "another string of nonsense"
}
Error codes
455 - email format is incorrect 458 - incorrect password 459 - user does not exists
This request does not require access token in header, but in body along with refresh token. New pair will be given
Request (application/json)
{
"token": String,
"refreshToken": String
}
Response (application/json)
{
"token": "string of nonsense",
"refreshToken": "another string of nonsense"
}
Request (application/json)
{
"locale": String
}
Response (application/json)
{
"name": String,
"email": String,
"dreamingAbout": String,
"inspirer": String,
"whyInspired": String,
"subscriptionEndDate": Long,
"successes": {
"1": Float,
"2": Float,
"3": Float,
"4": Float
},
[UPDATE]
"avatarUrl": String
}
1 - IT 2 - SMM 3 - Design 4 - Content
Request (application/json)
Response (application/json)
{
"success": Bool
}
Request (application/form-data)
ImageFile file
Response (application/json)
{
"success": Bool
}
[DEPRECATED]
Request (application/json)
Response (image/jpg OR image/png OR image/jpeg)
ImageFile image
Request (application/json)
{
"sectionNumber": Int,
"progress": Int
}
progress - how many courses did user complete
Response (application/json)
{
"success": Bool
}
Request (application/form-data)
{
"title": String,
"image": Image,
"videoUrl": String,
"description": String,
"lessonsDescription": String,
"lessonsAmount": Int,
"whatWillBeLearned": String,
"speakerPicture": Image,
"speakerDescription": String,
"speakerName": String,
"section": Int,
"courseDuration": Int,
"locale": String,
[UPDATE]
"imageUrl": String
}
Image - is jpeg, png or jpg file
Response (application/json)
{
"success": true,
"id": 1
}
By that id, it needs to route /create-benefiters
, /create-cards
and /create-course-lesson
section to add additional information on course
Request (application/json)
[
{
"courseId": Int,
"benefiterNumber": Int,
"title": String,
"text": String,
"locale": String
}
]
Response (application/json)
{
"success": Bool
}
Request (application/json)
[
{
"courseId": Int,
"cardNumber": Int,
"title": String,
"text": String,
"locale": String
}
]
Response (application/json)
{
"success": Bool
}
Request (application/json)
{
"courseId": Int,
"title": String,
"description": String,
"videoUrl": String,
"lessonNumber": Int,
"locale": String
}
Response (application/json)
{
"success": Bool
}
Request (application/json)
{
"id": Int
}
Response (application/json)
{
"success": Bool
}
Request (application/json)
{
"locale": String,
"page": Int,
"query": String
}
Response (application/json)
[
{
"id": Int,
"title": String,
"section": Int,
[UPDATE]
"imageUrl": String
}
]
[DEPRECATED]
Request (application/json)
{
"id": Int
}
Response (image/jpeg OR image/jpg OR image/png)
Image
Request (application/json)
{
"id": Int
}
Response (application/json)
{
"id": Int,
"title": String,
"videoUrl": String,
"uploadedTime": Long,
"description": String,
"lessonsDescription": String,
"lessonsAmount": Int,
"whatWillBeLearned": String,
"section": Int,
"courseDuration": Int,
"cards": [
{
"id": Int,
"cardNumber": Int,
"title": String,
"text": String
}
],
"benefiters": [
{
"id": Int,
"benefiterNumber": Int,
"title": String,
"text": String
}
],
"lessons": [
{
"title": String,
"lessonNumber": Int
}
],
[UPDATE]
"imageUrl": String,
"speaker": {
"description": String,
"name": String,
"imageUrl": String,
}
}
Get course lessons by course id Only for subscribed
Request (application/json)
{
"id": Int,
"lessonNumber": Int
}
Response (application/json)
{
"title": String,
"description": String,
"videoUrl": String,
"lessonNumber": Int
}