Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API owner to be able to control 'Try it out!' button #1490

Closed
preriasusi opened this issue Sep 6, 2016 · 4 comments
Closed

API owner to be able to control 'Try it out!' button #1490

preriasusi opened this issue Sep 6, 2016 · 4 comments

Comments

@preriasusi
Copy link
Contributor

preriasusi commented Sep 6, 2016

In swagger documentation it's possible t try to make real calls. Some customers want to allow try out for all methods, some for only get methods, some customers don't want it at all.

Controlling 'Try it out!' can be done when Swagger Ui is launched in Javascript with supportedSubmitMethods option. With supportedSubmitMethods option it's possible to

To serve customer, should give customer an option to choose for each api documentation, which are the methods that support 'Try it out!'.

 window.swaggerUi = new SwaggerUi({
    url: url,
    dom_id: "swagger-ui-container",
    supportedSubmitMethods: ['get', 'post', 'put', 'delete'],

Wireframe

joxi_screenshot_1473677587247

@bajiat
Copy link
Contributor

bajiat commented Sep 8, 2016

This feature should be added to the Manage Documentation dialog

@marla-singer
Copy link
Contributor

@bajiat @preriasusi Yes, I think so

@Nazarah
Copy link
Contributor

Nazarah commented Sep 12, 2016

@marla-singer : lets discuss about the possible UI design. :)

@Nazarah
Copy link
Contributor

Nazarah commented Sep 12, 2016

thanks @marla-singer for the instant wireframe. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants