There are three different approaches to implementing a REST endpoint:
Functional REST endpoints (the new and preferred way to go)
Class based REST endpoints
Classic REST controllers
There are three different approaches to implementing a REST endpoint:
Functional REST endpoints (the new and preferred way to go)
Class based REST endpoints
Classic REST controllers