-
Notifications
You must be signed in to change notification settings - Fork 105
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 generation] we need better api generation #259
Comments
/assign @ddysher |
Thanks for bringing this up. Most of the questions here are related to representation of API docs, which are actually not part of nirvana. We use https://github.com/Rebilly/ReDoc for navigating APIs, can u explore it and see if it solves ur problem? If so, then we can either upgrade ReDoc, or we put some rules in nirvana to force people writing more documentations (and thus better API docs). |
/cc @kdada |
Q: Required or Default? Q: Where is parameter descriptions? Q: How to set examples? I think we can improve the user experiences via implementing these features:
|
type Tsk2 struct {
A string `json:"a" comments:"xxx"`
}
|
For comments: type Tsk2 struct {
// Write comments here.
A string `json:"a"`
} |
If you are interesting in extending doc server for Nirvana, please write down your proposal. |
经过 @kdada 的指导,更深入的使用后,发现nirvana的API生成已经足够完备,至少信息展示方面已经足够了。 那只剩【交互】方面的问题了,简单的说需要以下功能:
方案:
待补充 |
@zcong1993 How does it implement proxy and mock APIs? @ddysher I'll update the doc when I'm free. |
/kind feature
What happened:
I'm glad to see the feature: api-auto-generation, it looks like:
it seems good, but I want more.
What you expected to happen:
I wrote an API documentation a few days ago, and I suffered a lot. So, I hope that the ability of API-generation can be more complete:
可能废话有点多,所以这里在总结一下,要求一共两点:
The text was updated successfully, but these errors were encountered: