Deployment scripts should also provide the endpoints as JSON
Currently the deployment scripts create a very simple text format with the endpoints of each deployed service. This should be extended to where also a JSON format version is created so that it can be used by other services to make our lives easier.
The simplest way would be to parse the simple text and put it in a JSON structure, which could look something like this:
{
"//ServiceName//": {
"POST": ["//URL//", "//URL//", ...],
...
},
}
where //ServiceName//
is the name of the service and //URL//
is the actual URL available for that kind of HTTP method.
This could then be further processed for question services to provide a simple JSON stating the "manage instances" and the "manage answers" endpoint, since these always follow the same structure.