All Downloads are FREE. Search and download functionalities are using the official Maven repository.

swagger.schemas.request-pattern.yaml Maven / Gradle / Ivy

There is a newer version: 3.0.1
Show newest version
type: object
example:
  bodyPatterns:
    - equalToJson: '{ "numbers": [1, 2, 3] }'
  headers:
    Content-Type:
      equalTo: application/json
  method: POST
  url: /some/thing
properties:
  method:
    type: string
    description: The HTTP request method e.g. GET
  url:
    type: string
    description: The path and query to match exactly against. Only one of url, urlPattern, urlPath or urlPathPattern may be specified.
  urlPath:
    type: string
    description: The path to match exactly against. Only one of url, urlPattern, urlPath or urlPathPattern may be specified.
  urlPathPattern:
    type: string
    description: The path regex to match against. Only one of url, urlPattern, urlPath or urlPathPattern may be specified.
  urlPattern:
    type: string
    description: The path and query regex to match against. Only one of url, urlPattern, urlPath or urlPathPattern may be specified.
  queryParameters:
    type: object
    description: 'Query parameter patterns to match against in the : { "": "" } form'
  headers:
    type: object
    description: 'Header patterns to match against in the : { "": "" } form'
  basicAuthCredentials:
    type: object
    description: Pre-emptive basic auth credentials to match against
    properties:
      password:
        type: string
      username:
        type: string
    required:
      - username
      - password
  cookies:
    type: object
    description: 'Cookie patterns to match against in the : { "": "" } form'
  bodyPatterns:
    type: array
    description: 'Request body patterns to match against in the : { "": "" } form'
    items:
      type: object




© 2015 - 2024 Weber Informatics LLC | Privacy Policy