jensoleg / swagger-ui

Swagger UI is a dependency-free collection of HTML, Javascript, and CSS assets that dynamically generate beautiful documentation from a Swagger-compliant API.
http://swagger.io
Other
1.13k stars 310 forks source link

How to generate automatic JSON for swagger by giving UI to user to give a API details. #68

Open RamYerra opened 7 years ago

RamYerra commented 7 years ago

Hi All,

How can we write program to support developer to generate automatic JSON file by giving API details in UI.

theopak commented 7 years ago

How can we write program to support developer to generate automatic JSON file by giving API details in UI.

Are you asking about using a web UI that helps authors produce a valid swagger.json file, like http://editor.swagger.io ?

RamYerra commented 7 years ago

Hi Theodore,

Thanks to look at my question. Am talking about who maintaining API's docs in project is that guy to add an additional API information by giving name, method just like filling registration form UI.

You sent an sawgger editor link to build JSOn or YAML files but am asking is it way to take inputs from front end and in programmatic way to update predefined JSON/YAML.

And small request is their any themes for Swaggor to show API list.

Thanks!

On Fri, Jan 27, 2017 at 12:19 AM, Theodore X. Pak notifications@github.com wrote:

How can we write program to support developer to generate automatic JSON file by giving API details in UI.

Are you asking about using a web UI that helps authors produce a valid swagger.json file, like http://editor.swagger.io ?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jensoleg/swagger-ui/pull/68#issuecomment-275475854, or mute the thread https://github.com/notifications/unsubscribe-auth/ANO1-4Zc1w7A3CxcgmM3PHlsP5yfkIutks5rWOrTgaJpZM4KX7p3 .

-- Thanks.

veysiertekin commented 7 years ago

Hi @RamYerra ,

I don't know what technologies you use but we use springfox/springfox for the auto JSON generation. springfox supports Spring Framework. if you do not use Spring, after little research, may be you can find an alternative. Swagger-ui just a UI for the JSON.

RamYerra commented 7 years ago

Thanks Veysi!

On Mon, Jan 30, 2017 at 10:50 AM, Veysi Ertekin notifications@github.com wrote:

Hi @RamYerra https://github.com/RamYerra ,

I don't know what technologies you use but we use springfox/springfox https://github.com/springfox/springfox for the auto JSON generation. springfox supports Spring Framework. if you do not use Spring, after little research, may be you can find an alternative. Swagger-ui just a UI for the JSON.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/jensoleg/swagger-ui/pull/68#issuecomment-275982217, or mute the thread https://github.com/notifications/unsubscribe-auth/ANO1-1FU0_CmZwSj_ucz-Aq4g-vUl-PEks5rXXMTgaJpZM4KX7p3 .

-- Thanks.