Implement "swagger:generate" metadata #863

Merged
merged 1 commit into from Nov 12, 2016

Projects

None yet

1 participant

@raphael
Member
raphael commented Nov 12, 2016 edited

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 Implement "swagger:generate" metadata
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
       })
    })
36ffcac
@raphael raphael merged commit 40c363a into master Nov 12, 2016

3 checks passed

continuous-integration/appveyor/branch AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
continuous-integration/travis-ci/push The Travis CI build passed
Details
@raphael raphael deleted the add_swagger_generate_metadata branch Nov 12, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment