Specifying the Create User endpoint

Using what you've just learned, specify a new path, operation, and operation object for the Create User endpoint, filling in the tags, summary, description, and responses properties. You should end up with something like this:

paths:  /users:    post:      tags:        - Users      summary: Creates a New User      responses:        '201':          description: Created          content:            text/plain:              schema:                type: string        '400':          description: Bad Request          content:            application/json:              schema:                properties:                  message:                    description: Error message                    type: string        '415':          description: Unsupported Media Type          content:            application/json:              schema:                properties:                  message:                    description: Error message                    type: string        '500':          description: Internal Server Error          content:            application/json: schema: ...

Get Building Enterprise JavaScript Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.