diff --git a/samples/client/petstore/java/okhttp-gson-nextgen/api/openapi.yaml b/samples/client/petstore/java/okhttp-gson-nextgen/api/openapi.yaml
deleted file mode 100644
index 89bd50c75a6..00000000000
--- a/samples/client/petstore/java/okhttp-gson-nextgen/api/openapi.yaml
+++ /dev/null
@@ -1,2482 +0,0 @@
-openapi: 3.0.0
-info:
- description: 'This spec is mainly for testing Petstore server and contains fake
- endpoints, models. Please do not use this for any other purpose. Special characters:
- " \'
- license:
- name: Apache-2.0
- url: https://www.apache.org/licenses/LICENSE-2.0.html
- title: OpenAPI Petstore
- version: 1.0.0
-servers:
-- description: petstore server
- url: http://{server}.swagger.io:{port}/v2
- variables:
- server:
- default: petstore
- enum:
- - petstore
- - qa-petstore
- - dev-petstore
- port:
- default: "80"
- enum:
- - "80"
- - "8080"
-- description: The local server
- url: https://localhost:8080/{version}
- variables:
- version:
- default: v2
- enum:
- - v1
- - v2
-- description: The local server without variables
- url: https://127.0.0.1/no_variable
-tags:
-- description: Everything about your Pets
- name: pet
-- description: Access to Petstore orders
- name: store
-- description: Operations about user
- name: user
-paths:
- /foo:
- get:
- responses:
- default:
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/inline_response_default'
- description: response
- x-accepts: application/json
- /pet:
- post:
- description: ""
- operationId: addPet
- requestBody:
- $ref: '#/components/requestBodies/Pet'
- responses:
- "405":
- description: Invalid input
- security:
- - http_signature_test: []
- - petstore_auth:
- - write:pets
- - read:pets
- summary: Add a new pet to the store
- tags:
- - pet
- x-contentType: application/json
- x-accepts: application/json
- put:
- description: ""
- operationId: updatePet
- requestBody:
- $ref: '#/components/requestBodies/Pet'
- responses:
- "400":
- description: Invalid ID supplied
- "404":
- description: Pet not found
- "405":
- description: Validation exception
- security:
- - http_signature_test: []
- - petstore_auth:
- - write:pets
- - read:pets
- summary: Update an existing pet
- tags:
- - pet
- x-contentType: application/json
- x-accepts: application/json
- servers:
- - url: http://petstore.swagger.io/v2
- - url: http://path-server-test.petstore.local/v2
- /pet/findByStatus:
- get:
- description: Multiple status values can be provided with comma separated strings
- operationId: findPetsByStatus
- parameters:
- - deprecated: true
- description: Status values that need to be considered for filter
- explode: false
- in: query
- name: status
- required: true
- schema:
- items:
- default: available
- enum:
- - available
- - pending
- - sold
- type: string
- type: array
- style: form
- responses:
- "200":
- content:
- application/xml:
- schema:
- items:
- $ref: '#/components/schemas/Pet'
- type: array
- application/json:
- schema:
- items:
- $ref: '#/components/schemas/Pet'
- type: array
- description: successful operation
- "400":
- description: Invalid status value
- security:
- - http_signature_test: []
- - petstore_auth:
- - write:pets
- - read:pets
- summary: Finds Pets by status
- tags:
- - pet
- x-accepts: application/json
- /pet/findByTags:
- get:
- deprecated: true
- description: Multiple tags can be provided with comma separated strings. Use
- tag1, tag2, tag3 for testing.
- operationId: findPetsByTags
- parameters:
- - description: Tags to filter by
- explode: false
- in: query
- name: tags
- required: true
- schema:
- items:
- type: string
- type: array
- style: form
- responses:
- "200":
- content:
- application/xml:
- schema:
- items:
- $ref: '#/components/schemas/Pet'
- type: array
- application/json:
- schema:
- items:
- $ref: '#/components/schemas/Pet'
- type: array
- description: successful operation
- "400":
- description: Invalid tag value
- security:
- - http_signature_test: []
- - petstore_auth:
- - write:pets
- - read:pets
- summary: Finds Pets by tags
- tags:
- - pet
- x-accepts: application/json
- /pet/{petId}:
- delete:
- description: ""
- operationId: deletePet
- parameters:
- - explode: false
- in: header
- name: api_key
- required: false
- schema:
- type: string
- style: simple
- - description: Pet id to delete
- explode: false
- in: path
- name: petId
- required: true
- schema:
- format: int64
- type: integer
- style: simple
- responses:
- "400":
- description: Invalid pet value
- security:
- - petstore_auth:
- - write:pets
- - read:pets
- summary: Deletes a pet
- tags:
- - pet
- x-accepts: application/json
- get:
- description: Returns a single pet
- operationId: getPetById
- parameters:
- - description: ID of pet to return
- explode: false
- in: path
- name: petId
- required: true
- schema:
- format: int64
- type: integer
- style: simple
- responses:
- "200":
- content:
- application/xml:
- schema:
- $ref: '#/components/schemas/Pet'
- application/json:
- schema:
- $ref: '#/components/schemas/Pet'
- description: successful operation
- "400":
- description: Invalid ID supplied
- "404":
- description: Pet not found
- security:
- - api_key: []
- summary: Find pet by ID
- tags:
- - pet
- x-accepts: application/json
- post:
- description: ""
- operationId: updatePetWithForm
- parameters:
- - description: ID of pet that needs to be updated
- explode: false
- in: path
- name: petId
- required: true
- schema:
- format: int64
- type: integer
- style: simple
- requestBody:
- $ref: '#/components/requestBodies/inline_object'
- content:
- application/x-www-form-urlencoded:
- schema:
- properties:
- name:
- description: Updated name of the pet
- type: string
- status:
- description: Updated status of the pet
- type: string
- type: object
- responses:
- "405":
- description: Invalid input
- security:
- - petstore_auth:
- - write:pets
- - read:pets
- summary: Updates a pet in the store with form data
- tags:
- - pet
- x-contentType: application/x-www-form-urlencoded
- x-accepts: application/json
- /pet/{petId}/uploadImage:
- post:
- description: ""
- operationId: uploadFile
- parameters:
- - description: ID of pet to update
- explode: false
- in: path
- name: petId
- required: true
- schema:
- format: int64
- type: integer
- style: simple
- requestBody:
- $ref: '#/components/requestBodies/inline_object_1'
- content:
- multipart/form-data:
- schema:
- properties:
- additionalMetadata:
- description: Additional data to pass to server
- type: string
- file:
- description: file to upload
- format: binary
- type: string
- type: object
- responses:
- "200":
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponse'
- description: successful operation
- security:
- - petstore_auth:
- - write:pets
- - read:pets
- summary: uploads an image
- tags:
- - pet
- x-contentType: multipart/form-data
- x-accepts: application/json
- /store/inventory:
- get:
- description: Returns a map of status codes to quantities
- operationId: getInventory
- responses:
- "200":
- content:
- application/json:
- schema:
- additionalProperties:
- format: int32
- type: integer
- type: object
- description: successful operation
- security:
- - api_key: []
- summary: Returns pet inventories by status
- tags:
- - store
- x-accepts: application/json
- /store/order:
- post:
- description: ""
- operationId: placeOrder
- requestBody:
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Order'
- description: order placed for purchasing the pet
- required: true
- responses:
- "200":
- content:
- application/xml:
- schema:
- $ref: '#/components/schemas/Order'
- application/json:
- schema:
- $ref: '#/components/schemas/Order'
- description: successful operation
- "400":
- description: Invalid Order
- summary: Place an order for a pet
- tags:
- - store
- x-contentType: application/json
- x-accepts: application/json
- /store/order/{order_id}:
- delete:
- description: For valid response try integer IDs with value < 1000. Anything
- above 1000 or nonintegers will generate API errors
- operationId: deleteOrder
- parameters:
- - description: ID of the order that needs to be deleted
- explode: false
- in: path
- name: order_id
- required: true
- schema:
- type: string
- style: simple
- responses:
- "400":
- description: Invalid ID supplied
- "404":
- description: Order not found
- summary: Delete purchase order by ID
- tags:
- - store
- x-accepts: application/json
- get:
- description: For valid response try integer IDs with value <= 5 or > 10. Other
- values will generated exceptions
- operationId: getOrderById
- parameters:
- - description: ID of pet that needs to be fetched
- explode: false
- in: path
- name: order_id
- required: true
- schema:
- format: int64
- maximum: 5
- minimum: 1
- type: integer
- style: simple
- responses:
- "200":
- content:
- application/xml:
- schema:
- $ref: '#/components/schemas/Order'
- application/json:
- schema:
- $ref: '#/components/schemas/Order'
- description: successful operation
- "400":
- description: Invalid ID supplied
- "404":
- description: Order not found
- summary: Find purchase order by ID
- tags:
- - store
- x-accepts: application/json
- /user:
- post:
- description: This can only be done by the logged in user.
- operationId: createUser
- requestBody:
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/User'
- description: Created user object
- required: true
- responses:
- default:
- description: successful operation
- summary: Create user
- tags:
- - user
- x-contentType: application/json
- x-accepts: application/json
- /user/createWithArray:
- post:
- description: ""
- operationId: createUsersWithArrayInput
- requestBody:
- $ref: '#/components/requestBodies/UserArray'
- responses:
- default:
- description: successful operation
- summary: Creates list of users with given input array
- tags:
- - user
- x-contentType: application/json
- x-accepts: application/json
- /user/createWithList:
- post:
- description: ""
- operationId: createUsersWithListInput
- requestBody:
- $ref: '#/components/requestBodies/UserArray'
- responses:
- default:
- description: successful operation
- summary: Creates list of users with given input array
- tags:
- - user
- x-contentType: application/json
- x-accepts: application/json
- /user/login:
- get:
- description: ""
- operationId: loginUser
- parameters:
- - description: The user name for login
- explode: true
- in: query
- name: username
- required: true
- schema:
- type: string
- style: form
- - description: The password for login in clear text
- explode: true
- in: query
- name: password
- required: true
- schema:
- type: string
- style: form
- responses:
- "200":
- content:
- application/xml:
- schema:
- type: string
- application/json:
- schema:
- type: string
- description: successful operation
- headers:
- X-Rate-Limit:
- description: calls per hour allowed by the user
- explode: false
- schema:
- format: int32
- type: integer
- style: simple
- X-Expires-After:
- description: date in UTC when token expires
- explode: false
- schema:
- format: date-time
- type: string
- style: simple
- "400":
- description: Invalid username/password supplied
- summary: Logs user into the system
- tags:
- - user
- x-accepts: application/json
- /user/logout:
- get:
- description: ""
- operationId: logoutUser
- responses:
- default:
- description: successful operation
- summary: Logs out current logged in user session
- tags:
- - user
- x-accepts: application/json
- /user/{username}:
- delete:
- description: This can only be done by the logged in user.
- operationId: deleteUser
- parameters:
- - description: The name that needs to be deleted
- explode: false
- in: path
- name: username
- required: true
- schema:
- type: string
- style: simple
- responses:
- "400":
- description: Invalid username supplied
- "404":
- description: User not found
- summary: Delete user
- tags:
- - user
- x-accepts: application/json
- get:
- description: ""
- operationId: getUserByName
- parameters:
- - description: The name that needs to be fetched. Use user1 for testing.
- explode: false
- in: path
- name: username
- required: true
- schema:
- type: string
- style: simple
- responses:
- "200":
- content:
- application/xml:
- schema:
- $ref: '#/components/schemas/User'
- application/json:
- schema:
- $ref: '#/components/schemas/User'
- description: successful operation
- "400":
- description: Invalid username supplied
- "404":
- description: User not found
- summary: Get user by user name
- tags:
- - user
- x-accepts: application/json
- put:
- description: This can only be done by the logged in user.
- operationId: updateUser
- parameters:
- - description: name that need to be deleted
- explode: false
- in: path
- name: username
- required: true
- schema:
- type: string
- style: simple
- requestBody:
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/User'
- description: Updated user object
- required: true
- responses:
- "400":
- description: Invalid user supplied
- "404":
- description: User not found
- summary: Updated user
- tags:
- - user
- x-contentType: application/json
- x-accepts: application/json
- /fake_classname_test:
- patch:
- description: To test class name in snake case
- operationId: testClassname
- requestBody:
- $ref: '#/components/requestBodies/Client'
- responses:
- "200":
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Client'
- description: successful operation
- security:
- - api_key_query: []
- summary: To test class name in snake case
- tags:
- - fake_classname_tags 123#$%^
- x-contentType: application/json
- x-accepts: application/json
- /fake:
- delete:
- description: Fake endpoint to test group parameters (optional)
- operationId: testGroupParameters
- parameters:
- - description: Required String in group parameters
- explode: true
- in: query
- name: required_string_group
- required: true
- schema:
- type: integer
- style: form
- - description: Required Boolean in group parameters
- explode: false
- in: header
- name: required_boolean_group
- required: true
- schema:
- type: boolean
- style: simple
- - description: Required Integer in group parameters
- explode: true
- in: query
- name: required_int64_group
- required: true
- schema:
- format: int64
- type: integer
- style: form
- - description: String in group parameters
- explode: true
- in: query
- name: string_group
- required: false
- schema:
- type: integer
- style: form
- - description: Boolean in group parameters
- explode: false
- in: header
- name: boolean_group
- required: false
- schema:
- type: boolean
- style: simple
- - description: Integer in group parameters
- explode: true
- in: query
- name: int64_group
- required: false
- schema:
- format: int64
- type: integer
- style: form
- responses:
- "400":
- description: Someting wrong
- security:
- - bearer_test: []
- summary: Fake endpoint to test group parameters (optional)
- tags:
- - fake
- x-group-parameters: true
- x-accepts: application/json
- get:
- description: To test enum parameters
- operationId: testEnumParameters
- parameters:
- - description: Header parameter enum test (string array)
- explode: false
- in: header
- name: enum_header_string_array
- required: false
- schema:
- items:
- default: $
- enum:
- - '>'
- - $
- type: string
- type: array
- style: simple
- - description: Header parameter enum test (string)
- explode: false
- in: header
- name: enum_header_string
- required: false
- schema:
- default: -efg
- enum:
- - _abc
- - -efg
- - (xyz)
- type: string
- style: simple
- - description: Query parameter enum test (string array)
- explode: true
- in: query
- name: enum_query_string_array
- required: false
- schema:
- items:
- default: $
- enum:
- - '>'
- - $
- type: string
- type: array
- style: form
- - description: Query parameter enum test (string)
- explode: true
- in: query
- name: enum_query_string
- required: false
- schema:
- default: -efg
- enum:
- - _abc
- - -efg
- - (xyz)
- type: string
- style: form
- - description: Query parameter enum test (double)
- explode: true
- in: query
- name: enum_query_integer
- required: false
- schema:
- enum:
- - 1
- - -2
- format: int32
- type: integer
- style: form
- - description: Query parameter enum test (double)
- explode: true
- in: query
- name: enum_query_double
- required: false
- schema:
- enum:
- - 1.1
- - -1.2
- format: double
- type: number
- style: form
- requestBody:
- $ref: '#/components/requestBodies/inline_object_2'
- content:
- application/x-www-form-urlencoded:
- schema:
- properties:
- enum_form_string_array:
- description: Form parameter enum test (string array)
- items:
- default: $
- enum:
- - '>'
- - $
- type: string
- type: array
- enum_form_string:
- default: -efg
- description: Form parameter enum test (string)
- enum:
- - _abc
- - -efg
- - (xyz)
- type: string
- type: object
- responses:
- "400":
- description: Invalid request
- "404":
- description: Not found
- summary: To test enum parameters
- tags:
- - fake
- x-contentType: application/x-www-form-urlencoded
- x-accepts: application/json
- patch:
- description: To test "client" model
- operationId: testClientModel
- requestBody:
- $ref: '#/components/requestBodies/Client'
- responses:
- "200":
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Client'
- description: successful operation
- summary: To test "client" model
- tags:
- - fake
- x-contentType: application/json
- x-accepts: application/json
- post:
- description: |
- Fake endpoint for testing various parameters
- 假端點
- 偽のエンドポイント
- 가짜 엔드 포인트
- operationId: testEndpointParameters
- requestBody:
- $ref: '#/components/requestBodies/inline_object_3'
- content:
- application/x-www-form-urlencoded:
- schema:
- properties:
- integer:
- description: None
- maximum: 100
- minimum: 10
- type: integer
- int32:
- description: None
- format: int32
- maximum: 200
- minimum: 20
- type: integer
- int64:
- description: None
- format: int64
- type: integer
- number:
- description: None
- maximum: 543.2
- minimum: 32.1
- type: number
- float:
- description: None
- format: float
- maximum: 987.6
- type: number
- double:
- description: None
- format: double
- maximum: 123.4
- minimum: 67.8
- type: number
- string:
- description: None
- pattern: /[a-z]/i
- type: string
- pattern_without_delimiter:
- description: None
- pattern: ^[A-Z].*
- type: string
- byte:
- description: None
- format: byte
- type: string
- binary:
- description: None
- format: binary
- type: string
- date:
- description: None
- format: date
- type: string
- dateTime:
- default: 2010-02-01T10:20:10.11111+01:00
- description: None
- example: 2020-02-02T20:20:20.22222Z
- format: date-time
- type: string
- password:
- description: None
- format: password
- maxLength: 64
- minLength: 10
- type: string
- callback:
- description: None
- type: string
- required:
- - byte
- - double
- - number
- - pattern_without_delimiter
- type: object
- responses:
- "400":
- description: Invalid username supplied
- "404":
- description: User not found
- security:
- - http_basic_test: []
- summary: |
- Fake endpoint for testing various parameters
- 假端點
- 偽のエンドポイント
- 가짜 엔드 포인트
- tags:
- - fake
- x-contentType: application/x-www-form-urlencoded
- x-accepts: application/json
- /fake/outer/number:
- post:
- description: Test serialization of outer number types
- operationId: fakeOuterNumberSerialize
- requestBody:
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/OuterNumber'
- description: Input number as post body
- responses:
- "200":
- content:
- '*/*':
- schema:
- $ref: '#/components/schemas/OuterNumber'
- description: Output number
- tags:
- - fake
- x-contentType: application/json
- x-accepts: '*/*'
- /fake/outer/string:
- post:
- description: Test serialization of outer string types
- operationId: fakeOuterStringSerialize
- requestBody:
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/OuterString'
- description: Input string as post body
- responses:
- "200":
- content:
- '*/*':
- schema:
- $ref: '#/components/schemas/OuterString'
- description: Output string
- tags:
- - fake
- x-contentType: application/json
- x-accepts: '*/*'
- /fake/outer/boolean:
- post:
- description: Test serialization of outer boolean types
- operationId: fakeOuterBooleanSerialize
- requestBody:
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/OuterBoolean'
- description: Input boolean as post body
- responses:
- "200":
- content:
- '*/*':
- schema:
- $ref: '#/components/schemas/OuterBoolean'
- description: Output boolean
- tags:
- - fake
- x-contentType: application/json
- x-accepts: '*/*'
- /fake/outer/composite:
- post:
- description: Test serialization of object with outer number type
- operationId: fakeOuterCompositeSerialize
- requestBody:
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/OuterComposite'
- description: Input composite as post body
- responses:
- "200":
- content:
- '*/*':
- schema:
- $ref: '#/components/schemas/OuterComposite'
- description: Output composite
- tags:
- - fake
- x-contentType: application/json
- x-accepts: '*/*'
- /fake/jsonFormData:
- get:
- description: ""
- operationId: testJsonFormData
- requestBody:
- $ref: '#/components/requestBodies/inline_object_4'
- content:
- application/x-www-form-urlencoded:
- schema:
- properties:
- param:
- description: field1
- type: string
- param2:
- description: field2
- type: string
- required:
- - param
- - param2
- type: object
- responses:
- "200":
- description: successful operation
- summary: test json serialization of form data
- tags:
- - fake
- x-contentType: application/x-www-form-urlencoded
- x-accepts: application/json
- /fake/inline-additionalProperties:
- post:
- description: ""
- operationId: testInlineAdditionalProperties
- requestBody:
- content:
- application/json:
- schema:
- additionalProperties:
- type: string
- type: object
- description: request body
- required: true
- responses:
- "200":
- description: successful operation
- summary: test inline additionalProperties
- tags:
- - fake
- x-contentType: application/json
- x-accepts: application/json
- /fake/body-with-query-params:
- put:
- operationId: testBodyWithQueryParams
- parameters:
- - explode: true
- in: query
- name: query
- required: true
- schema:
- type: string
- style: form
- requestBody:
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/User'
- required: true
- responses:
- "200":
- description: Success
- tags:
- - fake
- x-contentType: application/json
- x-accepts: application/json
- /another-fake/dummy:
- patch:
- description: To test special tags and operation ID starting with number
- operationId: 123_test_@#$%_special_tags
- requestBody:
- $ref: '#/components/requestBodies/Client'
- responses:
- "200":
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Client'
- description: successful operation
- summary: To test special tags
- tags:
- - $another-fake?
- x-contentType: application/json
- x-accepts: application/json
- /fake/test-query-parameters:
- put:
- description: To test the collection format in query parameters
- operationId: testQueryParameterCollectionFormat
- parameters:
- - explode: true
- in: query
- name: pipe
- required: true
- schema:
- items:
- type: string
- type: array
- style: form
- - explode: false
- in: query
- name: ioutil
- required: true
- schema:
- items:
- type: string
- type: array
- style: form
- - explode: false
- in: query
- name: http
- required: true
- schema:
- items:
- type: string
- type: array
- style: spaceDelimited
- - explode: false
- in: query
- name: url
- required: true
- schema:
- items:
- type: string
- type: array
- style: form
- - explode: true
- in: query
- name: context
- required: true
- schema:
- items:
- type: string
- type: array
- style: form
- responses:
- "200":
- description: Success
- tags:
- - fake
- x-accepts: application/json
- /fake/{petId}/uploadImageWithRequiredFile:
- post:
- description: ""
- operationId: uploadFileWithRequiredFile
- parameters:
- - description: ID of pet to update
- explode: false
- in: path
- name: petId
- required: true
- schema:
- format: int64
- type: integer
- style: simple
- requestBody:
- $ref: '#/components/requestBodies/inline_object_5'
- content:
- multipart/form-data:
- schema:
- properties:
- additionalMetadata:
- description: Additional data to pass to server
- type: string
- requiredFile:
- description: file to upload
- format: binary
- type: string
- required:
- - requiredFile
- type: object
- responses:
- "200":
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponse'
- description: successful operation
- security:
- - petstore_auth:
- - write:pets
- - read:pets
- summary: uploads an image (required)
- tags:
- - pet
- x-contentType: multipart/form-data
- x-accepts: application/json
- /fake/health:
- get:
- responses:
- "200":
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/HealthCheckResult'
- description: The instance started successfully
- summary: Health check endpoint
- tags:
- - fake
- x-accepts: application/json
- /fake/array-of-enums:
- get:
- operationId: getArrayOfEnums
- responses:
- "200":
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ArrayOfEnums'
- description: Got named array of enums
- summary: Array of Enums
- tags:
- - fake
- x-accepts: application/json
-components:
- requestBodies:
- UserArray:
- content:
- application/json:
- examples:
- simple-list:
- description: Should not get into code examples
- summary: Simple list example
- value:
- - username: foo
- - username: bar
- schema:
- items:
- $ref: '#/components/schemas/User'
- type: array
- description: List of user object
- required: true
- Client:
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Client'
- description: client model
- required: true
- Pet:
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Pet'
- application/xml:
- schema:
- $ref: '#/components/schemas/Pet'
- description: Pet object that needs to be added to the store
- required: true
- inline_object:
- content:
- application/x-www-form-urlencoded:
- schema:
- $ref: '#/components/schemas/inline_object'
- inline_object_1:
- content:
- multipart/form-data:
- schema:
- $ref: '#/components/schemas/inline_object_1'
- inline_object_2:
- content:
- application/x-www-form-urlencoded:
- schema:
- $ref: '#/components/schemas/inline_object_2'
- inline_object_3:
- content:
- application/x-www-form-urlencoded:
- schema:
- $ref: '#/components/schemas/inline_object_3'
- inline_object_4:
- content:
- application/x-www-form-urlencoded:
- schema:
- $ref: '#/components/schemas/inline_object_4'
- inline_object_5:
- content:
- multipart/form-data:
- schema:
- $ref: '#/components/schemas/inline_object_5'
- schemas:
- Foo:
- example:
- bar: bar
- properties:
- bar:
- default: bar
- type: string
- type: object
- Bar:
- default: bar
- type: string
- Order:
- example:
- petId: 6
- quantity: 1
- id: 0
- shipDate: 2020-02-02T20:20:20.000222Z
- complete: false
- status: placed
- properties:
- id:
- format: int64
- type: integer
- petId:
- format: int64
- type: integer
- quantity:
- format: int32
- type: integer
- shipDate:
- example: 2020-02-02T20:20:20.000222Z
- format: date-time
- type: string
- status:
- description: Order Status
- enum:
- - placed
- - approved
- - delivered
- type: string
- complete:
- default: false
- type: boolean
- type: object
- xml:
- name: Order
- Category:
- example:
- name: default-name
- id: 6
- properties:
- id:
- format: int64
- type: integer
- name:
- default: default-name
- type: string
- required:
- - name
- type: object
- xml:
- name: Category
- User:
- example:
- firstName: firstName
- lastName: lastName
- password: password
- userStatus: 6
- objectWithNoDeclaredPropsNullable: '{}'
- phone: phone
- objectWithNoDeclaredProps: '{}'
- id: 0
- anyTypePropNullable: ""
- email: email
- anyTypeProp: ""
- username: username
- properties:
- id:
- format: int64
- type: integer
- x-is-unique: true
- username:
- type: string
- firstName:
- type: string
- lastName:
- type: string
- email:
- type: string
- password:
- type: string
- phone:
- type: string
- userStatus:
- description: User Status
- format: int32
- type: integer
- objectWithNoDeclaredProps:
- description: test code generation for objects Value must be a map of strings
- to values. It cannot be the 'null' value.
- type: object
- objectWithNoDeclaredPropsNullable:
- description: test code generation for nullable objects. Value must be a
- map of strings to values or the 'null' value.
- nullable: true
- type: object
- anyTypeProp:
- description: test code generation for any type Here the 'type' attribute
- is not specified, which means the value can be anything, including the
- null value, string, number, boolean, array or object. See https://github.com/OAI/OpenAPI-Specification/issues/1389
- anyTypePropNullable:
- description: test code generation for any type Here the 'type' attribute
- is not specified, which means the value can be anything, including the
- null value, string, number, boolean, array or object. The 'nullable' attribute
- does not change the allowed values.
- nullable: true
- type: object
- xml:
- name: User
- Tag:
- example:
- name: name
- id: 1
- properties:
- id:
- format: int64
- type: integer
- name:
- type: string
- type: object
- xml:
- name: Tag
- Pet:
- example:
- photoUrls:
- - photoUrls
- - photoUrls
- name: doggie
- id: 0
- category:
- name: default-name
- id: 6
- tags:
- - name: name
- id: 1
- - name: name
- id: 1
- status: available
- properties:
- id:
- format: int64
- type: integer
- x-is-unique: true
- category:
- $ref: '#/components/schemas/Category'
- name:
- example: doggie
- type: string
- photoUrls:
- items:
- type: string
- type: array
- xml:
- name: photoUrl
- wrapped: true
- tags:
- items:
- $ref: '#/components/schemas/Tag'
- type: array
- xml:
- name: tag
- wrapped: true
- status:
- description: pet status in the store
- enum:
- - available
- - pending
- - sold
- type: string
- required:
- - name
- - photoUrls
- type: object
- xml:
- name: Pet
- ApiResponse:
- example:
- code: 0
- type: type
- message: message
- properties:
- code:
- format: int32
- type: integer
- type:
- type: string
- message:
- type: string
- type: object
- Return:
- description: Model for testing reserved words
- properties:
- return:
- format: int32
- type: integer
- xml:
- name: Return
- Name:
- description: Model for testing model name same as property name
- properties:
- name:
- format: int32
- type: integer
- snake_case:
- format: int32
- readOnly: true
- type: integer
- property:
- type: string
- "123Number":
- readOnly: true
- type: integer
- required:
- - name
- xml:
- name: Name
- "200_response":
- description: Model for testing model name starting with number
- properties:
- name:
- format: int32
- type: integer
- class:
- type: string
- xml:
- name: Name
- ClassModel:
- description: Model for testing model with "_class" property
- properties:
- _class:
- type: string
- Dog:
- allOf:
- - $ref: '#/components/schemas/Animal'
- - $ref: '#/components/schemas/Dog_allOf'
- Cat:
- allOf:
- - $ref: '#/components/schemas/Animal'
- - $ref: '#/components/schemas/Address'
- - $ref: '#/components/schemas/Cat_allOf'
- Address:
- additionalProperties:
- type: integer
- type: object
- Animal:
- discriminator:
- propertyName: className
- properties:
- className:
- type: string
- color:
- default: red
- type: string
- required:
- - className
- type: object
- AnimalFarm:
- items:
- $ref: '#/components/schemas/Animal'
- type: array
- format_test:
- properties:
- integer:
- maximum: 100
- minimum: 10
- multipleOf: 2
- type: integer
- int32:
- format: int32
- maximum: 200
- minimum: 20
- type: integer
- int64:
- format: int64
- type: integer
- number:
- maximum: 543.2
- minimum: 32.1
- multipleOf: 32.5
- type: number
- float:
- format: float
- maximum: 987.6
- minimum: 54.3
- type: number
- double:
- format: double
- maximum: 123.4
- minimum: 67.8
- type: number
- decimal:
- format: number
- type: string
- string:
- pattern: /[a-z]/i
- type: string
- byte:
- format: byte
- type: string
- binary:
- format: binary
- type: string
- date:
- example: 2020-02-02
- format: date
- type: string
- dateTime:
- example: 2007-12-03T10:15:30+01:00
- format: date-time
- type: string
- uuid:
- example: 72f98069-206d-4f12-9f12-3d1e525a8e84
- format: uuid
- type: string
- password:
- format: password
- maxLength: 64
- minLength: 10
- type: string
- pattern_with_digits:
- description: A string that is a 10 digit number. Can have leading zeros.
- pattern: ^\d{10}$
- type: string
- pattern_with_digits_and_delimiter:
- description: A string starting with 'image_' (case insensitive) and one
- to three digits following i.e. Image_01.
- pattern: /^image_\d{1,3}$/i
- type: string
- required:
- - byte
- - date
- - number
- - password
- type: object
- EnumClass:
- default: -efg
- enum:
- - _abc
- - -efg
- - (xyz)
- type: string
- Enum_Test:
- properties:
- enum_string:
- enum:
- - UPPER
- - lower
- - ""
- type: string
- enum_string_required:
- enum:
- - UPPER
- - lower
- - ""
- type: string
- enum_integer:
- enum:
- - 1
- - -1
- format: int32
- type: integer
- enum_integer_only:
- enum:
- - 2
- - -2
- type: integer
- enum_number:
- enum:
- - 1.1
- - -1.2
- format: double
- type: number
- outerEnum:
- $ref: '#/components/schemas/OuterEnum'
- outerEnumInteger:
- $ref: '#/components/schemas/OuterEnumInteger'
- outerEnumDefaultValue:
- $ref: '#/components/schemas/OuterEnumDefaultValue'
- outerEnumIntegerDefaultValue:
- $ref: '#/components/schemas/OuterEnumIntegerDefaultValue'
- required:
- - enum_string_required
- type: object
- AdditionalPropertiesClass:
- properties:
- map_property:
- additionalProperties:
- type: string
- type: object
- map_of_map_property:
- additionalProperties:
- additionalProperties:
- type: string
- type: object
- type: object
- anytype_1: {}
- map_with_undeclared_properties_anytype_1:
- type: object
- map_with_undeclared_properties_anytype_2:
- properties: {}
- type: object
- map_with_undeclared_properties_anytype_3:
- additionalProperties: true
- type: object
- empty_map:
- additionalProperties: false
- description: an object with no declared properties and no undeclared properties,
- hence it's an empty map.
- type: object
- map_with_undeclared_properties_string:
- additionalProperties:
- type: string
- type: object
- type: object
- MixedPropertiesAndAdditionalPropertiesClass:
- properties:
- uuid:
- format: uuid
- type: string
- dateTime:
- format: date-time
- type: string
- map:
- additionalProperties:
- $ref: '#/components/schemas/Animal'
- type: object
- type: object
- List:
- properties:
- "123-list":
- type: string
- type: object
- Client:
- example:
- client: client
- properties:
- client:
- type: string
- type: object
- ReadOnlyFirst:
- properties:
- bar:
- readOnly: true
- type: string
- baz:
- type: string
- type: object
- hasOnlyReadOnly:
- properties:
- bar:
- readOnly: true
- type: string
- foo:
- readOnly: true
- type: string
- type: object
- Capitalization:
- properties:
- smallCamel:
- type: string
- CapitalCamel:
- type: string
- small_Snake:
- type: string
- Capital_Snake:
- type: string
- SCA_ETH_Flow_Points:
- type: string
- ATT_NAME:
- description: |
- Name of the pet
- type: string
- type: object
- MapTest:
- properties:
- map_map_of_string:
- additionalProperties:
- additionalProperties:
- type: string
- type: object
- type: object
- map_of_enum_string:
- additionalProperties:
- enum:
- - UPPER
- - lower
- type: string
- type: object
- direct_map:
- additionalProperties:
- type: boolean
- type: object
- indirect_map:
- additionalProperties:
- type: boolean
- type: object
- type: object
- ArrayTest:
- properties:
- array_of_string:
- items:
- type: string
- type: array
- array_array_of_integer:
- items:
- items:
- format: int64
- type: integer
- type: array
- type: array
- array_array_of_model:
- items:
- items:
- $ref: '#/components/schemas/ReadOnlyFirst'
- type: array
- type: array
- type: object
- NumberOnly:
- properties:
- JustNumber:
- type: number
- type: object
- ArrayOfNumberOnly:
- properties:
- ArrayNumber:
- items:
- type: number
- type: array
- type: object
- ArrayOfArrayOfNumberOnly:
- properties:
- ArrayArrayNumber:
- items:
- items:
- type: number
- type: array
- type: array
- type: object
- EnumArrays:
- properties:
- just_symbol:
- enum:
- - '>='
- - $
- type: string
- array_enum:
- items:
- enum:
- - fish
- - crab
- type: string
- type: array
- type: object
- OuterEnum:
- enum:
- - placed
- - approved
- - delivered
- nullable: true
- type: string
- OuterEnumInteger:
- enum:
- - 0
- - 1
- - 2
- type: integer
- OuterEnumDefaultValue:
- default: placed
- enum:
- - placed
- - approved
- - delivered
- type: string
- OuterEnumIntegerDefaultValue:
- default: 0
- enum:
- - 0
- - 1
- - 2
- type: integer
- OuterComposite:
- example:
- my_string: my_string
- my_number: 0.8008281904610115
- my_boolean: true
- properties:
- my_number:
- type: number
- my_string:
- type: string
- my_boolean:
- type: boolean
- x-codegen-body-parameter-name: boolean_post_body
- type: object
- OuterNumber:
- type: number
- OuterString:
- type: string
- OuterBoolean:
- type: boolean
- x-codegen-body-parameter-name: boolean_post_body
- StringBooleanMap:
- additionalProperties:
- type: boolean
- type: object
- File:
- description: Must be named `File` for test.
- properties:
- sourceURI:
- description: Test capitalization
- type: string
- type: object
- _special_model.name_:
- properties:
- $special[property.name]:
- format: int64
- type: integer
- _special_model.name_:
- type: string
- xml:
- name: $special[model.name]
- HealthCheckResult:
- description: Just a string to inform instance is up and running. Make it nullable
- in hope to get it as pointer in generated model.
- example:
- NullableMessage: NullableMessage
- properties:
- NullableMessage:
- nullable: true
- type: string
- type: object
- NullableClass:
- additionalProperties:
- nullable: true
- type: object
- properties:
- integer_prop:
- nullable: true
- type: integer
- number_prop:
- nullable: true
- type: number
- boolean_prop:
- nullable: true
- type: boolean
- string_prop:
- nullable: true
- type: string
- date_prop:
- format: date
- nullable: true
- type: string
- datetime_prop:
- format: date-time
- nullable: true
- type: string
- array_nullable_prop:
- items:
- type: object
- nullable: true
- type: array
- array_and_items_nullable_prop:
- items:
- nullable: true
- type: object
- nullable: true
- type: array
- array_items_nullable:
- items:
- nullable: true
- type: object
- type: array
- object_nullable_prop:
- additionalProperties:
- type: object
- nullable: true
- type: object
- object_and_items_nullable_prop:
- additionalProperties:
- nullable: true
- type: object
- nullable: true
- type: object
- object_items_nullable:
- additionalProperties:
- nullable: true
- type: object
- type: object
- type: object
- fruit:
- additionalProperties: false
- oneOf:
- - $ref: '#/components/schemas/apple'
- - $ref: '#/components/schemas/banana'
- properties:
- color:
- type: string
- apple:
- nullable: true
- properties:
- cultivar:
- pattern: ^[a-zA-Z\s]*$
- type: string
- origin:
- pattern: /^[A-Z\s]*$/i
- type: string
- type: object
- banana:
- properties:
- lengthCm:
- type: number
- type: object
- mammal:
- discriminator:
- propertyName: className
- oneOf:
- - $ref: '#/components/schemas/whale'
- - $ref: '#/components/schemas/zebra'
- - $ref: '#/components/schemas/Pig'
- whale:
- properties:
- hasBaleen:
- type: boolean
- hasTeeth:
- type: boolean
- className:
- type: string
- required:
- - className
- type: object
- zebra:
- additionalProperties: true
- properties:
- type:
- enum:
- - plains
- - mountain
- - grevys
- type: string
- className:
- type: string
- required:
- - className
- type: object
- Pig:
- discriminator:
- propertyName: className
- oneOf:
- - $ref: '#/components/schemas/BasquePig'
- - $ref: '#/components/schemas/DanishPig'
- BasquePig:
- properties:
- className:
- type: string
- required:
- - className
- type: object
- DanishPig:
- properties:
- className:
- type: string
- required:
- - className
- type: object
- gmFruit:
- additionalProperties: false
- anyOf:
- - $ref: '#/components/schemas/apple'
- - $ref: '#/components/schemas/banana'
- properties:
- color:
- type: string
- fruitReq:
- additionalProperties: false
- oneOf:
- - type: "null"
- - $ref: '#/components/schemas/appleReq'
- - $ref: '#/components/schemas/bananaReq'
- appleReq:
- additionalProperties: false
- properties:
- cultivar:
- type: string
- mealy:
- type: boolean
- required:
- - cultivar
- type: object
- bananaReq:
- additionalProperties: false
- properties:
- lengthCm:
- type: number
- sweet:
- type: boolean
- required:
- - lengthCm
- type: object
- Drawing:
- additionalProperties:
- $ref: '#/components/schemas/fruit'
- properties:
- mainShape:
- $ref: '#/components/schemas/Shape'
- shapeOrNull:
- $ref: '#/components/schemas/ShapeOrNull'
- nullableShape:
- $ref: '#/components/schemas/NullableShape'
- shapes:
- items:
- $ref: '#/components/schemas/Shape'
- type: array
- type: object
- Shape:
- discriminator:
- propertyName: shapeType
- oneOf:
- - $ref: '#/components/schemas/Triangle'
- - $ref: '#/components/schemas/Quadrilateral'
- ShapeOrNull:
- description: The value may be a shape or the 'null' value. This is introduced
- in OAS schema >= 3.1.
- discriminator:
- propertyName: shapeType
- oneOf:
- - type: "null"
- - $ref: '#/components/schemas/Triangle'
- - $ref: '#/components/schemas/Quadrilateral'
- NullableShape:
- description: The value may be a shape or the 'null' value. The 'nullable' attribute
- was introduced in OAS schema >= 3.0 and has been deprecated in OAS schema
- >= 3.1.
- discriminator:
- propertyName: shapeType
- nullable: true
- oneOf:
- - $ref: '#/components/schemas/Triangle'
- - $ref: '#/components/schemas/Quadrilateral'
- ShapeInterface:
- properties:
- shapeType:
- type: string
- required:
- - shapeType
- TriangleInterface:
- properties:
- triangleType:
- type: string
- required:
- - triangleType
- Triangle:
- discriminator:
- propertyName: triangleType
- oneOf:
- - $ref: '#/components/schemas/EquilateralTriangle'
- - $ref: '#/components/schemas/IsoscelesTriangle'
- - $ref: '#/components/schemas/ScaleneTriangle'
- EquilateralTriangle:
- allOf:
- - $ref: '#/components/schemas/ShapeInterface'
- - $ref: '#/components/schemas/TriangleInterface'
- IsoscelesTriangle:
- additionalProperties: false
- allOf:
- - $ref: '#/components/schemas/ShapeInterface'
- - $ref: '#/components/schemas/TriangleInterface'
- ScaleneTriangle:
- allOf:
- - $ref: '#/components/schemas/ShapeInterface'
- - $ref: '#/components/schemas/TriangleInterface'
- QuadrilateralInterface:
- properties:
- quadrilateralType:
- type: string
- required:
- - quadrilateralType
- Quadrilateral:
- discriminator:
- propertyName: quadrilateralType
- oneOf:
- - $ref: '#/components/schemas/SimpleQuadrilateral'
- - $ref: '#/components/schemas/ComplexQuadrilateral'
- SimpleQuadrilateral:
- allOf:
- - $ref: '#/components/schemas/ShapeInterface'
- - $ref: '#/components/schemas/QuadrilateralInterface'
- ComplexQuadrilateral:
- allOf:
- - $ref: '#/components/schemas/ShapeInterface'
- - $ref: '#/components/schemas/QuadrilateralInterface'
- GrandparentAnimal:
- discriminator:
- propertyName: pet_type
- properties:
- pet_type:
- type: string
- required:
- - pet_type
- type: object
- ParentPet:
- allOf:
- - $ref: '#/components/schemas/GrandparentAnimal'
- type: object
- ArrayOfEnums:
- items:
- $ref: '#/components/schemas/OuterEnum'
- type: array
- DateTimeTest:
- default: 2010-01-01T10:10:10.000111+01:00
- example: 2010-01-01T10:10:10.000111+01:00
- format: date-time
- type: string
- DeprecatedObject:
- deprecated: true
- properties:
- name:
- type: string
- type: object
- ObjectWithDeprecatedFields:
- properties:
- uuid:
- type: string
- id:
- deprecated: true
- type: number
- deprecatedRef:
- $ref: '#/components/schemas/DeprecatedObject'
- bars:
- deprecated: true
- items:
- $ref: '#/components/schemas/Bar'
- type: array
- type: object
- PetWithRequiredTags:
- properties:
- id:
- format: int64
- type: integer
- x-is-unique: true
- category:
- $ref: '#/components/schemas/Category'
- name:
- example: doggie
- type: string
- photoUrls:
- items:
- type: string
- type: array
- xml:
- name: photoUrl
- wrapped: true
- tags:
- items:
- $ref: '#/components/schemas/Tag'
- type: array
- xml:
- name: tag
- wrapped: true
- status:
- description: pet status in the store
- enum:
- - available
- - pending
- - sold
- type: string
- required:
- - name
- - photoUrls
- - tags
- type: object
- xml:
- name: Pet
- inline_response_default:
- example:
- string:
- bar: bar
- properties:
- string:
- $ref: '#/components/schemas/Foo'
- type: object
- inline_object:
- properties:
- name:
- description: Updated name of the pet
- type: string
- status:
- description: Updated status of the pet
- type: string
- type: object
- inline_object_1:
- properties:
- additionalMetadata:
- description: Additional data to pass to server
- type: string
- file:
- description: file to upload
- format: binary
- type: string
- type: object
- inline_object_2:
- properties:
- enum_form_string_array:
- description: Form parameter enum test (string array)
- items:
- default: $
- enum:
- - '>'
- - $
- type: string
- type: array
- enum_form_string:
- default: -efg
- description: Form parameter enum test (string)
- enum:
- - _abc
- - -efg
- - (xyz)
- type: string
- type: object
- inline_object_3:
- properties:
- integer:
- description: None
- maximum: 100
- minimum: 10
- type: integer
- int32:
- description: None
- format: int32
- maximum: 200
- minimum: 20
- type: integer
- int64:
- description: None
- format: int64
- type: integer
- number:
- description: None
- maximum: 543.2
- minimum: 32.1
- type: number
- float:
- description: None
- format: float
- maximum: 987.6
- type: number
- double:
- description: None
- format: double
- maximum: 123.4
- minimum: 67.8
- type: number
- string:
- description: None
- pattern: /[a-z]/i
- type: string
- pattern_without_delimiter:
- description: None
- pattern: ^[A-Z].*
- type: string
- byte:
- description: None
- format: byte
- type: string
- binary:
- description: None
- format: binary
- type: string
- date:
- description: None
- format: date
- type: string
- dateTime:
- default: 2010-02-01T10:20:10.11111+01:00
- description: None
- example: 2020-02-02T20:20:20.22222Z
- format: date-time
- type: string
- password:
- description: None
- format: password
- maxLength: 64
- minLength: 10
- type: string
- callback:
- description: None
- type: string
- required:
- - byte
- - double
- - number
- - pattern_without_delimiter
- type: object
- inline_object_4:
- properties:
- param:
- description: field1
- type: string
- param2:
- description: field2
- type: string
- required:
- - param
- - param2
- type: object
- inline_object_5:
- properties:
- additionalMetadata:
- description: Additional data to pass to server
- type: string
- requiredFile:
- description: file to upload
- format: binary
- type: string
- required:
- - requiredFile
- type: object
- Dog_allOf:
- properties:
- breed:
- type: string
- type: object
- Cat_allOf:
- properties:
- declawed:
- type: boolean
- type: object
- securitySchemes:
- petstore_auth:
- flows:
- implicit:
- authorizationUrl: http://petstore.swagger.io/api/oauth/dialog
- scopes:
- write:pets: modify pets in your account
- read:pets: read your pets
- type: oauth2
- api_key:
- in: header
- name: api_key
- type: apiKey
- api_key_query:
- in: query
- name: api_key_query
- type: apiKey
- http_basic_test:
- scheme: basic
- type: http
- bearer_test:
- bearerFormat: JWT
- scheme: bearer
- type: http
- http_signature_test:
- scheme: signature
- type: http
-
diff --git a/samples/client/petstore/java/okhttp-gson-nextgen/docs/FakeApi.md b/samples/client/petstore/java/okhttp-gson-nextgen/docs/FakeApi.md
deleted file mode 100644
index 247cd500631..00000000000
--- a/samples/client/petstore/java/okhttp-gson-nextgen/docs/FakeApi.md
+++ /dev/null
@@ -1,892 +0,0 @@
-# FakeApi
-
-All URIs are relative to *http://petstore.swagger.io:80/v2*
-
-Method | HTTP request | Description
-------------- | ------------- | -------------
-[**fakeHealthGet**](FakeApi.md#fakeHealthGet) | **GET** /fake/health | Health check endpoint
-[**fakeOuterBooleanSerialize**](FakeApi.md#fakeOuterBooleanSerialize) | **POST** /fake/outer/boolean |
-[**fakeOuterCompositeSerialize**](FakeApi.md#fakeOuterCompositeSerialize) | **POST** /fake/outer/composite |
-[**fakeOuterNumberSerialize**](FakeApi.md#fakeOuterNumberSerialize) | **POST** /fake/outer/number |
-[**fakeOuterStringSerialize**](FakeApi.md#fakeOuterStringSerialize) | **POST** /fake/outer/string |
-[**getArrayOfEnums**](FakeApi.md#getArrayOfEnums) | **GET** /fake/array-of-enums | Array of Enums
-[**testBodyWithQueryParams**](FakeApi.md#testBodyWithQueryParams) | **PUT** /fake/body-with-query-params |
-[**testClientModel**](FakeApi.md#testClientModel) | **PATCH** /fake | To test \"client\" model
-[**testEndpointParameters**](FakeApi.md#testEndpointParameters) | **POST** /fake | Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
-[**testEnumParameters**](FakeApi.md#testEnumParameters) | **GET** /fake | To test enum parameters
-[**testGroupParameters**](FakeApi.md#testGroupParameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional)
-[**testInlineAdditionalProperties**](FakeApi.md#testInlineAdditionalProperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties
-[**testJsonFormData**](FakeApi.md#testJsonFormData) | **GET** /fake/jsonFormData | test json serialization of form data
-[**testQueryParameterCollectionFormat**](FakeApi.md#testQueryParameterCollectionFormat) | **PUT** /fake/test-query-parameters |
-
-
-
-# **fakeHealthGet**
-> HealthCheckResult fakeHealthGet()
-
-Health check endpoint
-
-### Example
-```java
-// Import classes:
-import org.openapitools.client.ApiClient;
-import org.openapitools.client.ApiException;
-import org.openapitools.client.Configuration;
-import org.openapitools.client.models.*;
-import org.openapitools.client.api.FakeApi;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
-
- FakeApi apiInstance = new FakeApi(defaultClient);
- try {
- HealthCheckResult result = apiInstance.fakeHealthGet();
- System.out.println(result);
- } catch (ApiException e) {
-
- }
- }
-}
-```
-
-### Parameters
-This endpoint does not need any parameter.
-
-### Return type
-
-[**HealthCheckResult**](HealthCheckResult.md)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: application/json
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-**200** | The instance started successfully | - |
-
-
-# **fakeOuterBooleanSerialize**
-> Boolean fakeOuterBooleanSerialize(body)
-
-
-
-Test serialization of outer boolean types
-
-### Example
-```java
-// Import classes:
-import org.openapitools.client.ApiClient;
-import org.openapitools.client.ApiException;
-import org.openapitools.client.Configuration;
-import org.openapitools.client.models.*;
-import org.openapitools.client.api.FakeApi;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
-
- FakeApi apiInstance = new FakeApi(defaultClient);
- Boolean body = true; // Boolean | Input boolean as post body
- try {
- Boolean result = apiInstance.fakeOuterBooleanSerialize(body);
- System.out.println(result);
- } catch (ApiException e) {
-
- }
- }
-}
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **body** | **Boolean**| Input boolean as post body | [optional]
-
-### Return type
-
-**Boolean**
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
- - **Content-Type**: application/json
- - **Accept**: */*
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-**200** | Output boolean | - |
-
-
-# **fakeOuterCompositeSerialize**
-> OuterComposite fakeOuterCompositeSerialize(outerComposite)
-
-
-
-Test serialization of object with outer number type
-
-### Example
-```java
-// Import classes:
-import org.openapitools.client.ApiClient;
-import org.openapitools.client.ApiException;
-import org.openapitools.client.Configuration;
-import org.openapitools.client.models.*;
-import org.openapitools.client.api.FakeApi;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
-
- FakeApi apiInstance = new FakeApi(defaultClient);
- OuterComposite outerComposite = new OuterComposite(); // OuterComposite | Input composite as post body
- try {
- OuterComposite result = apiInstance.fakeOuterCompositeSerialize(outerComposite);
- System.out.println(result);
- } catch (ApiException e) {
-
- }
- }
-}
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **outerComposite** | [**OuterComposite**](OuterComposite.md)| Input composite as post body | [optional]
-
-### Return type
-
-[**OuterComposite**](OuterComposite.md)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
- - **Content-Type**: application/json
- - **Accept**: */*
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-**200** | Output composite | - |
-
-
-# **fakeOuterNumberSerialize**
-> BigDecimal fakeOuterNumberSerialize(body)
-
-
-
-Test serialization of outer number types
-
-### Example
-```java
-// Import classes:
-import org.openapitools.client.ApiClient;
-import org.openapitools.client.ApiException;
-import org.openapitools.client.Configuration;
-import org.openapitools.client.models.*;
-import org.openapitools.client.api.FakeApi;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
-
- FakeApi apiInstance = new FakeApi(defaultClient);
- BigDecimal body = new BigDecimal(78); // BigDecimal | Input number as post body
- try {
- BigDecimal result = apiInstance.fakeOuterNumberSerialize(body);
- System.out.println(result);
- } catch (ApiException e) {
-
- }
- }
-}
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **body** | **BigDecimal**| Input number as post body | [optional]
-
-### Return type
-
-[**BigDecimal**](BigDecimal.md)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
- - **Content-Type**: application/json
- - **Accept**: */*
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-**200** | Output number | - |
-
-
-# **fakeOuterStringSerialize**
-> String fakeOuterStringSerialize(body)
-
-
-
-Test serialization of outer string types
-
-### Example
-```java
-// Import classes:
-import org.openapitools.client.ApiClient;
-import org.openapitools.client.ApiException;
-import org.openapitools.client.Configuration;
-import org.openapitools.client.models.*;
-import org.openapitools.client.api.FakeApi;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
-
- FakeApi apiInstance = new FakeApi(defaultClient);
- String body = "body_example"; // String | Input string as post body
- try {
- String result = apiInstance.fakeOuterStringSerialize(body);
- System.out.println(result);
- } catch (ApiException e) {
-
- }
- }
-}
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **body** | **String**| Input string as post body | [optional]
-
-### Return type
-
-**String**
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
- - **Content-Type**: application/json
- - **Accept**: */*
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-**200** | Output string | - |
-
-
-# **getArrayOfEnums**
-> List<OuterEnum> getArrayOfEnums()
-
-Array of Enums
-
-### Example
-```java
-// Import classes:
-import org.openapitools.client.ApiClient;
-import org.openapitools.client.ApiException;
-import org.openapitools.client.Configuration;
-import org.openapitools.client.models.*;
-import org.openapitools.client.api.FakeApi;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
-
- FakeApi apiInstance = new FakeApi(defaultClient);
- try {
- List result = apiInstance.getArrayOfEnums();
- System.out.println(result);
- } catch (ApiException e) {
-
- }
- }
-}
-```
-
-### Parameters
-This endpoint does not need any parameter.
-
-### Return type
-
-[**List<OuterEnum>**](OuterEnum.md)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: application/json
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-**200** | Got named array of enums | - |
-
-
-# **testBodyWithQueryParams**
-> testBodyWithQueryParams(query, user)
-
-
-
-### Example
-```java
-// Import classes:
-import org.openapitools.client.ApiClient;
-import org.openapitools.client.ApiException;
-import org.openapitools.client.Configuration;
-import org.openapitools.client.models.*;
-import org.openapitools.client.api.FakeApi;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
-
- FakeApi apiInstance = new FakeApi(defaultClient);
- String query = "query_example"; // String |
- User user = new User(); // User |
- try {
- apiInstance.testBodyWithQueryParams(query, user);
- } catch (ApiException e) {
-
- }
- }
-}
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **query** | **String**| |
- **user** | [**User**](User.md)| |
-
-### Return type
-
-null (empty response body)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
- - **Content-Type**: application/json
- - **Accept**: Not defined
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-**200** | Success | - |
-
-
-# **testClientModel**
-> Client testClientModel(client)
-
-To test \"client\" model
-
-To test \"client\" model
-
-### Example
-```java
-// Import classes:
-import org.openapitools.client.ApiClient;
-import org.openapitools.client.ApiException;
-import org.openapitools.client.Configuration;
-import org.openapitools.client.models.*;
-import org.openapitools.client.api.FakeApi;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
-
- FakeApi apiInstance = new FakeApi(defaultClient);
- Client client = new Client(); // Client | client model
- try {
- Client result = apiInstance.testClientModel(client);
- System.out.println(result);
- } catch (ApiException e) {
-
- }
- }
-}
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **client** | [**Client**](Client.md)| client model |
-
-### Return type
-
-[**Client**](Client.md)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
- - **Content-Type**: application/json
- - **Accept**: application/json
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-**200** | successful operation | - |
-
-
-# **testEndpointParameters**
-> testEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback)
-
-Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
-
-Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
-
-### Example
-```java
-// Import classes:
-import org.openapitools.client.ApiClient;
-import org.openapitools.client.ApiException;
-import org.openapitools.client.Configuration;
-import org.openapitools.client.auth.*;
-import org.openapitools.client.models.*;
-import org.openapitools.client.api.FakeApi;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
-
- // Configure HTTP basic authorization: http_basic_test
- HttpBasicAuth http_basic_test = (HttpBasicAuth) defaultClient.getAuthentication("http_basic_test");
- http_basic_test.setUsername("YOUR USERNAME");
- http_basic_test.setPassword("YOUR PASSWORD");
-
- FakeApi apiInstance = new FakeApi(defaultClient);
- BigDecimal number = new BigDecimal(78); // BigDecimal | None
- Double _double = 3.4D; // Double | None
- String patternWithoutDelimiter = "patternWithoutDelimiter_example"; // String | None
- byte[] _byte = null; // byte[] | None
- Integer integer = 56; // Integer | None
- Integer int32 = 56; // Integer | None
- Long int64 = 56L; // Long | None
- Float _float = 3.4F; // Float | None
- String string = "string_example"; // String | None
- File binary = new File("/path/to/file"); // File | None
- LocalDate date = LocalDate.now(); // LocalDate | None
- OffsetDateTime dateTime = OffsetDateTime.parse("OffsetDateTime.parse("2010-02-01T09:20:10.111110Z[UTC]", java.time.format.DateTimeFormatter.ISO_ZONED_DATE_TIME.withZone(java.time.ZoneId.systemDefault()))"); // OffsetDateTime | None
- String password = "password_example"; // String | None
- String paramCallback = "paramCallback_example"; // String | None
- try {
- apiInstance.testEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback);
- } catch (ApiException e) {
-
- }
- }
-}
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **number** | **BigDecimal**| None |
- **_double** | **Double**| None |
- **patternWithoutDelimiter** | **String**| None |
- **_byte** | **byte[]**| None |
- **integer** | **Integer**| None | [optional]
- **int32** | **Integer**| None | [optional]
- **int64** | **Long**| None | [optional]
- **_float** | **Float**| None | [optional]
- **string** | **String**| None | [optional]
- **binary** | **File**| None | [optional]
- **date** | **LocalDate**| None | [optional]
- **dateTime** | **OffsetDateTime**| None | [optional] [default to OffsetDateTime.parse("2010-02-01T09:20:10.111110Z[UTC]", java.time.format.DateTimeFormatter.ISO_ZONED_DATE_TIME.withZone(java.time.ZoneId.systemDefault()))]
- **password** | **String**| None | [optional]
- **paramCallback** | **String**| None | [optional]
-
-### Return type
-
-null (empty response body)
-
-### Authorization
-
-[http_basic_test](../README.md#http_basic_test)
-
-### HTTP request headers
-
- - **Content-Type**: application/x-www-form-urlencoded
- - **Accept**: Not defined
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-**400** | Invalid username supplied | - |
-**404** | User not found | - |
-
-
-# **testEnumParameters**
-> testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString)
-
-To test enum parameters
-
-To test enum parameters
-
-### Example
-```java
-// Import classes:
-import org.openapitools.client.ApiClient;
-import org.openapitools.client.ApiException;
-import org.openapitools.client.Configuration;
-import org.openapitools.client.models.*;
-import org.openapitools.client.api.FakeApi;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
-
- FakeApi apiInstance = new FakeApi(defaultClient);
- List enumHeaderStringArray = Arrays.asList("$"); // List | Header parameter enum test (string array)
- String enumHeaderString = "_abc"; // String | Header parameter enum test (string)
- List enumQueryStringArray = Arrays.asList("$"); // List | Query parameter enum test (string array)
- String enumQueryString = "_abc"; // String | Query parameter enum test (string)
- Integer enumQueryInteger = 1; // Integer | Query parameter enum test (double)
- Double enumQueryDouble = 1.1D; // Double | Query parameter enum test (double)
- List enumFormStringArray = Arrays.asList("$"); // List | Form parameter enum test (string array)
- String enumFormString = "_abc"; // String | Form parameter enum test (string)
- try {
- apiInstance.testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString);
- } catch (ApiException e) {
-
- }
- }
-}
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **enumHeaderStringArray** | [**List<String>**](String.md)| Header parameter enum test (string array) | [optional] [enum: >, $]
- **enumHeaderString** | **String**| Header parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)]
- **enumQueryStringArray** | [**List<String>**](String.md)| Query parameter enum test (string array) | [optional] [enum: >, $]
- **enumQueryString** | **String**| Query parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)]
- **enumQueryInteger** | **Integer**| Query parameter enum test (double) | [optional] [enum: 1, -2]
- **enumQueryDouble** | **Double**| Query parameter enum test (double) | [optional] [enum: 1.1, -1.2]
- **enumFormStringArray** | [**List<String>**](String.md)| Form parameter enum test (string array) | [optional] [enum: >, $]
- **enumFormString** | **String**| Form parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)]
-
-### Return type
-
-null (empty response body)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
- - **Content-Type**: application/x-www-form-urlencoded
- - **Accept**: Not defined
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-**400** | Invalid request | - |
-**404** | Not found | - |
-
-
-# **testGroupParameters**
-> testGroupParameters(requiredStringGroup, requiredBooleanGroup, requiredInt64Group).stringGroup(stringGroup).booleanGroup(booleanGroup).int64Group(int64Group).execute();
-
-Fake endpoint to test group parameters (optional)
-
-Fake endpoint to test group parameters (optional)
-
-### Example
-```java
-// Import classes:
-import org.openapitools.client.ApiClient;
-import org.openapitools.client.ApiException;
-import org.openapitools.client.Configuration;
-import org.openapitools.client.auth.*;
-import org.openapitools.client.models.*;
-import org.openapitools.client.api.FakeApi;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
-
- // Configure HTTP bearer authorization: bearer_test
- HttpBearerAuth bearer_test = (HttpBearerAuth) defaultClient.getAuthentication("bearer_test");
- bearer_test.setBearerToken("BEARER TOKEN");
-
- FakeApi apiInstance = new FakeApi(defaultClient);
- Integer requiredStringGroup = 56; // Integer | Required String in group parameters
- Boolean requiredBooleanGroup = true; // Boolean | Required Boolean in group parameters
- Long requiredInt64Group = 56L; // Long | Required Integer in group parameters
- Integer stringGroup = 56; // Integer | String in group parameters
- Boolean booleanGroup = true; // Boolean | Boolean in group parameters
- Long int64Group = 56L; // Long | Integer in group parameters
- try {
- apiInstance.testGroupParameters(requiredStringGroup, requiredBooleanGroup, requiredInt64Group)
- .stringGroup(stringGroup)
- .booleanGroup(booleanGroup)
- .int64Group(int64Group)
- .execute();
- } catch (ApiException e) {
-
- }
- }
-}
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **requiredStringGroup** | **Integer**| Required String in group parameters |
- **requiredBooleanGroup** | **Boolean**| Required Boolean in group parameters |
- **requiredInt64Group** | **Long**| Required Integer in group parameters |
- **stringGroup** | **Integer**| String in group parameters | [optional]
- **booleanGroup** | **Boolean**| Boolean in group parameters | [optional]
- **int64Group** | **Long**| Integer in group parameters | [optional]
-
-### Return type
-
-null (empty response body)
-
-### Authorization
-
-[bearer_test](../README.md#bearer_test)
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: Not defined
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-**400** | Someting wrong | - |
-
-
-# **testInlineAdditionalProperties**
-> testInlineAdditionalProperties(requestBody)
-
-test inline additionalProperties
-
-
-
-### Example
-```java
-// Import classes:
-import org.openapitools.client.ApiClient;
-import org.openapitools.client.ApiException;
-import org.openapitools.client.Configuration;
-import org.openapitools.client.models.*;
-import org.openapitools.client.api.FakeApi;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
-
- FakeApi apiInstance = new FakeApi(defaultClient);
- Map requestBody = new HashMap(); // Map | request body
- try {
- apiInstance.testInlineAdditionalProperties(requestBody);
- } catch (ApiException e) {
-
- }
- }
-}
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **requestBody** | [**Map<String, String>**](String.md)| request body |
-
-### Return type
-
-null (empty response body)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
- - **Content-Type**: application/json
- - **Accept**: Not defined
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-**200** | successful operation | - |
-
-
-# **testJsonFormData**
-> testJsonFormData(param, param2)
-
-test json serialization of form data
-
-
-
-### Example
-```java
-// Import classes:
-import org.openapitools.client.ApiClient;
-import org.openapitools.client.ApiException;
-import org.openapitools.client.Configuration;
-import org.openapitools.client.models.*;
-import org.openapitools.client.api.FakeApi;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
-
- FakeApi apiInstance = new FakeApi(defaultClient);
- String param = "param_example"; // String | field1
- String param2 = "param2_example"; // String | field2
- try {
- apiInstance.testJsonFormData(param, param2);
- } catch (ApiException e) {
-
- }
- }
-}
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **param** | **String**| field1 |
- **param2** | **String**| field2 |
-
-### Return type
-
-null (empty response body)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
- - **Content-Type**: application/x-www-form-urlencoded
- - **Accept**: Not defined
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-**200** | successful operation | - |
-
-
-# **testQueryParameterCollectionFormat**
-> testQueryParameterCollectionFormat(pipe, ioutil, http, url, context)
-
-
-
-To test the collection format in query parameters
-
-### Example
-```java
-// Import classes:
-import org.openapitools.client.ApiClient;
-import org.openapitools.client.ApiException;
-import org.openapitools.client.Configuration;
-import org.openapitools.client.models.*;
-import org.openapitools.client.api.FakeApi;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
-
- FakeApi apiInstance = new FakeApi(defaultClient);
- List pipe = Arrays.asList(); // List |
- List ioutil = Arrays.asList(); // List |
- List http = Arrays.asList(); // List |
- List url = Arrays.asList(); // List |
- List context = Arrays.asList(); // List |
- try {
- apiInstance.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context);
- } catch (ApiException e) {
-
- }
- }
-}
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **pipe** | [**List<String>**](String.md)| |
- **ioutil** | [**List<String>**](String.md)| |
- **http** | [**List<String>**](String.md)| |
- **url** | [**List<String>**](String.md)| |
- **context** | [**List<String>**](String.md)| |
-
-### Return type
-
-null (empty response body)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: Not defined
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-**200** | Success | - |
-
diff --git a/samples/client/petstore/java/okhttp-gson-nextgen/docs/PetApi.md b/samples/client/petstore/java/okhttp-gson-nextgen/docs/PetApi.md
deleted file mode 100644
index e5837bc9a2e..00000000000
--- a/samples/client/petstore/java/okhttp-gson-nextgen/docs/PetApi.md
+++ /dev/null
@@ -1,606 +0,0 @@
-# PetApi
-
-All URIs are relative to *http://petstore.swagger.io:80/v2*
-
-Method | HTTP request | Description
-------------- | ------------- | -------------
-[**addPet**](PetApi.md#addPet) | **POST** /pet | Add a new pet to the store
-[**deletePet**](PetApi.md#deletePet) | **DELETE** /pet/{petId} | Deletes a pet
-[**findPetsByStatus**](PetApi.md#findPetsByStatus) | **GET** /pet/findByStatus | Finds Pets by status
-[**findPetsByTags**](PetApi.md#findPetsByTags) | **GET** /pet/findByTags | Finds Pets by tags
-[**getPetById**](PetApi.md#getPetById) | **GET** /pet/{petId} | Find pet by ID
-[**updatePet**](PetApi.md#updatePet) | **PUT** /pet | Update an existing pet
-[**updatePetWithForm**](PetApi.md#updatePetWithForm) | **POST** /pet/{petId} | Updates a pet in the store with form data
-[**uploadFile**](PetApi.md#uploadFile) | **POST** /pet/{petId}/uploadImage | uploads an image
-[**uploadFileWithRequiredFile**](PetApi.md#uploadFileWithRequiredFile) | **POST** /fake/{petId}/uploadImageWithRequiredFile | uploads an image (required)
-
-
-
-# **addPet**
-> addPet(pet)
-
-Add a new pet to the store
-
-
-
-### Example
-```java
-// Import classes:
-import org.openapitools.client.ApiClient;
-import org.openapitools.client.ApiException;
-import org.openapitools.client.Configuration;
-import org.openapitools.client.auth.*;
-import org.openapitools.client.models.*;
-import org.openapitools.client.api.PetApi;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
-
-
- // Configure OAuth2 access token for authorization: petstore_auth
- OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth");
- petstore_auth.setAccessToken("YOUR ACCESS TOKEN");
-
- PetApi apiInstance = new PetApi(defaultClient);
- Pet pet = new Pet(); // Pet | Pet object that needs to be added to the store
- try {
- apiInstance.addPet(pet);
- } catch (ApiException e) {
-
- }
- }
-}
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store |
-
-### Return type
-
-null (empty response body)
-
-### Authorization
-
-[http_signature_test](../README.md#http_signature_test), [petstore_auth](../README.md#petstore_auth)
-
-### HTTP request headers
-
- - **Content-Type**: application/json, application/xml
- - **Accept**: Not defined
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-**405** | Invalid input | - |
-
-
-# **deletePet**
-> deletePet(petId, apiKey)
-
-Deletes a pet
-
-
-
-### Example
-```java
-// Import classes:
-import org.openapitools.client.ApiClient;
-import org.openapitools.client.ApiException;
-import org.openapitools.client.Configuration;
-import org.openapitools.client.auth.*;
-import org.openapitools.client.models.*;
-import org.openapitools.client.api.PetApi;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
-
- // Configure OAuth2 access token for authorization: petstore_auth
- OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth");
- petstore_auth.setAccessToken("YOUR ACCESS TOKEN");
-
- PetApi apiInstance = new PetApi(defaultClient);
- Long petId = 56L; // Long | Pet id to delete
- String apiKey = "apiKey_example"; // String |
- try {
- apiInstance.deletePet(petId, apiKey);
- } catch (ApiException e) {
-
- }
- }
-}
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **petId** | **Long**| Pet id to delete |
- **apiKey** | **String**| | [optional]
-
-### Return type
-
-null (empty response body)
-
-### Authorization
-
-[petstore_auth](../README.md#petstore_auth)
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: Not defined
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-**400** | Invalid pet value | - |
-
-
-# **findPetsByStatus**
-> List<Pet> findPetsByStatus(status)
-
-Finds Pets by status
-
-Multiple status values can be provided with comma separated strings
-
-### Example
-```java
-// Import classes:
-import org.openapitools.client.ApiClient;
-import org.openapitools.client.ApiException;
-import org.openapitools.client.Configuration;
-import org.openapitools.client.auth.*;
-import org.openapitools.client.models.*;
-import org.openapitools.client.api.PetApi;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
-
-
- // Configure OAuth2 access token for authorization: petstore_auth
- OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth");
- petstore_auth.setAccessToken("YOUR ACCESS TOKEN");
-
- PetApi apiInstance = new PetApi(defaultClient);
- List status = Arrays.asList("available"); // List | Status values that need to be considered for filter
- try {
- List result = apiInstance.findPetsByStatus(status);
- System.out.println(result);
- } catch (ApiException e) {
-
- }
- }
-}
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **status** | [**List<String>**](String.md)| Status values that need to be considered for filter | [enum: available, pending, sold]
-
-### Return type
-
-[**List<Pet>**](Pet.md)
-
-### Authorization
-
-[http_signature_test](../README.md#http_signature_test), [petstore_auth](../README.md#petstore_auth)
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: application/xml, application/json
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-**200** | successful operation | - |
-**400** | Invalid status value | - |
-
-
-# **findPetsByTags**
-> List<Pet> findPetsByTags(tags)
-
-Finds Pets by tags
-
-Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
-
-### Example
-```java
-// Import classes:
-import org.openapitools.client.ApiClient;
-import org.openapitools.client.ApiException;
-import org.openapitools.client.Configuration;
-import org.openapitools.client.auth.*;
-import org.openapitools.client.models.*;
-import org.openapitools.client.api.PetApi;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
-
-
- // Configure OAuth2 access token for authorization: petstore_auth
- OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth");
- petstore_auth.setAccessToken("YOUR ACCESS TOKEN");
-
- PetApi apiInstance = new PetApi(defaultClient);
- List tags = Arrays.asList(); // List | Tags to filter by
- try {
- List result = apiInstance.findPetsByTags(tags);
- System.out.println(result);
- } catch (ApiException e) {
-
- }
- }
-}
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **tags** | [**List<String>**](String.md)| Tags to filter by |
-
-### Return type
-
-[**List<Pet>**](Pet.md)
-
-### Authorization
-
-[http_signature_test](../README.md#http_signature_test), [petstore_auth](../README.md#petstore_auth)
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: application/xml, application/json
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-**200** | successful operation | - |
-**400** | Invalid tag value | - |
-
-
-# **getPetById**
-> Pet getPetById(petId)
-
-Find pet by ID
-
-Returns a single pet
-
-### Example
-```java
-// Import classes:
-import org.openapitools.client.ApiClient;
-import org.openapitools.client.ApiException;
-import org.openapitools.client.Configuration;
-import org.openapitools.client.auth.*;
-import org.openapitools.client.models.*;
-import org.openapitools.client.api.PetApi;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
-
- // Configure API key authorization: api_key
- ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
- api_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //api_key.setApiKeyPrefix("Token");
-
- PetApi apiInstance = new PetApi(defaultClient);
- Long petId = 56L; // Long | ID of pet to return
- try {
- Pet result = apiInstance.getPetById(petId);
- System.out.println(result);
- } catch (ApiException e) {
-
- }
- }
-}
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **petId** | **Long**| ID of pet to return |
-
-### Return type
-
-[**Pet**](Pet.md)
-
-### Authorization
-
-[api_key](../README.md#api_key)
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: application/xml, application/json
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-**200** | successful operation | - |
-**400** | Invalid ID supplied | - |
-**404** | Pet not found | - |
-
-
-# **updatePet**
-> updatePet(pet)
-
-Update an existing pet
-
-
-
-### Example
-```java
-// Import classes:
-import org.openapitools.client.ApiClient;
-import org.openapitools.client.ApiException;
-import org.openapitools.client.Configuration;
-import org.openapitools.client.auth.*;
-import org.openapitools.client.models.*;
-import org.openapitools.client.api.PetApi;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
-
-
- // Configure OAuth2 access token for authorization: petstore_auth
- OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth");
- petstore_auth.setAccessToken("YOUR ACCESS TOKEN");
-
- PetApi apiInstance = new PetApi(defaultClient);
- Pet pet = new Pet(); // Pet | Pet object that needs to be added to the store
- try {
- apiInstance.updatePet(pet);
- } catch (ApiException e) {
-
- }
- }
-}
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store |
-
-### Return type
-
-null (empty response body)
-
-### Authorization
-
-[http_signature_test](../README.md#http_signature_test), [petstore_auth](../README.md#petstore_auth)
-
-### HTTP request headers
-
- - **Content-Type**: application/json, application/xml
- - **Accept**: Not defined
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-**400** | Invalid ID supplied | - |
-**404** | Pet not found | - |
-**405** | Validation exception | - |
-
-
-# **updatePetWithForm**
-> updatePetWithForm(petId, name, status)
-
-Updates a pet in the store with form data
-
-
-
-### Example
-```java
-// Import classes:
-import org.openapitools.client.ApiClient;
-import org.openapitools.client.ApiException;
-import org.openapitools.client.Configuration;
-import org.openapitools.client.auth.*;
-import org.openapitools.client.models.*;
-import org.openapitools.client.api.PetApi;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
-
- // Configure OAuth2 access token for authorization: petstore_auth
- OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth");
- petstore_auth.setAccessToken("YOUR ACCESS TOKEN");
-
- PetApi apiInstance = new PetApi(defaultClient);
- Long petId = 56L; // Long | ID of pet that needs to be updated
- String name = "name_example"; // String | Updated name of the pet
- String status = "status_example"; // String | Updated status of the pet
- try {
- apiInstance.updatePetWithForm(petId, name, status);
- } catch (ApiException e) {
-
- }
- }
-}
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **petId** | **Long**| ID of pet that needs to be updated |
- **name** | **String**| Updated name of the pet | [optional]
- **status** | **String**| Updated status of the pet | [optional]
-
-### Return type
-
-null (empty response body)
-
-### Authorization
-
-[petstore_auth](../README.md#petstore_auth)
-
-### HTTP request headers
-
- - **Content-Type**: application/x-www-form-urlencoded
- - **Accept**: Not defined
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-**405** | Invalid input | - |
-
-
-# **uploadFile**
-> ModelApiResponse uploadFile(petId, additionalMetadata, _file)
-
-uploads an image
-
-
-
-### Example
-```java
-// Import classes:
-import org.openapitools.client.ApiClient;
-import org.openapitools.client.ApiException;
-import org.openapitools.client.Configuration;
-import org.openapitools.client.auth.*;
-import org.openapitools.client.models.*;
-import org.openapitools.client.api.PetApi;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
-
- // Configure OAuth2 access token for authorization: petstore_auth
- OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth");
- petstore_auth.setAccessToken("YOUR ACCESS TOKEN");
-
- PetApi apiInstance = new PetApi(defaultClient);
- Long petId = 56L; // Long | ID of pet to update
- String additionalMetadata = "additionalMetadata_example"; // String | Additional data to pass to server
- File _file = new File("/path/to/file"); // File | file to upload
- try {
- ModelApiResponse result = apiInstance.uploadFile(petId, additionalMetadata, _file);
- System.out.println(result);
- } catch (ApiException e) {
-
- }
- }
-}
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **petId** | **Long**| ID of pet to update |
- **additionalMetadata** | **String**| Additional data to pass to server | [optional]
- **_file** | **File**| file to upload | [optional]
-
-### Return type
-
-[**ModelApiResponse**](ModelApiResponse.md)
-
-### Authorization
-
-[petstore_auth](../README.md#petstore_auth)
-
-### HTTP request headers
-
- - **Content-Type**: multipart/form-data
- - **Accept**: application/json
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-**200** | successful operation | - |
-
-
-# **uploadFileWithRequiredFile**
-> ModelApiResponse uploadFileWithRequiredFile(petId, requiredFile, additionalMetadata)
-
-uploads an image (required)
-
-
-
-### Example
-```java
-// Import classes:
-import org.openapitools.client.ApiClient;
-import org.openapitools.client.ApiException;
-import org.openapitools.client.Configuration;
-import org.openapitools.client.auth.*;
-import org.openapitools.client.models.*;
-import org.openapitools.client.api.PetApi;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
-
- // Configure OAuth2 access token for authorization: petstore_auth
- OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth");
- petstore_auth.setAccessToken("YOUR ACCESS TOKEN");
-
- PetApi apiInstance = new PetApi(defaultClient);
- Long petId = 56L; // Long | ID of pet to update
- File requiredFile = new File("/path/to/file"); // File | file to upload
- String additionalMetadata = "additionalMetadata_example"; // String | Additional data to pass to server
- try {
- ModelApiResponse result = apiInstance.uploadFileWithRequiredFile(petId, requiredFile, additionalMetadata);
- System.out.println(result);
- } catch (ApiException e) {
-
- }
- }
-}
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **petId** | **Long**| ID of pet to update |
- **requiredFile** | **File**| file to upload |
- **additionalMetadata** | **String**| Additional data to pass to server | [optional]
-
-### Return type
-
-[**ModelApiResponse**](ModelApiResponse.md)
-
-### Authorization
-
-[petstore_auth](../README.md#petstore_auth)
-
-### HTTP request headers
-
- - **Content-Type**: multipart/form-data
- - **Accept**: application/json
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-**200** | successful operation | - |
-
diff --git a/samples/client/petstore/java/okhttp-gson-nextgen/docs/StoreApi.md b/samples/client/petstore/java/okhttp-gson-nextgen/docs/StoreApi.md
deleted file mode 100644
index 6ec8b1b3c74..00000000000
--- a/samples/client/petstore/java/okhttp-gson-nextgen/docs/StoreApi.md
+++ /dev/null
@@ -1,250 +0,0 @@
-# StoreApi
-
-All URIs are relative to *http://petstore.swagger.io:80/v2*
-
-Method | HTTP request | Description
-------------- | ------------- | -------------
-[**deleteOrder**](StoreApi.md#deleteOrder) | **DELETE** /store/order/{order_id} | Delete purchase order by ID
-[**getInventory**](StoreApi.md#getInventory) | **GET** /store/inventory | Returns pet inventories by status
-[**getOrderById**](StoreApi.md#getOrderById) | **GET** /store/order/{order_id} | Find purchase order by ID
-[**placeOrder**](StoreApi.md#placeOrder) | **POST** /store/order | Place an order for a pet
-
-
-
-# **deleteOrder**
-> deleteOrder(orderId)
-
-Delete purchase order by ID
-
-For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors
-
-### Example
-```java
-// Import classes:
-import org.openapitools.client.ApiClient;
-import org.openapitools.client.ApiException;
-import org.openapitools.client.Configuration;
-import org.openapitools.client.models.*;
-import org.openapitools.client.api.StoreApi;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
-
- StoreApi apiInstance = new StoreApi(defaultClient);
- String orderId = "orderId_example"; // String | ID of the order that needs to be deleted
- try {
- apiInstance.deleteOrder(orderId);
- } catch (ApiException e) {
-
- }
- }
-}
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **orderId** | **String**| ID of the order that needs to be deleted |
-
-### Return type
-
-null (empty response body)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: Not defined
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-**400** | Invalid ID supplied | - |
-**404** | Order not found | - |
-
-
-# **getInventory**
-> Map<String, Integer> getInventory()
-
-Returns pet inventories by status
-
-Returns a map of status codes to quantities
-
-### Example
-```java
-// Import classes:
-import org.openapitools.client.ApiClient;
-import org.openapitools.client.ApiException;
-import org.openapitools.client.Configuration;
-import org.openapitools.client.auth.*;
-import org.openapitools.client.models.*;
-import org.openapitools.client.api.StoreApi;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
-
- // Configure API key authorization: api_key
- ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
- api_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //api_key.setApiKeyPrefix("Token");
-
- StoreApi apiInstance = new StoreApi(defaultClient);
- try {
- Map result = apiInstance.getInventory();
- System.out.println(result);
- } catch (ApiException e) {
-
- }
- }
-}
-```
-
-### Parameters
-This endpoint does not need any parameter.
-
-### Return type
-
-**Map<String, Integer>**
-
-### Authorization
-
-[api_key](../README.md#api_key)
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: application/json
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-**200** | successful operation | - |
-
-
-# **getOrderById**
-> Order getOrderById(orderId)
-
-Find purchase order by ID
-
-For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
-
-### Example
-```java
-// Import classes:
-import org.openapitools.client.ApiClient;
-import org.openapitools.client.ApiException;
-import org.openapitools.client.Configuration;
-import org.openapitools.client.models.*;
-import org.openapitools.client.api.StoreApi;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
-
- StoreApi apiInstance = new StoreApi(defaultClient);
- Long orderId = 56L; // Long | ID of pet that needs to be fetched
- try {
- Order result = apiInstance.getOrderById(orderId);
- System.out.println(result);
- } catch (ApiException e) {
-
- }
- }
-}
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **orderId** | **Long**| ID of pet that needs to be fetched |
-
-### Return type
-
-[**Order**](Order.md)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: application/xml, application/json
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-**200** | successful operation | - |
-**400** | Invalid ID supplied | - |
-**404** | Order not found | - |
-
-
-# **placeOrder**
-> Order placeOrder(order)
-
-Place an order for a pet
-
-
-
-### Example
-```java
-// Import classes:
-import org.openapitools.client.ApiClient;
-import org.openapitools.client.ApiException;
-import org.openapitools.client.Configuration;
-import org.openapitools.client.models.*;
-import org.openapitools.client.api.StoreApi;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
-
- StoreApi apiInstance = new StoreApi(defaultClient);
- Order order = new Order(); // Order | order placed for purchasing the pet
- try {
- Order result = apiInstance.placeOrder(order);
- System.out.println(result);
- } catch (ApiException e) {
-
- }
- }
-}
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **order** | [**Order**](Order.md)| order placed for purchasing the pet |
-
-### Return type
-
-[**Order**](Order.md)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
- - **Content-Type**: application/json
- - **Accept**: application/xml, application/json
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-**200** | successful operation | - |
-**400** | Invalid Order | - |
-
diff --git a/samples/client/petstore/java/okhttp-gson-nextgen/docs/UserApi.md b/samples/client/petstore/java/okhttp-gson-nextgen/docs/UserApi.md
deleted file mode 100644
index d56fb364111..00000000000
--- a/samples/client/petstore/java/okhttp-gson-nextgen/docs/UserApi.md
+++ /dev/null
@@ -1,479 +0,0 @@
-# UserApi
-
-All URIs are relative to *http://petstore.swagger.io:80/v2*
-
-Method | HTTP request | Description
-------------- | ------------- | -------------
-[**createUser**](UserApi.md#createUser) | **POST** /user | Create user
-[**createUsersWithArrayInput**](UserApi.md#createUsersWithArrayInput) | **POST** /user/createWithArray | Creates list of users with given input array
-[**createUsersWithListInput**](UserApi.md#createUsersWithListInput) | **POST** /user/createWithList | Creates list of users with given input array
-[**deleteUser**](UserApi.md#deleteUser) | **DELETE** /user/{username} | Delete user
-[**getUserByName**](UserApi.md#getUserByName) | **GET** /user/{username} | Get user by user name
-[**loginUser**](UserApi.md#loginUser) | **GET** /user/login | Logs user into the system
-[**logoutUser**](UserApi.md#logoutUser) | **GET** /user/logout | Logs out current logged in user session
-[**updateUser**](UserApi.md#updateUser) | **PUT** /user/{username} | Updated user
-
-
-
-# **createUser**
-> createUser(user)
-
-Create user
-
-This can only be done by the logged in user.
-
-### Example
-```java
-// Import classes:
-import org.openapitools.client.ApiClient;
-import org.openapitools.client.ApiException;
-import org.openapitools.client.Configuration;
-import org.openapitools.client.models.*;
-import org.openapitools.client.api.UserApi;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
-
- UserApi apiInstance = new UserApi(defaultClient);
- User user = new User(); // User | Created user object
- try {
- apiInstance.createUser(user);
- } catch (ApiException e) {
-
- }
- }
-}
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **user** | [**User**](User.md)| Created user object |
-
-### Return type
-
-null (empty response body)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
- - **Content-Type**: application/json
- - **Accept**: Not defined
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-**0** | successful operation | - |
-
-
-# **createUsersWithArrayInput**
-> createUsersWithArrayInput(user)
-
-Creates list of users with given input array
-
-
-
-### Example
-```java
-// Import classes:
-import org.openapitools.client.ApiClient;
-import org.openapitools.client.ApiException;
-import org.openapitools.client.Configuration;
-import org.openapitools.client.models.*;
-import org.openapitools.client.api.UserApi;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
-
- UserApi apiInstance = new UserApi(defaultClient);
- List user = Arrays.asList(); // List | List of user object
- try {
- apiInstance.createUsersWithArrayInput(user);
- } catch (ApiException e) {
-
- }
- }
-}
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **user** | [**List<User>**](User.md)| List of user object |
-
-### Return type
-
-null (empty response body)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
- - **Content-Type**: application/json
- - **Accept**: Not defined
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-**0** | successful operation | - |
-
-
-# **createUsersWithListInput**
-> createUsersWithListInput(user)
-
-Creates list of users with given input array
-
-
-
-### Example
-```java
-// Import classes:
-import org.openapitools.client.ApiClient;
-import org.openapitools.client.ApiException;
-import org.openapitools.client.Configuration;
-import org.openapitools.client.models.*;
-import org.openapitools.client.api.UserApi;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
-
- UserApi apiInstance = new UserApi(defaultClient);
- List user = Arrays.asList(); // List | List of user object
- try {
- apiInstance.createUsersWithListInput(user);
- } catch (ApiException e) {
-
- }
- }
-}
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **user** | [**List<User>**](User.md)| List of user object |
-
-### Return type
-
-null (empty response body)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
- - **Content-Type**: application/json
- - **Accept**: Not defined
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-**0** | successful operation | - |
-
-
-# **deleteUser**
-> deleteUser(username)
-
-Delete user
-
-This can only be done by the logged in user.
-
-### Example
-```java
-// Import classes:
-import org.openapitools.client.ApiClient;
-import org.openapitools.client.ApiException;
-import org.openapitools.client.Configuration;
-import org.openapitools.client.models.*;
-import org.openapitools.client.api.UserApi;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
-
- UserApi apiInstance = new UserApi(defaultClient);
- String username = "username_example"; // String | The name that needs to be deleted
- try {
- apiInstance.deleteUser(username);
- } catch (ApiException e) {
-
- }
- }
-}
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **username** | **String**| The name that needs to be deleted |
-
-### Return type
-
-null (empty response body)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: Not defined
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-**400** | Invalid username supplied | - |
-**404** | User not found | - |
-
-
-# **getUserByName**
-> User getUserByName(username)
-
-Get user by user name
-
-
-
-### Example
-```java
-// Import classes:
-import org.openapitools.client.ApiClient;
-import org.openapitools.client.ApiException;
-import org.openapitools.client.Configuration;
-import org.openapitools.client.models.*;
-import org.openapitools.client.api.UserApi;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
-
- UserApi apiInstance = new UserApi(defaultClient);
- String username = "username_example"; // String | The name that needs to be fetched. Use user1 for testing.
- try {
- User result = apiInstance.getUserByName(username);
- System.out.println(result);
- } catch (ApiException e) {
-
- }
- }
-}
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **username** | **String**| The name that needs to be fetched. Use user1 for testing. |
-
-### Return type
-
-[**User**](User.md)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: application/xml, application/json
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-**200** | successful operation | - |
-**400** | Invalid username supplied | - |
-**404** | User not found | - |
-
-
-# **loginUser**
-> String loginUser(username, password)
-
-Logs user into the system
-
-
-
-### Example
-```java
-// Import classes:
-import org.openapitools.client.ApiClient;
-import org.openapitools.client.ApiException;
-import org.openapitools.client.Configuration;
-import org.openapitools.client.models.*;
-import org.openapitools.client.api.UserApi;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
-
- UserApi apiInstance = new UserApi(defaultClient);
- String username = "username_example"; // String | The user name for login
- String password = "password_example"; // String | The password for login in clear text
- try {
- String result = apiInstance.loginUser(username, password);
- System.out.println(result);
- } catch (ApiException e) {
-
- }
- }
-}
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **username** | **String**| The user name for login |
- **password** | **String**| The password for login in clear text |
-
-### Return type
-
-**String**
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: application/xml, application/json
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-**200** | successful operation | * X-Rate-Limit - calls per hour allowed by the user
* X-Expires-After - date in UTC when token expires
|
-**400** | Invalid username/password supplied | - |
-
-
-# **logoutUser**
-> logoutUser()
-
-Logs out current logged in user session
-
-
-
-### Example
-```java
-// Import classes:
-import org.openapitools.client.ApiClient;
-import org.openapitools.client.ApiException;
-import org.openapitools.client.Configuration;
-import org.openapitools.client.models.*;
-import org.openapitools.client.api.UserApi;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
-
- UserApi apiInstance = new UserApi(defaultClient);
- try {
- apiInstance.logoutUser();
- } catch (ApiException e) {
-
- }
- }
-}
-```
-
-### Parameters
-This endpoint does not need any parameter.
-
-### Return type
-
-null (empty response body)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: Not defined
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-**0** | successful operation | - |
-
-
-# **updateUser**
-> updateUser(username, user)
-
-Updated user
-
-This can only be done by the logged in user.
-
-### Example
-```java
-// Import classes:
-import org.openapitools.client.ApiClient;
-import org.openapitools.client.ApiException;
-import org.openapitools.client.Configuration;
-import org.openapitools.client.models.*;
-import org.openapitools.client.api.UserApi;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
-
- UserApi apiInstance = new UserApi(defaultClient);
- String username = "username_example"; // String | name that need to be deleted
- User user = new User(); // User | Updated user object
- try {
- apiInstance.updateUser(username, user);
- } catch (ApiException e) {
-
- }
- }
-}
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **username** | **String**| name that need to be deleted |
- **user** | [**User**](User.md)| Updated user object |
-
-### Return type
-
-null (empty response body)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
- - **Content-Type**: application/json
- - **Accept**: Not defined
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-**400** | Invalid user supplied | - |
-**404** | User not found | - |
-