Building a REST API
The principle is to break down the application into resources that clients can use through HTTP requests. This architecture for distributed systems was created in 2000 by Roy Fielding in his doctoral thesis. The benefit of a REST API is making the application’s resources usable by all its components. This enables implementing microservices, portability, and giving external parties access to certain features. Resource Identification by URL Each resource must be identified via a URL that is logically structured. Resource names should use the plural form to indicate that without filtering parameters, all elements are displayed. When filtering, we keep the plural, implying that we retrieve all elements then return only the filtered one. ...