We will follow the principles of RESTful design for our API. This means we will use constructed URIs that represent resources and then use the HTTP methods to perform actions over these resources.
In this example, we will only use the GET (to retrieve), POST (to create), and DELETE (to delete) methods as the thoughts are not editable. Remember that PUT (to overwrite completely) and PATCH (to perform a partial update) are also available.
One of the main properties of RESTful APIs is that requests need to be stateless, which means that each request is totally self-contained and can be served by any server. All the required data should be either at the client (that will send it attached to the request) or in a database (so the server will retrieve it in full). This property is a hard requirement when dealing with Docker containers, as they can be destroyed...