--- openapi: 3.0.1 info: title: API V1 version: v1 paths: "/users": get: summary: list users tags: - Users responses: '200': description: users found content: application/json: schema: type: array items: type: object properties: id: type: integer email: type: string first_name: type: string last_name: type: string required: - id - email - first_name - last_name text/html: schema: type: array items: type: object properties: id: type: integer email: type: string first_name: type: string last_name: type: string required: - id - email - first_name - last_name "/users/{id}": parameters: - name: id in: path description: id required: true schema: type: string get: summary: show user tags: - Users responses: '200': description: user found content: application/json: schema: type: object properties: id: type: integer email: type: string first_name: type: string last_name: type: string required: - id - email - first_name - last_name text/html: schema: type: object properties: id: type: integer email: type: string first_name: type: string last_name: type: string required: - id - email - first_name - last_name '404': description: user not found content: application/json: schema: type: object properties: error: type: string required: - error text/html: schema: type: object properties: error: type: string required: - error servers: - url: https://{defaultHost} variables: defaultHost: default: www.example.com