GET /api/v1/apps
Content-Type: application/json
Authorization: Bearer {token}
[
{
"id": 1,
"name": "App Name",
"description": "App Description",
"created_at": "2021-01-01 00:00:00",
"updated_at": "2021-01-01 00:00:00"
}
]
GET /api/v1/apps/{id}
Content-Type: application/json
Authorization: Bearer {token}
{
"id": 1,
"name": "App Name",
"description": "App Description",
"created_at": "2021-01-01 00:00:00",
"updated_at": "2021-01-01 00:00:00"
}
PUT /api/v1/apps/{id}
Content-Type: application/json
Authorization: Bearer {token}
{
"name": "App Name",
"description": "App Description"
}
{
"id": 1,
"name": "App Name",
"description": "App Description",
"created_at": "2021-01-01 00:00:00",
"updated_at": "2021-01-01 00:00:00"
}
DELETE /api/v1/apps/{id}
Content-Type: application/json
Authorization: Bearer {token}
{
"message": "The app has been deleted."
}
POST /api/v1/apps
Content-Type: application/json
Authorization: Bearer {token}
{
"name": "App Name",
"description": "App Description"
}
{
"id": 1,
"name": "App Name",
"description": "App Description",
"created_at": "2021-01-01 00:00:00",
"updated_at": "2021-01-01 00:00:00"
}
GET /api/v1/apps/search?q={query}
Content-Type: application/json
Authorization: Bearer {token}
[
{
"id": 1,
"name": "App Name",
"description": "App Description",
"created_at": "2021-01-01 00:00:00",
"updated_at": "2021-01-01 00:00:00"
}
]
GET /api/v1/apps/filter?{key}={value}
Content-Type: application/json
Authorization: Bearer {token}
[
{
"id": 1,
"name": "App Name",
"description": "App Description",
"created_at": "2021-01-01 00:00:00",
"updated_at": "2021-01-01 00:00:00"
}
]
GET /api/v1/apps/sort?{key}={asc|desc}
Content-Type: application/json
Authorization: Bearer {token}
[
{
"id": 1,
"name": "App Name",
"description": "App Description",
"created_at": "2021-01-01 00:00:00",
"updated_at": "2021-01-01 00:00:00"
}
]
GET /api/v1/apps/page?page={page}&limit={limit}
Content-Type: application/json
Authorization: Bearer {token}
{
"total": 1,
"per_page": 10,
"current_page": 1,
"last_page": 1,
"from": 1,
"to": 1,
"data": [
{
"id": 1,
"name": "App Name",
"description": "App Description",
"created_at": "2021-01-01 00:00:00",
"updated_at": "2021-01-01 00:00:00"
}
]
}
GET /api/v1/apps/export
Content-Type: application/json
Authorization: Bearer {token}
{
"message": "The apps have been exported."
}
POST /api/v1/apps/import
Content-Type: application/json
Authorization: Bearer {token}
{
"file": "apps.csv"
}
{
"message": "The apps have been imported."
}