metasfresh / metasfresh-documentation

Docs and Manuals for Devs, Users, Admins
http://docs.metasfresh.org/
26 stars 27 forks source link

new swagger link #1022

Closed andreasokn closed 1 year ago

andreasokn commented 1 year ago

Please change documentation https://docs.metasfresh.org/installation_collection/EN/How_do_I_browse_the_REST_API_using_Swagger.html and use this swagger link https://github.com/metasfresh/bc107/issues/550#issuecomment-1541573769

MHNV commented 1 year ago

PR:

andreasokn commented 1 year ago

Customer closed

https://github.com/metasfresh/bc107/issues/550#issuecomment-1541626298

metas-Kay commented 1 year ago

Please note

This change/update also affects other docs:

Questions for clarification

As a result of this update, this URL:

has to be:

correct❓

:question: What about the ! after the html#? The # seems to be important:

:question: Thus, can the ! be omitted or is it necessary specifically for the debug-rest-controller?

:question: And is the index.html strictly necessary or can it be omitted? Both versions work:

And if I open an API endpoint, just a #/ is added:

MHNV commented 1 year ago

@metas-Kay

has to be:

  • https:///app/swagger-ui/index.html#/debug-rest-controller/setShowColumnNamesForCaptionUsingPUT

🅰️: yes thats how it should look like

❓ What about the ! after the html#? The # seems to be important:

🅰️: Afaik the # is only important when you want to zoom to a section like /app-server-migration-script-rest-controller it always adds the # infront of the section. So if you only want to go to the swagger-ui you only need the /app/swagger-ui/index.html to get there.

❓ Thus, can the ! be omitted or is it necessary specifically for the debug-rest-controller?

🅰️: I remember that the swagger-UI used to use!, but I saw that its not used anymore after the swagger-ui changes.

❓ And is the index.html strictly necessary or can it be omitted?

🅰️: Afaik it can be omitted on some customer site, but on some other it doens't work. I think we could add a section to show the full link with index.html. Since for me the index.html shows me that im on swagger-ui and Im on the index.html page of the swagger-ui.

metas-Kay commented 1 year ago

Updated docs

English Versions

German Versions