Put Service By ID
DescriptionAdd a service if its not existing by creating an entry in the database. Update a service if its already existing by modifying the existing entry in the database.
Request
URLURL
Path Parameters
Path Parameters
ID of the service to be created or updated. It is the name associated with the service.
Request Body
{
"version": "0.1.0"
}
The current version of the service.
Time at which the service was created. Times are nanoseconds since the unix epoch.
A summary description of the service.
Acts as the service ID.
The href associated with the service.
The type of the service stating whether the service is a platform service or an rApp.
The status of the service. Only services with their status set to REGISTERED will be listed. By default the registry will set the status of service being added to REGISTERED. Services that do not send periodic heartbeat updates will be marked as UNDISCOVERABLE.
Possible values are: REGISTERED , UNDISCOVERABLE
Time at which the service was last updated. Times are nanoseconds since the unix epoch.
The name as displayed for the service.
Response
200 OK Response Body>Response Body
200 OK
Successfully updated the service
The duration, in seconds, at which heartbeats should be sent.
201 Created Response Body>
Response Body
201 Created
Successfully created a new service
The duration, in seconds, at which heartbeats should be sent.
Errors
The input does not have the correct form, a service cannot be created.