Custom endpoint with code

Hello, I’d like to know if it’s possible to create a custom endpoint that, for example, do something with the database…

For example, I create an endpoint like ‘/api/stores/custom_endpoint’, in this custom end point, I would like to, for example, update some information in the database (like the name of a store)

Is it possible, like to create custom end points and handle the database, or something like that?

Check out this great playlist. It shows you how to create a new route and customise the controller to handle different database operations.