Walkthrough DASH SAAS
API Documentation Walkthrough
1. Introduction
2. Base URL
https://service-dash.dlabssaas.io
3. Authentication
The API uses token-based authentication. You will need to include an API key in the headers of your requests.
Authorization: Bearer YOUR_API_KEY
4. Standard API Mapping
1. POST Method - Insert Data
/api/resource
2. GET Method - Retrieve Data
/api/resource
or /api/resource/{id}
3. PUT Method - Update Data
/api/resource/{id}
4. DELETE Method - Delete Data
/api/resource/{id}
Headers
Content-Type
: Should be application/json
for endpoints that accept a payload.Authorization
: Depending on your setup, this may be required for authentication.5. Base Model
{
"status": "success",
"data": dynamic object,
"info": {
"id": "",
"message": "",
"messageEn": null,
"messageId": null,
"field": null,
"redirect": null
}
}
6. Error Handling
{
"status": "error",
"data": null,
"info": {
"id": "SYSTEM_ERROR",
"message": "Error Message",
"messageEn": null,
"messageId": null,
"field": null,
"redirect": null
}
}
7. Pagination
meta
object.GET https://api.example.com/v1/users?page[number]=2&page[size]=10
Headers:
Authorization: Bearer YOUR_API_KEY
{
"data": {
"content": [
{
// dynamic data response
}
],
"empty": true,
"first": true,
"last": true,
"number": 0,
"numberOfElements": 0,
"pageable": {
"offset": 0,
"pageNumber": 0,
"pageSize": 0,
"paged": true,
"sort": {
"empty": true,
"sorted": true,
"unsorted": true
},
"unpaged": true
},
"size": 0,
"sort": {
"empty": true,
"sorted": true,
"unsorted": true
},
"totalElements": 0,
"totalPages": 0
},
"info": {
"field": "string",
"id": "string",
"message": "string",
"messageEn": "string",
"messageId": "string",
"redirect": "string"
},
"status": "string"
}
8. Conclusion
If you encounter any issues or have questions, please contact our backend team