concept POST in category swagger

appears as: POST, POST, A POST, The POST
Designing APIs with Swagger and OpenAPI

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 - The Authorization header to POST /reviews

7.1.1  The flow of POST /reviews

Looking at the following diagram we can learn more about the POST /reviews operation and how it handles Authorization…

Figure 7.3. Diagram of authorization in POST /reviews
ch07 creating user flow

7.3.4  Adding the security requirements to POST /reviews

Listing 7.4. Added security requirement object to POST /reviews
openapi: 3.0.0
# ...
paths:
  # ...
  /reviews:
    post:
      # ...
      security:           #1
        - MyUserToken: [] #2