Closed pl-buiquang closed 3 years ago
Idea: add a configuration file to the api
[swagger]
endpoints = [ "layers/layers", ... ]
If done like so, add the following conf:
server = http//localhost:8080
./server.sh --conf path_to_conf_file.ini
Branch issue-111-Limit/Group_api_endpoints created!
To make sur my explanation was clear, The "group cuts" listed are not the only endpoint we wish to see in the swagger doc. All available path should be listed. They define the paths which we do not want to see any deeper endpoint.
Suite à une discussion entre @qdesmedt / @FrancoisJ:
Ne serait il pas possible d'ajouter une metadonnée dans le jsonschema pour que la génération des chemins du swagger s'arrête (ne pas construire les enfants) aux noeuds contenant cette métadonnée ? Il faudrait effectivement en plus de la génération automatique via le jsonschema (tout ce qui est en dessous de /studies/{study_id} a priori) rajouter une génération ad hoc pour les endpoints qui n'en dépendent pas.
Décision:
Branch issue-111-Limit/Group_api_endpoints created!
output/XXX/info(.antares-output) Not yet implemented see #119
To make the api usage more user-friendly and, well, usable, some endpoint should be left out of the swagger documentation (possibly for the api itself if needed/possible), letting only higher level of the json accessible and returning the whole content. The list of these group cuts is :
output/XXX/info(.antares-output)