Api >

Service Portal REST API

GET returns directcall number for customer
Given I am authenticated as Customer K0003
and there is a directcall with number 112
When I send /api/directcall-numbers/112
Then I should receive HTTP/1.1 200 OK with following body:
{
  "href": "/api/directcall-numbers/112",
  "links": [],
  "data": [{
    "name": "number",
    "value": "112"
  }]
}
GET returns directcall number for system integrators
Given I am authenticated as System Integrator S0002
and there is a directcall with number 112
When I send /api/directcall-numbers/112
Then I should receive HTTP/1.1 200 OK with following body:
{
  "href": "/api/directcall-numbers/112",
  "links": [],
  "data": [{
    "name": "number",
    "value": "112"
  }]
}
GET returns directcall number for operators
Given I am authenticated as Operator C0002
and there is a directcall with number 112
When I send /api/directcall-numbers/112
Then I should receive HTTP/1.1 200 OK with following body:
{
  "href": "/api/directcall-numbers/112",
  "links": [],
  "data": [{
    "name": "number",
    "value": "112"
  }]
}
GET returns directcall number
Given I am authenticated as Admin
and there is a directcall with number 112
When I send /api/directcall-numbers/112
Then I should receive HTTP/1.1 200 OK with following body:
{
  "href": "/api/directcall-numbers/112",
  "links": [],
  "data": [{
    "name": "number",
    "value": "112"
  }]
}