Skip to content

Added the @Tag and @Tags functionality. #27

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

Merged
merged 1 commit into from
May 18, 2020
Merged

Conversation

Tijs-2
Copy link
Contributor

@Tijs-2 Tijs-2 commented May 15, 2020

Hi Rob,

I wanted to use tags so I tried to add the functionality and you can now add a one or multiple tags to a controller or to the method itself. They will be added instead of overwritten if you add multiple.

Small example how to add them:
@tag(name="ControllerTag")
@controller
public class Controller {

@tag(name = "EndpointTag")
@get
public void get(Long id) {}

@tags({
@tag(name="tag 1", description="Tag 1"),
@tag(name="tag 2", description="Tag 2")
})
@post
public void post() {}
}

I must admin not sure if this is the correct way to implement it but it seems to work :)

Tijs

You can now add a one or multiple tags to a controller or to the method itself.
They will be added instead of overwritten.
@rbygrave
Copy link
Contributor

Yup, looks good - merging.

@rbygrave rbygrave added this to the 1.17 milestone May 18, 2020
@rbygrave rbygrave merged commit a40b0ae into avaje:master May 18, 2020
rbygrave added a commit that referenced this pull request Jan 16, 2023
…sing with metrics collection and reporting
rbygrave added a commit that referenced this pull request Jan 16, 2023
…s custom attributes between RequestIntercept methods
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

Successfully merging this pull request may close these issues.

2 participants