Api >

Service Portal REST API

GET retrieves existing Frontdesk Target
Given I am authenticated as customer K0002

And there is a skill service with name: skill name and service number: 18

And there is a Frontdesk Service with service number: 17

And there is a Frontdesk Target with context my random context for skill service

When I send /api/customers/K0002/targets/frontdesk-services/17/target/18
Then I should receive HTTP/1.1 200 OK
with following body:
{
  "href": "/api/customers/K0002/targets/frontdesk-services/17/target/18",
  "links": [{
    "rel": "targetService",
    "href": "/api/customers/K0002/targets/skill-services/18"
  }],
  "data": [{
    "name": "context",
    "value": "my random context for skill service"
  }]
}
GET errors non-existent Frontdesk Target
Given I am authenticated as customer K0002

And there is a Frontdesk Service with service number: 17

When I send /api/customers/K0002/targets/frontdesk-services/17/target/22

Then I should receive HTTP/1.1 404 Not Found
with following body:
{
  "detail": "Frontdesk Target with Service Number 22 not found",
  "title": "Frontdesk Target not found",
  "described_by": "http://api.nfon.net/probs/frontdesk-target-not-found"
}
GET errors non-existent Frontdesk Service
Given I am authenticated as customer K0002

When I send /api/customers/K0002/targets/frontdesk-services/27/target/22

Then I should receive HTTP/1.1 404 Not Found
with following body:
{
  "detail": "Frontdesk Service with service number 27 not found",
  "title": "Frontdesk Service not found",
  "described_by": "http://api.nfon.net/probs/frontdesk-service-not-found"
}