Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This section shows examples of different HTTP requests and responses associated with the endpoint /api/professions.

HTTP Request

Code Block
languagejson
# HTTP POST
# https://app.dev.thinksurance.de/api/professions
# 'Content-Type': 'application/json'
# 'Accept': 'application/json'
{
  "token": "some<some long string valuehash>"
}

Successful HTTP Response

Code Block
languagejson
# HTTP 200 status code
# 'Content-Type': 'application/json'
[
  {
    "id": 1,
    "name": "Profession1"
  },
  {
    "id": 2,
    "name": "Profession2"
  }
]

Failed HTTP Response

Code Block
languagejson
# HTTP 200 status code
# 'Content-Type': 'application/json'
{
  "error": "API User is not existing or deactivated."
}