Remember most of these endpoionts you should pass the (api_token).
-
URL
/api/latest-books
-
Method:
GET -
Success Response:
-
Code: 200
Content:[ "id": 1, "name": "voluptatem", "start_color": "22adf5", "end_color": "089CE9", "icon": null, "created_at": "2019-07-06 06:32:53", "updated_at": "2019-07-06 06:32:53", "books": [ { "id": 1, "title": "Et fugit id impedit quibusdam.", "description": "Consequuntur ut dolores quo consequatur.", "publish_date": "1994-11-24", "price": "250", "path": "books/fekra.pdf", "category_id": 1, "created_at": "2019-07-06 06:32:54", "updated_at": "2019-07-06 06:32:54" } ] ]
-
-
URL
/api/books/{book_id}/pages/{page_number}
-
Method:
GET -
Success Response:
-
Code: 200
Content:[ 'content' 'lorem ipsum set mit', 'picture' => '/image/url', 'video' => '/video/url', ]
-
-
URL
/api/auth/register
-
Method:
post -
URL Params
Required:
name=[string]email=[string]phone=[string]gender=[1 OR 0] -
Success Response:
-
Code: 200
Content:[ 'id': '1' 'name': 'Johne Doe', 'email': '[email protected]', 'phone': '12345678', 'gender': '0', 'api_token': 'ASEREWSDGFS464asd6asdasdas332341sasd' ]
-
-
URL
/api/profile
-
Method:
GET -
Success Response:
-
Code: 200
Content:[ 'id': '1' 'name': 'Johne Doe', 'email': '[email protected]', 'phone': '12345678', 'gender': '0', 'api_token': 'ASEREWSDGFS464asd6asdasdas332341sasd' ]
-