concept POST in category swagger

This is an excerpt from Manning's book Designing APIs with Swagger and OpenAPI.
Given a resource, consumers will want to be able to do things to and with them. Think of these actions as verbs. HTTP has a set of well defined ones, such as POST,GET,PUT,DELETE,PATCH and a few less common ones. These are HTTP methods but they are derived from the ideas in REST. As an example of a HTTP method, if you wish to fetch data related to a resource you would use the GET method. If you wish to create a new resource you could use the POST method.
In our FarmStallAPI we’ll be adding -
POST /users-POST /tokens- TheAuthorizationheader toPOST /reviews
Looking at the following diagram we can learn more about the
POST /reviewsoperation and how it handles Authorization…Figure 7.3. Diagram of authorization in POST /reviews
![]()
Listing 7.4. Added security requirement object to POST /reviews
openapi: 3.0.0 # ... paths: # ... /reviews: post: # ... security: #1 - MyUserToken: [] #2