June 2025
Intermediate to advanced
837 pages
24h 50m
English
Whereas the request scheme for read accesses could still be adopted with almost no changes at all, and the few adjustments were primarily implemented in the controller and in the model, for write accesses, we must also change the routes. At this point, the default implementation of REST provides for using the various methods provided by HTTP for the respective purpose. For example, the POST method is used for requests that create data records, while the PUT method is used for requests that update data records. It’s also important at this point to model the server’s return correctly and to use the appropriate status codes.
When creating new data records, you use the POST method ...
Read now
Unlock full access