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

Creating Custom Endpoints #77

Open
ErnestOrt opened this issue Dec 19, 2018 · 0 comments
Open

Creating Custom Endpoints #77

ErnestOrt opened this issue Dec 19, 2018 · 0 comments

Comments

@ErnestOrt
Copy link
Owner

As a user, I would like to access my custom endpoinds registered on actuator

For instance, fruits endpoint

@Endpoint(id = "fruits")
public class FruitsEndpoint {
 
    @ReadOperation
    public Map<String, Fruit> fruits() { ... }
 
    @WriteOperation
    public void addFruits(@Selector String name, Fruit fruit) { ... }
}

Related docs:

https://docs.spring.io/spring-boot/docs/current/reference/html/production-ready-endpoints.html#production-ready-endpoints-custom

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

No branches or pull requests

1 participant