Skip to content

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

Description

@hoppfrosch

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions