Skip to content

SERVICE APIs

Paulo Roberto Donatilio Rego edited this page Aug 30, 2018 · 1 revision
  • GET /api/Service - Get all services.
Sample request:

GET api/Service/
You will receive:
Code: 200 - Returns a list with all services
Code: 401 - Unauthorized Access
  • POST /api/Service - Create a New Service
Sample request:

POST api/Service/

{
    "version": int,
    "Name": "string"
}
You will receive:
Code: 200 - Sucess
Code: 400 - If version or name is null
  • GET /api/Service/{id} - Get a specific Service by id.
Sample request:

GET api/Service/{id}
You will receive
Code: 200 - Returns the service informed by Id
Code: 400 - If id is null or not found
Code: 401 - Unauthorized Access
  • PUT /api/Service/{id} - Update the service informed by Id
Sample request:

PUT api/Service/

{
    "version": int,
    "name": "string"
}
You will receive:
Code: 200 - Sucess
Code: 400 - If the version or name is null
  • DELETE /api/Service/{id} - Delet a specific service by id.
Sample request:

DELETE api/Service/{id}
You will receive:
Code: 200 - Sucess
Code: 400 - If id is null or not found
Code: 401 - Unauthorized Access
  • GET /api/Service/toggles/{id} - Get all Toggles from a specific service by id.
Sample request:

GET api/Service/toggles/{id}
You will receive:
Code: 200 - Return a list with all Toggles and the most important one of they
Code: 400 - If id is null or not found
Code: 401 - Unauthorized Access
Clone this wiki locally