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/doc/get/{:token}.

HTTP Request without profession filter

Code Block
# HTTP POST
# /api/doc/get/{:token}
# 'Content-Type': 'application/json'
# 'Accept': 'application/json'
{
  "hash": "some encrypted string",
  "bToken": "some encrypted string"
}

HTTP Request with profession filter

Code Block
# HTTP POST
# /api//doc/get/{token}
# 'Content-Type': 'application/json'
# 'Accept': 'application/json'
{
  "token": "some long string value",
  "professionId": 123
}

Successful HTTP Response

Code Block
# HTTP 200 status code
# 'Content-Type': 'text/pdf'
Base64 encoded payload

Failed HTTP Response

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