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

How to add additional metadata while using Attribute :Swagger? #7

Open
hoppfrosch opened this issue Jan 5, 2016 · 0 comments
Open

Comments

@hoppfrosch
Copy link

Within your Readme.md-example you have following:

# A swagger route can be flagged to be swagger with the :Swagger attribute
sub test_two :Local :Swagger {
  my ($self, $c) = @_;
  $c->response->body('test_two');
}

And later you wrote:""Any additional metadata that would need to be exposed would need to use the Swagger::add_meta function to associate it." (within Section Attribute :Swagger)

But ... I cannot figure out, how to do this.

Could you please give an example, how to add additional metadata (for example description in the example above) - while using the :Swagger-Attribute?

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

No branches or pull requests

1 participant