Active nanoservices of the product layer (nservices)
Overview
Performs queries to product layer nanoservices. Nanoservices are part of microservices of the product layer added to the mservices collection and have unique names.
5 seconds are allocated for processing the request, unless the target nanoservice extends the waiting interval. Request lifetime control is provided by the nanoservice 'platform.WatchdogService'.
5 seconds are allocated for processing the request, unless the target nanoservice extends the waiting interval. Request lifetime control is provided by the nanoservice 'platform.WatchdogService'.
When executing a request, it is mandatory to specify the name of the nanoservice (from the list of active ones) in the URL, as well as to pass the 'method' parameter in the body of the request, and optionally 'request' to pass parameters in any format: string, number, object, array, etc.
An object with the following fields is returned as a response:
'result' :: "ok" | "error"
'code' :: "success" | "error" | "timeout" | "failed" | "notfound"
'response' :: arbitrary format
Requests
HTTP verb | Endpoint | Description |
---|---|---|
|
|
|
|
|
Getting the list of names of active nanoservices
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 be issued. |
|
|
The maximum number of resources in the list. |
|
|
The sort order of the resources in the list. |
|
|
Conversion to flat form of composite fields. |
GET /rest/v1/domain/nservices?offset=0&limit=2 HTTP/1.1