oasis-open / odata-rapid

Rapid - Specification, tools and libraries to support the development and adoption of simple REST-based APIs.
https://rapid.rocks
Apache License 2.0
17 stars 8 forks source link

disable swagger's "try-it-now" #373

Closed chrisspre closed 1 year ago

chrisspre commented 1 year ago

Since there is not service YET in the API designer , the "try-it-now" button just creates an error. For the moment this should be disabled and only enabled when we can generate and host a service based on the designed RSDL.

chrisspre commented 1 year ago

found the following c.SupportedSubmitMethods (new string [] {}); will completely disable “Try it out”

chrisspre commented 1 year ago

see https://github.com/oasis-open/odata-rapid/tree/disable-swagger-try-button which is untested as of now due to build issues

mikepizzo commented 1 year ago

Fixed by PR #374.