Added an endpoint "/discovery" for the "/global/" and "/module/" routes.
$curl http://localhost:9652/discovery
GET /global/config.{format:(json|yaml)}
GET /global/list.{format:(json|yaml)}
GET /global/patches.{format:(json|yaml)}
GET /global/snapshots.{format:(json|yaml)}
GET /global/values.{format:(json|yaml)}
GET /module/list.{format:(json|yaml|text)}
GET /module/resource-monitor.{format:(json|yaml)}
GET /module/{name}/patches.json
GET /module/{name}/render
GET /module/{name}/snapshots.{format:(json|yaml)}
GET /module/{name}/{type:(config|values)}.{format:(json|yaml)}
Why do we need it, and what problem does it solve?
Description
Added an endpoint "/discovery" for the "/global/" and "/module/" routes.
Why do we need it, and what problem does it solve?
Fix https://github.com/deckhouse/deckhouse/issues/5827
What is the expected result?
A new endpoint is available. Calling the endpoint returns a list of available routes "/global/" and "/module/".