Swagger API definition: The batch command parameter should be declare form

The batch command uses a form parameter, it should be fully declare so the
swagger-ui would be able to display it.

Signed-off-by: Amnon Heiman <amnon@cloudius-systems.com>
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>
Http Server: dynamically generate the api-doc swagger

This adds a handler that collect api entry and return the api-doc when
needed.

It allows dynamically adds api entry, for example if the jvm is not
active, it will be possible not to register it and the API (with the
swagger-ui) will not be returned.

Signed-off-by: Amnon Heiman <amnon@cloudius-systems.com>
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>
Http Server: register the models on call to their init function

This adds a description parameter to the module auto-generated init
function and use that description to register the API when calling to
it's init.

This also change all the init calls to include their description.

To check either call:
http://localhost:8000/api-doc/ to get the list of APIs and for example
to get the env api call:
http://localhost:8000/api-doc/env/env

or use inside the swagger-ui gui the url:
http://localhost:8000/api-doc

Signed-off-by: Amnon Heiman <amnon@cloudius-systems.com>
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>