Active product layer nanoservices (nservices)
Overview
Executes requests to product layer nanoservices. Nanoservices are part of product layer microservices added to the mservices collection and have unique names.
5 seconds are allotted for request processing unless the target nanoservice increases the wait interval. The 'platform.WatchdogService' nanoservice controls request lifetime.
5 seconds are allotted for request processing unless the target nanoservice increases the wait interval. The 'platform.WatchdogService' nanoservice controls request lifetime.
When executing a request, specifying the nanoservice name (from the active list) in the URL is mandatory, as well as passing the 'method' parameter in the request body, and optionally 'request' to pass parameters in an arbitrary format: string, number, object, array, etc.
The response returns an object with fields:
'result' :: "ok" | "error"
'code' :: "success" | "error" | "timeout" | "failed" | "notfound"
'response' :: arbitrary format
Requests
| HTTP verb | Endpoint | Description |
|---|---|---|
|
|
|
|
|
Getting the list of active nanoservice names
Request
| Name | Type | Description |
|---|---|---|
|
|
Filter by field values. |
|
|
List of fields to output. Available fields for output: name. |
|
|
Offset in the list of resources to output. |
|
|
Maximum number of resources in the list. |
|
|
Sorting order of resources in the list. |
|
|
Transformation of composite fields to flat form. |
GET /rest/v1/domain/nservices?offset=0&limit=2 HTTP/1.1