swagger: '2.0'
info:
  version: '1.0.0'
  title: Swagger Petstore (Simple)
  description: A sample API that uses a petstore as an example to demonstrate features in the swagger-2.0 specification
  termsOfService: http://helloreverb.com/terms/
  contact:
    name: Swagger API team
    email: foo@example.com
    url: http://swagger.io
  license:
    name: MIT
    url: http://opensource.org/licenses/MIT
host: localhost
basePath: /test
schemes:
  - http
consumes:
  - application/text
  - application/json
  - text/xml
  - text/html
  - multipart/form-data
  - application/x-www-form-urlencoded
produces:
  - application/text
  - application/json
  - text/xml
  - text/html
paths:
  /swagger_test.php:
    post:
      description: Request for response of roadform.  Duplicates are allowed
      operationId: request_form
      consumes:
          - application/text
          - application/json
          - text/xml
          - text/html
          - multipart/form-data
          - application/x-www-form-urlencoded
      produces:
        - application/text
        - application/json
        - text/xml
        - text/html
      parameters:
        - name: request_form
          in: body
          description: Get response form request_form
          required: true
          schema:
            $ref: '#/definitions/newPet'
      responses:
        '200':
          description: request_form response
          schema:
            $ref: '#/definitions/response_200'
        '400':
          description: request_form response
          schema:
            $ref: '#/definitions/response_400'
        default:
          description: unexpected error
          schema:
            $ref: '#/definitions/errorModel'
definitions:
  response_200:
    type: object
    properties:
      name:
        type: string
      last_name:
        type: string
  response_400:
    type: object
    properties:
      name:
        type: string
      last_name:
        type: string
  newPet:
    type: object
    required:
      - name
      - last_name
    properties:
      name:
        type: string
      last_name:
        type: string
  errorModel:
    type: object
    required:
      - name
      - last_name
    properties:
      name:
        type: string
      last_name:
        type: string
