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

Allow resources or methods to be tagged with multiple swagger tags #632

Closed
enrique-guillen opened this issue Oct 9, 2018 · 3 comments
Closed

Comments

@enrique-guillen
Copy link
Contributor

The swagger-editor allows clicking on tags and getting all endpoints tagged with that tag. It seems like Apipie only supports one customizable tag, which I'm guessing is the name of the class or the name in the resource_description.

The DSL could work like this:

  resource_description do
    name 'Foo | Bar'
    tags 'Foo', 'Bar', 'Baz'
    short 'A bar in the foo namespace that is related to Bazes'
  end

And/or:

  api :POST, 'foo/bars'
  param :relationships, desc: 'A qux object related to the bar can be created here.'
  resource_tags 'Foo', 'Bar', 'Baz', 'Qux'
  def index; ...; end
@iNecas
Copy link
Member

iNecas commented Oct 9, 2018

The proposal sounds reasonable. I will be happy to review the changes once the PR is opened.

@enrique-guillen
Copy link
Contributor Author

PR no longer a WIP.

@iNecas
Copy link
Member

iNecas commented Oct 15, 2018

Closed by #634, thanks @enrique-guillen

@iNecas iNecas closed this as completed Oct 15, 2018
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

2 participants