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

feat: Add .api syntax, support for multiple routing response docs #2430

Closed
wants to merge 1 commit into from

Conversation

csh995426531
Copy link

@csh995426531 csh995426531 commented Sep 21, 2022

The current api documentation generated by swagger only has examples of successful returns for returns, and lacks support for multiple return formats, add additional annotation syntax to support the feature.
The final result is similar:
image

@kesonan
Copy link
Collaborator

kesonan commented Oct 9, 2022

The current syntax structure can meet your needs, the authors of goctl-swagger will support it in subsequent versions, you can create a feature to the goctl-swagger plugin.

@csh995426531
Copy link
Author

The current syntax structure can meet your needs, the authors of goctl-swagger will support it in subsequent versions, you can create a feature to the goctl-swagger plugin.
Okay

@csh995426531
Copy link
Author

csh995426531 commented Oct 11, 2022

The current syntax structure can meet your needs, the authors of goctl-swagger will support it in subsequent versions, you can create a feature to the goctl-swagger plugin.

Okay, I added a merge to goctl-swagger to parse the content in the comment, zeromicro/goctl-swagger#55

@waltcow
Copy link

waltcow commented Nov 7, 2022

😊 it looks good to me

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


😊 it looks good to me

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

Successfully merging this pull request may close these issues.

4 participants