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/ipn/products.

HTTP Request without profession filter

Code Block
languagejson
# HTTP GET
# https://ipn.dev.thinksurance.de/api/ipn/products
#
# HTTP headers
# 'Accept': 'application/json'
# 'Authorization': 'Bearer <some long string value>'
# 

HTTP Request with profession filter

Code Block
languagejson
# HTTP GET
# https://ipn.dev.thinksurance.de/api/ipn/products?professionId=123
#
# HTTP headers
# 'Accept': 'application/json'
# 'Authorization': 'Bearer <some long string value>'
#

Successful HTTP Response

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

Failed HTTP Response

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

...