Skip to content

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