1 API Status
kolaente edited this page 2018-01-12 16:29:10 +01:00

[API] Status

GET /status

Returns all status as an array.

Response

200 All found status.
500 A server error occured.

Example

Request:

curl http://localhost:8082/api/v1/status

Result:

[
  {
    "ID": 1,
    "Name": "New"
  },
  {
    "ID": 2,
    "Name": "Second Hand"
  },
  {
    "ID": 3,
    "Name": "Other"
  }
]

GET /status/:id

Returns a JSON-Object with all informations about a single status.

Parameters

id: The ID of the status you want to retrieve.

Response

200 The status.
400 ID is empty.
404 The status does not exist.
500 A server error occured.