Api >

Service Portal REST API

GET returns all directcall numbers for customers
Given I am authenticated as Customer K0003
and there is a directcall with number 112
When I send /api/directcall-numbers
Then I should receive HTTP/1.1 200 OK with following body:
{
  "href": "/api/directcall-numbers?_offset=0&_pagesize=16",
  "offset": 0,
  "total": 1,
  "size": 1,
  "links": [],
  "items": [{
    "href": "/api/directcall-numbers/112",
    "links": [],
    "data": [{
      "name": "number",
      "value": "112"
    }]
  }]
}
GET returns all directcall numbers 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
Then I should receive HTTP/1.1 200 OK with following body:
{
  "href": "/api/directcall-numbers?_offset=0&_pagesize=16",
  "offset": 0,
  "total": 1,
  "size": 1,
  "links": [],
  "items": [{
    "href": "/api/directcall-numbers/112",
    "links": [],
    "data": [{
      "name": "number",
      "value": "112"
    }]
  }]
}
GET returns all directcall numbers for operators
Given I am authenticated as Operator C0002
and there is a directcall with number 112
When I send /api/directcall-numbers
Then I should receive HTTP/1.1 200 OK with following body:
{
  "href": "/api/directcall-numbers?_offset=0&_pagesize=16",
  "offset": 0,
  "total": 1,
  "size": 1,
  "links": [],
  "items": [{
    "href": "/api/directcall-numbers/112",
    "links": [],
    "data": [{
      "name": "number",
      "value": "112"
    }]
  }]
}
GET returns all directcall numbers for ADMIN
Given I am authenticated as Admin
and there is a directcall with number 112
When I send /api/directcall-numbers
Then I should receive HTTP/1.1 200 OK with following body:
{
  "href": "/api/directcall-numbers?_offset=0&_pagesize=16",
  "offset": 0,
  "total": 1,
  "size": 1,
  "links": [],
  "items": [{
    "href": "/api/directcall-numbers/112",
    "links": [],
    "data": [{
      "name": "number",
      "value": "112"
    }]
  }]
}