Service registration - NielsB95/APIGateway GitHub Wiki

In Projects we stated that services need to register themselves in order for them to become available. On this page, we will specify how services can do this, and what information they need to provide.

Request

Services register themselves by sending a POST-request to the APIGateway. In this request, a list endpoints needs to be provided along with some additional parameters.

{
    "Name": "<Name of the microservice>",
    "DomainName": "http(s)://<Address on which the service is available>",
    "Port": 0,
    "Version": "0.0.1",
    "Prefix": "<pathname prefix>",
    "Endpoints": [
        {
           "Method": "<HTTP Method Type>",
           "Pathname": "<Pathname of the url>"
        }
    ]
}