15 DOMAIN SERVICE RESOURCE

A domain service is a well-known (singleton) domain object that typically acts as a repository and/or factory, providing actions for obtaining other domain object instances (although services can provide any kind of functionality in relation to objects).

Domain services can be accessed from the object list representation §B11 returned by the GET Domain Services resource §B7.

15.1 HTTP GET

Obtain summary representation of a domain service..

The endpoint URL for this resource is:

/services/{serviceId}

where:

  • {serviceId} is a unique identifier for the service

15.1.1 Request

15.1.1.1 Query String

  • x-ro-domain-model (optional, §A3.1)

    • "simple"

    • "formal"

15.1.1.2 Headers

  • Accept

    • application/json

    • application/json;profile="…​/object"

15.1.1.3 Body

  • N/A

15.1.2 Success Response

As per §C13.1 (200), returning a domain object representation §C14.4.