Service
API to interact with services
A service represents a customer-facing/user friendly set of activities. In the context of this Service Catalog, these activities are the Catalog items and Resource Actions. A Service must be owned by a specific Organization and all the activities it contains should belongs to the same Organization.
The following resources are applicable:
/api/consumer/services
GET
Get all Active Services the current user is entitled to see. Each returned services must own
at least one Catalog Item the current user is entitled to.
Permissions
Parameters
name |
description |
type |
default |
page |
Page Number
|
query |
1 |
limit |
Number of entries per page
|
query |
20 |
$orderby |
Multiple comma-separated properties sorted in ascending or descending order
|
query |
|
$top |
Sets the number of returned entries from the top of the response (total number per page in relation to skip)
|
query |
|
$skip |
Sets how many entries you would like to skip
|
query |
|
$filter |
Boolean expression for whether a particular entry should be included in the response
|
query |
|
onBehalfOf |
optional query parameter providing the value of the user Id when the intention is to
request on behalf of someone else.
|
query |
|
Response Body
element: |
Page of service |
media types: |
|
A Page of Services
/api/consumer/services/{id}
GET
Get a Service according to its unique id provided in the path.
Permissions
Parameters
name |
description |
type |
default |
id |
The uuid of a Service
|
path |
|
Response Body
A Service corresponding to the unique Id.
/api/consumer/services/{id}/icon
GET
Get a Service's Icon according to its unique id provided in the path.
Permissions
Parameters
name |
description |
type |
default |
id |
The UUID of a Service
|
path |
|
Response Body
element: |
(custom) |
media types: |
|
A Service Icon corresponding to the unique Id.
/api/services
POST
Create a new Service.
Permissions
Request Body
the Service to be created.
Response Body
the updated Service and HTTP status code.
Status Codes
HTTP Status Code |
Description |
201 Created |
Created |
GET
Finds all Services that the currently logged in user has access to.
Permissions
Parameters
name |
description |
type |
default |
page |
Page Number
|
query |
1 |
limit |
Number of entries per page
|
query |
20 |
$orderby |
Multiple comma-separated properties sorted in ascending or descending order
|
query |
|
$top |
Sets the number of returned entries from the top of the response (total number per page in relation to skip)
|
query |
|
$skip |
Sets how many entries you would like to skip
|
query |
|
$filter |
Boolean expression for whether a particular entry should be included in the response
|
query |
|
Response Body
element: |
Page of service |
media types: |
|
a Page of Services.
/api/services/{id}
GET
Retrieve an existing Service. It checks if the user is permitted to view the service.
Permissions
Parameters
name |
description |
type |
default |
id |
the unique identifier for the Service.
|
path |
|
Response Body
The Service.
PUT
Updates an existing Service.
Permissions
Parameters
name |
description |
type |
default |
id |
- the unique identifier for the service.
|
path |
|
Request Body
- the service to be updated.
Response Body
The updated service.
Status Codes
HTTP Status Code |
Description |
200 OK |
OK |
/api/services/{id}/catalogItems
GET
Retrieve all the catalog items belonging to a given service
Permissions
Parameters
name |
description |
type |
default |
id |
- the unique identifier for the service.
|
path |
|
page |
Page Number
|
query |
1 |
limit |
Number of entries per page
|
query |
20 |
$orderby |
Multiple comma-separated properties sorted in ascending or descending order
|
query |
|
$top |
Sets the number of returned entries from the top of the response (total number per page in relation to skip)
|
query |
|
$skip |
Sets how many entries you would like to skip
|
query |
|
$filter |
Boolean expression for whether a particular entry should be included in the response
|
query |
|
Response Body
Page of Catalog items for a given service