openapi: "3.0.0" info: version: 1.0.0 title: Swagger Petstore description: A sample API that uses a petstore as an example to demonstrate features in the OpenAPI 3.0 specification termsOfService: http://swagger.io/terms/ contact: name: Swagger API Team email: apiteam@swagger.io url: http://swagger.io license: name: Apache 2.0 url: https://www.apache.org/licenses/LICENSE-2.0.html servers: - url: http://petstore.swagger.io/api paths: /users: post: summary: Adds a new user requestBody: content: application/xml: schema: # Request body contents $ref: '#/components/schemas/User' example: # Sample object id: 10 name: Jessica Smith responses: '200': description: OK components: schemas: User: # Schema name type: object properties: id: type: integer format: int64 name: type: string