MediaMath / catalyst-controller-swagger

5 stars 5 forks source link

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

Open hoppfrosch opened 8 years ago

hoppfrosch commented 8 years ago

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::addmeta 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?