Services
You must be authenticated to use this resource.
Create a new service
POST /services/
Request
| curl -X "POST" "http://0.0.0.0:8000/services/" \
-H 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9...' \
-H 'Content-Type: application/json; charset=utf-8' \
-d '{
"name": "service-1",
"description": "service description"
}'
|
Response
Get all services
GET /services/
Request
| curl "http://0.0.0.0:8000/services/" \
-H 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9...'
|
Response
Get service by id
GET /service/{id}
Request
| curl "http://0.0.0.0:8000/services/1" \
-H 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9...'
|
Response
Update service
PUT /services/{id}
Request
| curl -X "PUT" "http://0.0.0.0:8000/services/" \
-H 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9...' \
-H 'Content-Type: application/json; charset=utf-8' \
-d $'{
"name": "service-1",
"description": "new service description"
}'
|
Response
Delete service
DELETE /services/{id}
Request
| curl "http://0.0.0.0:8000/services/1" \
-H 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9...'
|
Response
Service data
name |
String |
Service name. |
description |
String |
Service description. |