I'd love to see an example for an endpoint, how the code would look like.