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

Implement "swagger:generate" metadata #863

Merged
merged 1 commit into from
Nov 12, 2016
Merged

Conversation

raphael
Copy link
Member

@raphael raphael commented Nov 12, 2016

Can be applied to resources, actions and file servers.
Set the value to "false" to prevent Swagger specification from being generated. Example:

Resource("invisible", func() {
    Metadata("swagger:generate", "false")
    Action("visible", func() {
        Metadata("swagger:generate", "true") // Override resource swagger:generate metadata
   })
})

Fix #628

@raphael raphael force-pushed the add_swagger_generate_metadata branch from 40b63cc to 089d332 Compare November 12, 2016 02:55
Can be applied to resources, actions and file servers.
Set the value to "false" to prevent Swagger specification from being generated. Examples:

    Resource("invisible", func() {
        Metadata("swagger:generate", "false")
        Action("visible", func() {
            Metadata("swagger:generate", "true") // Override resource swagger:generate metadata
       })
    })
@raphael raphael force-pushed the add_swagger_generate_metadata branch from 089d332 to 36ffcac Compare November 12, 2016 02:57
@raphael raphael merged commit 40c363a into master Nov 12, 2016
@raphael raphael deleted the add_swagger_generate_metadata branch November 12, 2016 03:22
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.

1 participant