Api >

Service Portal REST API

GET Customer features
Test setup
Given there is a Customer with ID K0002 with a feature NCTIPRO_LICENSE:
Given I am authenticated as ADMIN
and a feature NCTIPRO_LICENSE exists When I send /api/customers/K0002/feature-status
Then I should receive HTTP/1.1 200 OK
and body with following fields:
{
  "href": "/api/customers/K0002/feature-status",
  "items": [{
    "href": null,
    "links": [],
    "data": [{
      "name": "name",
      "value": "NCTIPRO_LICENCE"
    }, {
      "name": "value",
      "value": "true"
    }]
  }],
  "links": null
}
GET Customer features
Test setup
Given there is a Customer with ID K0002 with a feature NCTIPRO_LICENSE:
Given there is a Customer with ID K0002
and a feature NCTIPRO_LICENSE exists When I send /api/customers/K0002/feature-status
Then I should receive HTTP/1.1 403 Forbidden
and body with following fields:
{
  "detail": "Authentication Failed",
  "title": "Access forbidden",
  "described_by": "http://api.nfon.net/probs/invalid-authentication"
}