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

Generating documentation for client libraries #1387

Closed
buremba opened this issue Oct 13, 2015 · 4 comments
Closed

Generating documentation for client libraries #1387

buremba opened this issue Oct 13, 2015 · 4 comments

Comments

@buremba
Copy link

buremba commented Oct 13, 2015

Even though their functions are same, each client api has different usages since each programming language has its own syntax and conventions.

Statically-typed languages such as Java has automatic api generators (javadoc) but in dynamically-typed languages users will have to look at the source code in order to use client libraries since there won't be any example of how the client library can be used.

It would be nice to generate documentations for client libraries that are also generated by swagger-codegen. The generated documentation will actually be similar to API documentation, except it will demonstrate constructing objects, passing parameters and executing queries.

@wing328
Copy link
Contributor

wing328 commented Oct 14, 2015

@buremba thanks for the feedback. Here is a similar suggestion opened before: #1363

@ghost
Copy link

ghost commented Oct 18, 2015

I'm working on generating Slate documentation. Will PR once I am done. Not sure how long it will be though!

@buremba
Copy link
Author

buremba commented Oct 18, 2015

@jhitchcock I started a separate project that generates Slate markdown from Swagger specification. It's still far from being mature but may be helpful for you. https://github.com/buremba/swagger-slate

Currently, it uses custom template files and have swagger-codegen dependency in order to generate example usage section of Slate for different languages.

@wing328
Copy link
Contributor

wing328 commented Nov 29, 2017

UPDATE: html2 generates documentation with code samples.

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

2 participants