Trampoline icon indicating copy to clipboard operation
Trampoline copied to clipboard

Creating Custom Endpoints

Open ErnestOrt opened this issue 5 years ago • 0 comments

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

ErnestOrt avatar Dec 19 '18 11:12 ErnestOrt