@api-client/core 0.19.10 → 0.19.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +9 -63
- package/bin/test.ts +1 -12
- package/build/src/browser.d.ts +0 -15
- package/build/src/browser.d.ts.map +1 -1
- package/build/src/browser.js +0 -17
- package/build/src/browser.js.map +1 -1
- package/build/src/events/EventTypes.d.ts +0 -6
- package/build/src/events/EventTypes.d.ts.map +1 -1
- package/build/src/events/EventTypes.js +0 -2
- package/build/src/events/EventTypes.js.map +1 -1
- package/build/src/events/Events.d.ts +0 -2
- package/build/src/events/Events.d.ts.map +1 -1
- package/build/src/events/Events.js +0 -2
- package/build/src/events/Events.js.map +1 -1
- package/build/src/index.d.ts +0 -15
- package/build/src/index.d.ts.map +1 -1
- package/build/src/index.js +0 -17
- package/build/src/index.js.map +1 -1
- package/build/src/modeling/Bindings.d.ts +3 -3
- package/build/src/modeling/Bindings.d.ts.map +1 -1
- package/build/src/modeling/Bindings.js.map +1 -1
- package/build/src/modeling/DomainAssociation.d.ts +5 -5
- package/build/src/modeling/DomainAssociation.d.ts.map +1 -1
- package/build/src/modeling/DomainAssociation.js.map +1 -1
- package/build/src/modeling/DomainEntity.d.ts +2 -3
- package/build/src/modeling/DomainEntity.d.ts.map +1 -1
- package/build/src/modeling/DomainEntity.js +1 -1
- package/build/src/modeling/DomainEntity.js.map +1 -1
- package/build/src/modeling/DomainProperty.d.ts +2 -3
- package/build/src/modeling/DomainProperty.d.ts.map +1 -1
- package/build/src/modeling/DomainProperty.js +1 -1
- package/build/src/modeling/DomainProperty.js.map +1 -1
- package/build/src/modeling/ai/types.d.ts +2 -2
- package/build/src/modeling/ai/types.d.ts.map +1 -1
- package/build/src/modeling/ai/types.js.map +1 -1
- package/build/src/{amf → modeling/amf}/DataValueGenerator.d.ts +1 -1
- package/build/src/modeling/amf/DataValueGenerator.d.ts.map +1 -0
- package/build/src/{amf → modeling/amf}/DataValueGenerator.js +2 -3
- package/build/src/modeling/amf/DataValueGenerator.js.map +1 -0
- package/build/src/modeling/amf/ShapeGenerator.d.ts +20 -20
- package/build/src/modeling/amf/ShapeGenerator.d.ts.map +1 -1
- package/build/src/modeling/amf/ShapeGenerator.js +16 -18
- package/build/src/modeling/amf/ShapeGenerator.js.map +1 -1
- package/build/src/modeling/amf/core_types.d.ts +9 -0
- package/build/src/modeling/amf/core_types.d.ts.map +1 -0
- package/build/src/modeling/amf/core_types.js +45 -0
- package/build/src/modeling/amf/core_types.js.map +1 -0
- package/build/src/models/http-flows/LegacyTranslator.js +1 -1
- package/build/src/models/http-flows/LegacyTranslator.js.map +1 -1
- package/build/src/runtime/http-runner/HttpFlows.js +1 -1
- package/build/src/runtime/http-runner/HttpFlows.js.map +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/eslint.config.js +0 -1
- package/package.json +11 -14
- package/src/events/EventTypes.ts +0 -2
- package/src/events/Events.ts +0 -2
- package/src/modeling/Bindings.ts +3 -3
- package/src/modeling/DomainAssociation.ts +5 -5
- package/src/modeling/DomainEntity.ts +3 -4
- package/src/modeling/DomainProperty.ts +3 -4
- package/src/modeling/ai/types.ts +2 -2
- package/src/{amf → modeling/amf}/DataValueGenerator.ts +3 -4
- package/src/modeling/amf/ShapeGenerator.ts +45 -61
- package/src/modeling/amf/core_types.ts +47 -0
- package/src/models/http-flows/LegacyTranslator.ts +1 -1
- package/src/runtime/http-runner/HttpFlows.ts +1 -1
- package/tests/unit/{amf → modeling/amf}/data_value_generator.spec.ts +2 -2
- package/tests/unit/modeling/amf/shape_generator.spec.ts +146 -167
- package/tests/unit/modeling/domain_asociation.spec.ts +13 -13
- package/tests/unit/runtime/runners/http_assertion_runner.spec.ts +1 -1
- package/tests/unit/runtime/runners/http_flow_runner.spec.ts +1 -1
- package/tests/unit/runtime/runners/project_runner.spec.ts +1 -1
- package/tests/unit/runtime/runners/request_runner.spec.ts +1 -1
- package/tests/unit/runtime/runners/serial_runner.spec.ts +1 -1
- package/build/src/amf/AmfMixin.d.ts +0 -396
- package/build/src/amf/AmfMixin.d.ts.map +0 -1
- package/build/src/amf/AmfMixin.js +0 -1138
- package/build/src/amf/AmfMixin.js.map +0 -1
- package/build/src/amf/AmfSerializer.d.ts +0 -137
- package/build/src/amf/AmfSerializer.d.ts.map +0 -1
- package/build/src/amf/AmfSerializer.js +0 -1947
- package/build/src/amf/AmfSerializer.js.map +0 -1
- package/build/src/amf/AmfTypes.d.ts +0 -25
- package/build/src/amf/AmfTypes.d.ts.map +0 -1
- package/build/src/amf/AmfTypes.js +0 -143
- package/build/src/amf/AmfTypes.js.map +0 -1
- package/build/src/amf/ApiExampleGenerator.d.ts +0 -40
- package/build/src/amf/ApiExampleGenerator.d.ts.map +0 -1
- package/build/src/amf/ApiExampleGenerator.js +0 -112
- package/build/src/amf/ApiExampleGenerator.js.map +0 -1
- package/build/src/amf/ApiMonacoSchemaGenerator.d.ts +0 -68
- package/build/src/amf/ApiMonacoSchemaGenerator.d.ts.map +0 -1
- package/build/src/amf/ApiMonacoSchemaGenerator.js +0 -248
- package/build/src/amf/ApiMonacoSchemaGenerator.js.map +0 -1
- package/build/src/amf/ApiSchemaGenerator.d.ts +0 -56
- package/build/src/amf/ApiSchemaGenerator.d.ts.map +0 -1
- package/build/src/amf/ApiSchemaGenerator.js +0 -94
- package/build/src/amf/ApiSchemaGenerator.js.map +0 -1
- package/build/src/amf/ApiSchemaValues.d.ts +0 -111
- package/build/src/amf/ApiSchemaValues.d.ts.map +0 -1
- package/build/src/amf/ApiSchemaValues.js +0 -463
- package/build/src/amf/ApiSchemaValues.js.map +0 -1
- package/build/src/amf/DataValueGenerator.d.ts.map +0 -1
- package/build/src/amf/DataValueGenerator.js.map +0 -1
- package/build/src/amf/Parsing.d.ts +0 -48
- package/build/src/amf/Parsing.d.ts.map +0 -1
- package/build/src/amf/Parsing.js +0 -2
- package/build/src/amf/Parsing.js.map +0 -1
- package/build/src/amf/Utils.d.ts +0 -37
- package/build/src/amf/Utils.d.ts.map +0 -1
- package/build/src/amf/Utils.js +0 -169
- package/build/src/amf/Utils.js.map +0 -1
- package/build/src/amf/data-node/DataNodeBase.d.ts +0 -34
- package/build/src/amf/data-node/DataNodeBase.d.ts.map +0 -1
- package/build/src/amf/data-node/DataNodeBase.js +0 -77
- package/build/src/amf/data-node/DataNodeBase.js.map +0 -1
- package/build/src/amf/data-node/JsonDataNodeGenerator.d.ts +0 -15
- package/build/src/amf/data-node/JsonDataNodeGenerator.d.ts.map +0 -1
- package/build/src/amf/data-node/JsonDataNodeGenerator.js +0 -23
- package/build/src/amf/data-node/JsonDataNodeGenerator.js.map +0 -1
- package/build/src/amf/data-node/UrlEncodedDataNodeGenerator.d.ts +0 -14
- package/build/src/amf/data-node/UrlEncodedDataNodeGenerator.d.ts.map +0 -1
- package/build/src/amf/data-node/UrlEncodedDataNodeGenerator.js +0 -48
- package/build/src/amf/data-node/UrlEncodedDataNodeGenerator.js.map +0 -1
- package/build/src/amf/data-node/XmlDataNodeGenerator.d.ts +0 -22
- package/build/src/amf/data-node/XmlDataNodeGenerator.d.ts.map +0 -1
- package/build/src/amf/data-node/XmlDataNodeGenerator.js +0 -34
- package/build/src/amf/data-node/XmlDataNodeGenerator.js.map +0 -1
- package/build/src/amf/definitions/Amf.d.ts +0 -363
- package/build/src/amf/definitions/Amf.d.ts.map +0 -1
- package/build/src/amf/definitions/Amf.js +0 -3
- package/build/src/amf/definitions/Amf.js.map +0 -1
- package/build/src/amf/definitions/Api.d.ts +0 -383
- package/build/src/amf/definitions/Api.d.ts.map +0 -1
- package/build/src/amf/definitions/Api.js +0 -2
- package/build/src/amf/definitions/Api.js.map +0 -1
- package/build/src/amf/definitions/Base.d.ts +0 -12
- package/build/src/amf/definitions/Base.d.ts.map +0 -1
- package/build/src/amf/definitions/Base.js +0 -2
- package/build/src/amf/definitions/Base.js.map +0 -1
- package/build/src/amf/definitions/Namespace.d.ts +0 -327
- package/build/src/amf/definitions/Namespace.d.ts.map +0 -1
- package/build/src/amf/definitions/Namespace.js +0 -346
- package/build/src/amf/definitions/Namespace.js.map +0 -1
- package/build/src/amf/definitions/Shapes.d.ts +0 -312
- package/build/src/amf/definitions/Shapes.d.ts.map +0 -1
- package/build/src/amf/definitions/Shapes.js +0 -87
- package/build/src/amf/definitions/Shapes.js.map +0 -1
- package/build/src/amf/models/AmfDataNode.d.ts +0 -67
- package/build/src/amf/models/AmfDataNode.d.ts.map +0 -1
- package/build/src/amf/models/AmfDataNode.js +0 -192
- package/build/src/amf/models/AmfDataNode.js.map +0 -1
- package/build/src/amf/shape/ShapeBase.d.ts +0 -74
- package/build/src/amf/shape/ShapeBase.d.ts.map +0 -1
- package/build/src/amf/shape/ShapeBase.js +0 -93
- package/build/src/amf/shape/ShapeBase.js.map +0 -1
- package/build/src/amf/shape/ShapeJsonSchemaGenerator.d.ts +0 -47
- package/build/src/amf/shape/ShapeJsonSchemaGenerator.d.ts.map +0 -1
- package/build/src/amf/shape/ShapeJsonSchemaGenerator.js +0 -420
- package/build/src/amf/shape/ShapeJsonSchemaGenerator.js.map +0 -1
- package/build/src/amf/shape/ShapeXmlSchemaGenerator.d.ts +0 -85
- package/build/src/amf/shape/ShapeXmlSchemaGenerator.d.ts.map +0 -1
- package/build/src/amf/shape/ShapeXmlSchemaGenerator.js +0 -852
- package/build/src/amf/shape/ShapeXmlSchemaGenerator.js.map +0 -1
- package/build/src/events/amf/AmfEventTypes.d.ts +0 -7
- package/build/src/events/amf/AmfEventTypes.d.ts.map +0 -1
- package/build/src/events/amf/AmfEventTypes.js +0 -7
- package/build/src/events/amf/AmfEventTypes.js.map +0 -1
- package/build/src/events/amf/AmfEvents.d.ts +0 -34
- package/build/src/events/amf/AmfEvents.d.ts.map +0 -1
- package/build/src/events/amf/AmfEvents.js +0 -63
- package/build/src/events/amf/AmfEvents.js.map +0 -1
- package/build/src/mocking/RandExp.d.ts +0 -55
- package/build/src/mocking/RandExp.d.ts.map +0 -1
- package/build/src/mocking/RandExp.js +0 -302
- package/build/src/mocking/RandExp.js.map +0 -1
- package/build/src/mocking/lib/ret.d.ts +0 -16
- package/build/src/mocking/lib/ret.d.ts.map +0 -1
- package/build/src/mocking/lib/ret.js +0 -284
- package/build/src/mocking/lib/ret.js.map +0 -1
- package/data/apis/APIC-187/APIC-187.raml +0 -21
- package/data/apis/APIC-187/dataType.raml +0 -132
- package/data/apis/APIC-187/example.raml +0 -84
- package/data/apis/APIC-188/APIC-188.raml +0 -21
- package/data/apis/APIC-188/dataType.raml +0 -132
- package/data/apis/APIC-188/example.raml +0 -84
- package/data/apis/APIC-233/APIC-233.raml +0 -15
- package/data/apis/APIC-391/APIC-391.raml +0 -44
- package/data/apis/APIC-391/examples/post-body-request-example.raml +0 -7
- package/data/apis/APIC-483/APIC-483.raml +0 -16
- package/data/apis/APIC-483/example/list-of-bank-succ.json +0 -32
- package/data/apis/APIC-483/schema/response-retrieve-list-bank.json +0 -68
- package/data/apis/APIC-487/APIC-487.raml +0 -36
- package/data/apis/APIC-655/APIC-655.raml +0 -44
- package/data/apis/APIC-655/delivery.json +0 -12
- package/data/apis/APIC-689/APIC-689.raml +0 -20
- package/data/apis/APIC-690/APIC-690.raml +0 -17
- package/data/apis/APIC-690/datatypes/Address.raml +0 -10
- package/data/apis/APIC-690/datatypes/Customer.raml +0 -17
- package/data/apis/APIC-690/examples/CustomerExample2.raml +0 -17
- package/data/apis/APIC-690/examples/CustomersExample.raml +0 -34
- package/data/apis/SE-10469/Purchase-Order-oagis-id-dd32f9c6c01048a19e15c423c9c741ae.json +0 -1383
- package/data/apis/SE-10469/SE-10469.raml +0 -11
- package/data/apis/SE-13092/Examples/PersonExample.raml +0 -7
- package/data/apis/SE-13092/SE-13092.raml +0 -37
- package/data/apis/SE-13092/datatypes/Address.raml +0 -5
- package/data/apis/SE-13092/datatypes/InlineType.raml +0 -5
- package/data/apis/SE-13092/datatypes/Person.raml +0 -15
- package/data/apis/SE-22063/SE-22063.raml +0 -14
- package/data/apis/SE-22063/stock.raml +0 -41
- package/data/apis/amf-helper-api/amf-helper-api.raml +0 -1024
- package/data/apis/amf-helper-api/examples/comment-example.json +0 -42
- package/data/apis/amf-helper-api/examples/commentCreateRequest-example.json +0 -7
- package/data/apis/amf-helper-api/examples/commentList-example.json +0 -48
- package/data/apis/amf-helper-api/examples/person.json +0 -14
- package/data/apis/amf-helper-api/examples/person.raml +0 -13
- package/data/apis/amf-helper-api/examples/person.xml +0 -14
- package/data/apis/amf-helper-api/libraries/comment-lib.raml +0 -143
- package/data/apis/amf-helper-api/library.raml +0 -7
- package/data/apis/amf-helper-api/schemas/person.json +0 -104
- package/data/apis/amf-helper-api/schemas/person.xsd +0 -26
- package/data/apis/amf-helper-api/traits/file.raml +0 -33
- package/data/apis/amf-helper-api/traits/pagination.raml +0 -80
- package/data/apis/amf-helper-api/traits/results.raml +0 -19
- package/data/apis/amf-helper-api/traits/visibility.raml +0 -14
- package/data/apis/amf-helper-api/types/app-person.raml +0 -101
- package/data/apis/amf-helper-api/types/dimensions.raml +0 -24
- package/data/apis/amf-helper-api/types/external-type.raml +0 -7
- package/data/apis/amf-helper-api/types/image.raml +0 -23
- package/data/apis/amf-helper-api/types/product.raml +0 -52
- package/data/apis/amf-helper-api/types/resource.raml +0 -11
- package/data/apis/amf-helper-api/types/standard-request.raml +0 -50
- package/data/apis/amf-helper-api/types/user.raml +0 -37
- package/data/apis/arc-demo-api/arc-demo-api.raml +0 -468
- package/data/apis/arc-demo-api/examples/e400.xml +0 -4
- package/data/apis/arc-demo-api/examples/e401.xml +0 -4
- package/data/apis/arc-demo-api/examples/e404.xml +0 -4
- package/data/apis/arc-demo-api/examples/image.xml +0 -5
- package/data/apis/arc-demo-api/examples/messages-example.json +0 -22
- package/data/apis/arc-demo-api/examples/messages-sent-example.json +0 -15
- package/data/apis/arc-demo-api/examples/person.json +0 -14
- package/data/apis/arc-demo-api/examples/person.url.encoded +0 -1
- package/data/apis/arc-demo-api/examples/person.xml +0 -14
- package/data/apis/arc-demo-api/examples/product.xml +0 -9
- package/data/apis/arc-demo-api/library.raml +0 -36
- package/data/apis/arc-demo-api/resourceTypes/app-person.raml +0 -49
- package/data/apis/arc-demo-api/resourceTypes/example-types.raml +0 -45
- package/data/apis/arc-demo-api/resourceTypes/image.raml +0 -23
- package/data/apis/arc-demo-api/resourceTypes/message-sent-type.raml +0 -23
- package/data/apis/arc-demo-api/resourceTypes/message-type.raml +0 -33
- package/data/apis/arc-demo-api/resourceTypes/product.raml +0 -52
- package/data/apis/arc-demo-api/resourceTypes/resource.raml +0 -11
- package/data/apis/arc-demo-api/schemas/error-response.xsd +0 -11
- package/data/apis/arc-demo-api/schemas/image.xsd +0 -11
- package/data/apis/arc-demo-api/schemas/person.json +0 -104
- package/data/apis/arc-demo-api/schemas/person.xsd +0 -26
- package/data/apis/arc-demo-api/schemas/product.xsd +0 -17
- package/data/apis/arc-demo-api/securitySchemes/basic.raml +0 -5
- package/data/apis/arc-demo-api/securitySchemes/oauth_2_0.raml +0 -29
- package/data/apis/arc-demo-api/securitySchemes/x-custom.raml +0 -26
- package/data/apis/arc-demo-api/traits/adminable.raml +0 -23
- package/data/apis/arc-demo-api/traits/pagination.raml +0 -83
- package/data/apis/arc-demo-api/traits/rate-limited.raml +0 -9
- package/data/apis/async-api/async-api.yaml +0 -96
- package/data/apis/example-generator-api/contact-email-example.raml +0 -6
- package/data/apis/example-generator-api/contact-example.raml +0 -5
- package/data/apis/example-generator-api/contact-fax-example.raml +0 -5
- package/data/apis/example-generator-api/contact-website-example.raml +0 -2
- package/data/apis/example-generator-api/example-1.raml +0 -6
- package/data/apis/example-generator-api/example-2.raml +0 -9
- package/data/apis/example-generator-api/example-3.raml +0 -4
- package/data/apis/example-generator-api/example-4.raml +0 -2
- package/data/apis/example-generator-api/example-5.raml +0 -4
- package/data/apis/example-generator-api/example-6.raml +0 -2
- package/data/apis/example-generator-api/example-7.raml +0 -5
- package/data/apis/example-generator-api/example-generator-api.raml +0 -423
- package/data/apis/example-generator-api/example.json +0 -14
- package/data/apis/example-generator-api/example.xml +0 -15
- package/data/apis/example-generator-api/example.xsd +0 -26
- package/data/apis/example-generator-api/examples/employee.raml +0 -7
- package/data/apis/example-generator-api/examples/employees.raml +0 -7
- package/data/apis/example-generator-api/linked-named-example.raml +0 -21
- package/data/apis/example-generator-api/named-example-with-link.raml +0 -5
- package/data/apis/example-generator-api/named-example.raml +0 -9
- package/data/apis/example-generator-api/user-json-example.raml +0 -17
- package/data/apis/example-generator-api/user-raml-example.raml +0 -37
- package/data/apis/example-generator-api/user.json +0 -8
- package/data/apis/example-generator-api/user.raml +0 -18
- package/data/apis/example-generator-api/users-json-example.raml +0 -17
- package/data/apis/example-generator-api/users-raml-example.raml +0 -32
- package/data/apis/example-generator-api/users.json +0 -8
- package/data/apis/expanded-api/expanded-api.raml +0 -8
- package/data/apis/flattened-api/flattened-api.raml +0 -8
- package/data/apis/multiple-servers/multiple-servers.yaml +0 -112
- package/data/apis/oas-3-api/oas-3-api.yaml +0 -356
- package/data/apis/oas-date/oas-date.yaml +0 -28
- package/data/apis/oas-types/oas-types.yaml +0 -159
- package/data/apis/oas-unions/oas-unions.yaml +0 -75
- package/data/apis/petstore/petstore.yaml +0 -954
- package/data/apis/raml-date/raml-date.raml +0 -28
- package/data/apis/recursive/recursive.raml +0 -14
- package/data/apis/schema-api/examples/person.json +0 -14
- package/data/apis/schema-api/examples/person.raml +0 -14
- package/data/apis/schema-api/examples/person.url.encoded +0 -1
- package/data/apis/schema-api/examples/person.xml +0 -14
- package/data/apis/schema-api/library/demo-types.raml +0 -43
- package/data/apis/schema-api/schema-api.raml +0 -656
- package/data/apis/schema-api/schemas/person.json +0 -104
- package/data/apis/schema-api/schemas/person.xsd +0 -26
- package/data/apis/schema-api/types/DemoPerson.raml +0 -67
- package/data/apis/secured-api/oauth-2-custom-settings.raml +0 -143
- package/data/apis/secured-api/oauth2-header-delivery.raml +0 -13
- package/data/apis/secured-api/oauth2-no-delivery.raml +0 -8
- package/data/apis/secured-api/oauth2-no-grants.raml +0 -12
- package/data/apis/secured-api/oauth2-pkce.raml +0 -13
- package/data/apis/secured-api/oauth2-query-delivery.raml +0 -13
- package/data/apis/secured-api/oauth_1_0.raml +0 -8
- package/data/apis/secured-api/oauth_1_0_no-settings.raml +0 -3
- package/data/apis/secured-api/oauth_1_0_no-signature.raml +0 -7
- package/data/apis/secured-api/oauth_1_0_signature.raml +0 -8
- package/data/apis/secured-api/passthrough-querystring.raml +0 -16
- package/data/apis/secured-api/passthrough.raml +0 -24
- package/data/apis/secured-api/secured-api.raml +0 -231
- package/data/apis/secured-api/x-custom.raml +0 -33
- package/data/apis/secured-api/x-other.raml +0 -29
- package/data/apis/secured-api/x-query-string.raml +0 -16
- package/data/apis/tracked-examples/datatypes/employee.raml +0 -5
- package/data/apis/tracked-examples/examples/employee.raml +0 -4
- package/data/apis/tracked-examples/examples/employees.raml +0 -8
- package/data/apis/tracked-examples/tracked-to-linked.raml +0 -28
- package/data/model.js +0 -129
- package/data/models/APIC-187.json +0 -11416
- package/data/models/APIC-188.json +0 -11416
- package/data/models/APIC-233.json +0 -539
- package/data/models/APIC-391.json +0 -1903
- package/data/models/APIC-483.json +0 -3110
- package/data/models/APIC-487.json +0 -1225
- package/data/models/APIC-655.json +0 -3145
- package/data/models/APIC-689.json +0 -797
- package/data/models/APIC-690.json +0 -5992
- package/data/models/SE-10469.json +0 -22898
- package/data/models/SE-13092.json +0 -2769
- package/data/models/SE-22063.json +0 -2314
- package/data/models/amf-helper-api.json +0 -84457
- package/data/models/arc-demo-api.json +0 -52041
- package/data/models/async-api.json +0 -3227
- package/data/models/example-generator-api.json +0 -45209
- package/data/models/expanded-api.json +0 -251
- package/data/models/flattened-api.json +0 -251
- package/data/models/multiple-servers.json +0 -2769
- package/data/models/oas-3-api.json +0 -10590
- package/data/models/oas-date.json +0 -637
- package/data/models/oas-types.json +0 -5352
- package/data/models/oas-unions.json +0 -1935
- package/data/models/petstore.json +0 -27712
- package/data/models/raml-date.json +0 -1114
- package/data/models/recursive.json +0 -610
- package/data/models/schema-api.json +0 -35527
- package/data/models/secured-api.json +0 -21071
- package/data/models/tracked-to-linked.json +0 -1914
- package/src/amf/AmfMixin.ts +0 -1726
- package/src/amf/AmfSerializer.ts +0 -2358
- package/src/amf/AmfTypes.ts +0 -147
- package/src/amf/ApiExampleGenerator.ts +0 -122
- package/src/amf/ApiMonacoSchemaGenerator.ts +0 -332
- package/src/amf/ApiSchemaGenerator.ts +0 -115
- package/src/amf/ApiSchemaValues.ts +0 -509
- package/src/amf/Parsing.ts +0 -50
- package/src/amf/Utils.ts +0 -172
- package/src/amf/data-node/DataNodeBase.ts +0 -83
- package/src/amf/data-node/JsonDataNodeGenerator.ts +0 -24
- package/src/amf/data-node/README.md +0 -3
- package/src/amf/data-node/UrlEncodedDataNodeGenerator.ts +0 -49
- package/src/amf/data-node/XmlDataNodeGenerator.ts +0 -46
- package/src/amf/definitions/Amf.ts +0 -440
- package/src/amf/definitions/Api.ts +0 -445
- package/src/amf/definitions/Base.ts +0 -13
- package/src/amf/definitions/Namespace.ts +0 -357
- package/src/amf/definitions/Shapes.ts +0 -438
- package/src/amf/models/AmfDataNode.ts +0 -210
- package/src/amf/shape/README.md +0 -4
- package/src/amf/shape/ShapeBase.ts +0 -174
- package/src/amf/shape/ShapeJsonSchemaGenerator.ts +0 -457
- package/src/amf/shape/ShapeXmlSchemaGenerator.ts +0 -933
- package/src/events/amf/AmfEventTypes.ts +0 -6
- package/src/events/amf/AmfEvents.ts +0 -78
- package/src/mocking/RandExp.ts +0 -335
- package/src/mocking/lib/ret.ts +0 -279
- package/tests/unit/amf/APIC-187.spec.ts +0 -41
- package/tests/unit/amf/APIC-188.spec.ts +0 -30
- package/tests/unit/amf/APIC-233.spec.ts +0 -32
- package/tests/unit/amf/APIC-391.spec.ts +0 -39
- package/tests/unit/amf/APIC-487.spec.ts +0 -44
- package/tests/unit/amf/APIC-655.spec.ts +0 -41
- package/tests/unit/amf/APIC-689.spec.ts +0 -28
- package/tests/unit/amf/APIC-690.spec.ts +0 -93
- package/tests/unit/amf/AmfLoader.ts +0 -538
- package/tests/unit/amf/AmfMixin.spec.ts +0 -1707
- package/tests/unit/amf/ApiExampleGenerator.spec.ts +0 -250
- package/tests/unit/amf/ApiMonacoSchemaGenerator.spec.ts +0 -183
- package/tests/unit/amf/ApiSchemaValues.spec.ts +0 -602
- package/tests/unit/amf/Namepsace.spec.ts +0 -494
- package/tests/unit/amf/SE-10469.spec.ts +0 -35
- package/tests/unit/amf/SE-13092.spec.ts +0 -64
- package/tests/unit/amf/SE-22063.spec.ts +0 -45
- package/tests/unit/amf/raml-examples.spec.ts +0 -43
- package/tests/unit/amf/schema_gen_array.spec.ts +0 -199
- package/tests/unit/amf/schema_gen_oas.spec.ts +0 -140
- package/tests/unit/amf/schema_gen_object.spec.ts +0 -279
- package/tests/unit/amf/schema_gen_scalar.spec.ts +0 -143
- package/tests/unit/amf/schema_gen_union.spec.ts +0 -401
- package/tests/unit/amf/schema_gen_unknown.spec.ts +0 -42
- package/tests/unit/amf/schema_gen_xml.spec.ts +0 -726
- package/tests/unit/amf/serializer/APIC-483.spec.ts +0 -36
- package/tests/unit/amf/serializer/Anotations.spec.ts +0 -50
- package/tests/unit/amf/serializer/Api.spec.ts +0 -210
- package/tests/unit/amf/serializer/Documentation.spec.ts +0 -52
- package/tests/unit/amf/serializer/Endpoints.spec.ts +0 -172
- package/tests/unit/amf/serializer/Operations.spec.ts +0 -330
- package/tests/unit/amf/serializer/Parameters.spec.ts +0 -149
- package/tests/unit/amf/serializer/PayloadExamples.spec.ts +0 -152
- package/tests/unit/amf/serializer/Security.spec.ts +0 -626
- package/tests/unit/amf/serializer/Server.spec.ts +0 -78
- package/tests/unit/amf/serializer/Shapes.spec.ts +0 -304
- package/tests/unit/amf/serializer/SourceMaps.spec.ts +0 -52
- package/tests/unit/amf/shapes/ShapeXmlSchemaGenerator.spec.ts +0 -28
- package/tests/unit/amf/tracked-to-linked.spec.ts +0 -90
- package/tests/unit/amf/xml-data-processing.spec.ts +0 -217
- package/tests/unit/events/amf.spec.ts +0 -151
|
@@ -1,954 +0,0 @@
|
|
|
1
|
-
openapi: 3.0.2
|
|
2
|
-
servers:
|
|
3
|
-
- url: /v3
|
|
4
|
-
info:
|
|
5
|
-
description: |-
|
|
6
|
-
This is a sample Pet Store Server based on the OpenAPI 3.0 specification. You can find out more about
|
|
7
|
-
Swagger at [http://swagger.io](http://swagger.io). In the third iteration of the pet store, we've switched to the design first approach!
|
|
8
|
-
You can now help us improve the API whether it's by making changes to the definition itself or to the code.
|
|
9
|
-
That way, with time, we can improve the API in general, and expose some of the new features in OAS3.
|
|
10
|
-
|
|
11
|
-
Some useful links:
|
|
12
|
-
- [The Pet Store repository](https://github.com/swagger-api/swagger-petstore)
|
|
13
|
-
- [The source API definition for the Pet Store](https://github.com/swagger-api/swagger-petstore/blob/master/src/main/resources/openapi.yaml)
|
|
14
|
-
version: 1.0.6-SNAPSHOT
|
|
15
|
-
title: Swagger Petstore - OpenAPI 3.0
|
|
16
|
-
termsOfService: 'http://swagger.io/terms/'
|
|
17
|
-
contact:
|
|
18
|
-
email: apiteam@swagger.io
|
|
19
|
-
name: Swagger IO
|
|
20
|
-
url: swagger.io
|
|
21
|
-
license:
|
|
22
|
-
name: Apache 2.0
|
|
23
|
-
url: 'http://www.apache.org/licenses/LICENSE-2.0.html'
|
|
24
|
-
tags:
|
|
25
|
-
- name: pet
|
|
26
|
-
description: Everything about your Pets
|
|
27
|
-
externalDocs:
|
|
28
|
-
description: Find out more
|
|
29
|
-
url: 'http://swagger.io'
|
|
30
|
-
- name: store
|
|
31
|
-
description: Operations about user
|
|
32
|
-
- name: user
|
|
33
|
-
description: Access to Petstore orders
|
|
34
|
-
externalDocs:
|
|
35
|
-
description: Find out more about our store
|
|
36
|
-
url: 'http://swagger.io'
|
|
37
|
-
paths:
|
|
38
|
-
/pet:
|
|
39
|
-
post:
|
|
40
|
-
tags:
|
|
41
|
-
- pet
|
|
42
|
-
summary: Add a new pet to the store
|
|
43
|
-
description: Add a new pet to the store
|
|
44
|
-
operationId: addPet
|
|
45
|
-
deprecated: true
|
|
46
|
-
responses:
|
|
47
|
-
'200':
|
|
48
|
-
description: Successful operation
|
|
49
|
-
content:
|
|
50
|
-
application/xml:
|
|
51
|
-
schema:
|
|
52
|
-
$ref: '#/components/schemas/Pet'
|
|
53
|
-
application/json:
|
|
54
|
-
schema:
|
|
55
|
-
$ref: '#/components/schemas/Pet'
|
|
56
|
-
'405':
|
|
57
|
-
description: Invalid input
|
|
58
|
-
security:
|
|
59
|
-
- petstore_auth:
|
|
60
|
-
- 'write:pets'
|
|
61
|
-
- 'read:pets'
|
|
62
|
-
requestBody:
|
|
63
|
-
description: Create a new pet in the store
|
|
64
|
-
required: true
|
|
65
|
-
content:
|
|
66
|
-
application/json:
|
|
67
|
-
schema:
|
|
68
|
-
$ref: '#/components/schemas/Pet'
|
|
69
|
-
application/xml:
|
|
70
|
-
schema:
|
|
71
|
-
$ref: '#/components/schemas/Pet'
|
|
72
|
-
application/x-www-form-urlencoded:
|
|
73
|
-
schema:
|
|
74
|
-
$ref: '#/components/schemas/Pet'
|
|
75
|
-
put:
|
|
76
|
-
tags:
|
|
77
|
-
- pet
|
|
78
|
-
summary: Update an existing pet
|
|
79
|
-
description: Update an existing pet by Id
|
|
80
|
-
operationId: updatePet
|
|
81
|
-
responses:
|
|
82
|
-
'200':
|
|
83
|
-
description: Successful operation
|
|
84
|
-
content:
|
|
85
|
-
application/xml:
|
|
86
|
-
schema:
|
|
87
|
-
$ref: '#/components/schemas/Pet'
|
|
88
|
-
application/json:
|
|
89
|
-
schema:
|
|
90
|
-
$ref: '#/components/schemas/Pet'
|
|
91
|
-
'400':
|
|
92
|
-
description: Invalid ID supplied
|
|
93
|
-
'404':
|
|
94
|
-
description: Pet not found
|
|
95
|
-
'405':
|
|
96
|
-
description: Validation exception
|
|
97
|
-
security:
|
|
98
|
-
- petstore_auth:
|
|
99
|
-
- 'write:pets'
|
|
100
|
-
- 'read:pets'
|
|
101
|
-
requestBody:
|
|
102
|
-
description: Update an existent pet in the store
|
|
103
|
-
required: true
|
|
104
|
-
content:
|
|
105
|
-
application/json:
|
|
106
|
-
schema:
|
|
107
|
-
$ref: '#/components/schemas/Pet'
|
|
108
|
-
application/xml:
|
|
109
|
-
schema:
|
|
110
|
-
$ref: '#/components/schemas/Pet'
|
|
111
|
-
application/x-www-form-urlencoded:
|
|
112
|
-
schema:
|
|
113
|
-
$ref: '#/components/schemas/Pet'
|
|
114
|
-
/pet/findByStatus:
|
|
115
|
-
get:
|
|
116
|
-
tags:
|
|
117
|
-
- pet
|
|
118
|
-
summary: Finds Pets by status
|
|
119
|
-
description: Multiple status values can be provided with comma separated strings
|
|
120
|
-
operationId: findPetsByStatus
|
|
121
|
-
parameters:
|
|
122
|
-
- name: status
|
|
123
|
-
in: query
|
|
124
|
-
description: Status values that need to be considered for filter
|
|
125
|
-
required: false
|
|
126
|
-
explode: true
|
|
127
|
-
example: pending
|
|
128
|
-
schema:
|
|
129
|
-
type: string
|
|
130
|
-
enum:
|
|
131
|
-
- available
|
|
132
|
-
- pending
|
|
133
|
-
- sold
|
|
134
|
-
default: available
|
|
135
|
-
responses:
|
|
136
|
-
'200':
|
|
137
|
-
description: successful operation
|
|
138
|
-
content:
|
|
139
|
-
application/xml:
|
|
140
|
-
schema:
|
|
141
|
-
type: array
|
|
142
|
-
items:
|
|
143
|
-
$ref: '#/components/schemas/Pet'
|
|
144
|
-
application/json:
|
|
145
|
-
schema:
|
|
146
|
-
type: array
|
|
147
|
-
items:
|
|
148
|
-
$ref: '#/components/schemas/Pet'
|
|
149
|
-
'400':
|
|
150
|
-
description: Invalid status value
|
|
151
|
-
security:
|
|
152
|
-
- petstore_auth:
|
|
153
|
-
- 'write:pets'
|
|
154
|
-
- 'read:pets'
|
|
155
|
-
/pet/findByTags:
|
|
156
|
-
get:
|
|
157
|
-
tags:
|
|
158
|
-
- pet
|
|
159
|
-
summary: Finds Pets by tags
|
|
160
|
-
description: >-
|
|
161
|
-
Multiple tags can be provided with comma separated strings. Use tag1,
|
|
162
|
-
tag2, tag3 for testing.
|
|
163
|
-
operationId: findPetsByTags
|
|
164
|
-
parameters:
|
|
165
|
-
- name: tags
|
|
166
|
-
in: query
|
|
167
|
-
description: Tags to filter by
|
|
168
|
-
required: false
|
|
169
|
-
explode: true
|
|
170
|
-
schema:
|
|
171
|
-
type: array
|
|
172
|
-
items:
|
|
173
|
-
type: string
|
|
174
|
-
responses:
|
|
175
|
-
'200':
|
|
176
|
-
description: successful operation
|
|
177
|
-
content:
|
|
178
|
-
application/xml:
|
|
179
|
-
schema:
|
|
180
|
-
type: array
|
|
181
|
-
items:
|
|
182
|
-
$ref: '#/components/schemas/Pet'
|
|
183
|
-
application/json:
|
|
184
|
-
schema:
|
|
185
|
-
type: array
|
|
186
|
-
items:
|
|
187
|
-
$ref: '#/components/schemas/Pet'
|
|
188
|
-
'400':
|
|
189
|
-
description: Invalid tag value
|
|
190
|
-
security:
|
|
191
|
-
- petstore_auth:
|
|
192
|
-
- 'write:pets'
|
|
193
|
-
- 'read:pets'
|
|
194
|
-
'/pet/{petId}':
|
|
195
|
-
get:
|
|
196
|
-
tags:
|
|
197
|
-
- pet
|
|
198
|
-
summary: Find pet by ID
|
|
199
|
-
description: Returns a single pet
|
|
200
|
-
operationId: getPetById
|
|
201
|
-
parameters:
|
|
202
|
-
- name: petId
|
|
203
|
-
in: path
|
|
204
|
-
description: ID of pet to return
|
|
205
|
-
required: true
|
|
206
|
-
schema:
|
|
207
|
-
type: integer
|
|
208
|
-
format: int64
|
|
209
|
-
responses:
|
|
210
|
-
'200':
|
|
211
|
-
description: successful operation
|
|
212
|
-
content:
|
|
213
|
-
application/xml:
|
|
214
|
-
schema:
|
|
215
|
-
$ref: '#/components/schemas/Pet'
|
|
216
|
-
application/json:
|
|
217
|
-
schema:
|
|
218
|
-
$ref: '#/components/schemas/Pet'
|
|
219
|
-
'400':
|
|
220
|
-
description: Invalid ID supplied
|
|
221
|
-
'404':
|
|
222
|
-
description: Pet not found
|
|
223
|
-
security:
|
|
224
|
-
- api_key: []
|
|
225
|
-
- petstore_auth:
|
|
226
|
-
- 'write:pets'
|
|
227
|
-
- 'read:pets'
|
|
228
|
-
post:
|
|
229
|
-
tags:
|
|
230
|
-
- pet
|
|
231
|
-
summary: Updates a pet in the store with form data
|
|
232
|
-
description: ''
|
|
233
|
-
operationId: updatePetWithForm
|
|
234
|
-
parameters:
|
|
235
|
-
- name: petId
|
|
236
|
-
in: path
|
|
237
|
-
description: ID of pet that needs to be updated
|
|
238
|
-
required: true
|
|
239
|
-
schema:
|
|
240
|
-
type: integer
|
|
241
|
-
format: int64
|
|
242
|
-
- name: name
|
|
243
|
-
in: query
|
|
244
|
-
description: Name of pet that needs to be updated
|
|
245
|
-
deprecated: true
|
|
246
|
-
explode: true
|
|
247
|
-
allowEmptyValue: true
|
|
248
|
-
allowReserved: true
|
|
249
|
-
required: false
|
|
250
|
-
style: form
|
|
251
|
-
example: "A name"
|
|
252
|
-
schema:
|
|
253
|
-
type: string
|
|
254
|
-
- name: status
|
|
255
|
-
in: query
|
|
256
|
-
description: Status of pet that needs to be updated
|
|
257
|
-
schema:
|
|
258
|
-
type: string
|
|
259
|
-
- name: debug
|
|
260
|
-
in: cookie
|
|
261
|
-
description: Whether to debug the response
|
|
262
|
-
schema:
|
|
263
|
-
type: number
|
|
264
|
-
- in: query
|
|
265
|
-
name: filter
|
|
266
|
-
content:
|
|
267
|
-
application/json:
|
|
268
|
-
schema:
|
|
269
|
-
type: object
|
|
270
|
-
properties:
|
|
271
|
-
type:
|
|
272
|
-
type: string
|
|
273
|
-
color:
|
|
274
|
-
type: string
|
|
275
|
-
responses:
|
|
276
|
-
'405':
|
|
277
|
-
description: Invalid input
|
|
278
|
-
security:
|
|
279
|
-
- petstore_auth:
|
|
280
|
-
- 'write:pets'
|
|
281
|
-
- 'read:pets'
|
|
282
|
-
delete:
|
|
283
|
-
tags:
|
|
284
|
-
- pet
|
|
285
|
-
summary: Deletes a pet
|
|
286
|
-
description: ''
|
|
287
|
-
operationId: deletePet
|
|
288
|
-
parameters:
|
|
289
|
-
- name: api_key
|
|
290
|
-
in: header
|
|
291
|
-
description: ''
|
|
292
|
-
required: false
|
|
293
|
-
schema:
|
|
294
|
-
type: string
|
|
295
|
-
- name: petId
|
|
296
|
-
in: path
|
|
297
|
-
description: Pet id to delete
|
|
298
|
-
required: true
|
|
299
|
-
schema:
|
|
300
|
-
type: integer
|
|
301
|
-
format: int64
|
|
302
|
-
responses:
|
|
303
|
-
'400':
|
|
304
|
-
description: Invalid pet value
|
|
305
|
-
security:
|
|
306
|
-
- petstore_auth:
|
|
307
|
-
- 'write:pets'
|
|
308
|
-
- 'read:pets'
|
|
309
|
-
'/pet/{petId}/uploadImage':
|
|
310
|
-
post:
|
|
311
|
-
tags:
|
|
312
|
-
- pet
|
|
313
|
-
summary: uploads an image
|
|
314
|
-
description: ''
|
|
315
|
-
operationId: uploadFile
|
|
316
|
-
parameters:
|
|
317
|
-
- name: petId
|
|
318
|
-
in: path
|
|
319
|
-
description: ID of pet to update
|
|
320
|
-
required: true
|
|
321
|
-
schema:
|
|
322
|
-
type: integer
|
|
323
|
-
format: int64
|
|
324
|
-
- name: additionalMetadata
|
|
325
|
-
in: query
|
|
326
|
-
description: Additional Metadata
|
|
327
|
-
required: false
|
|
328
|
-
schema:
|
|
329
|
-
type: string
|
|
330
|
-
responses:
|
|
331
|
-
'200':
|
|
332
|
-
description: successful operation
|
|
333
|
-
content:
|
|
334
|
-
application/json:
|
|
335
|
-
schema:
|
|
336
|
-
$ref: '#/components/schemas/ApiResponse'
|
|
337
|
-
security:
|
|
338
|
-
- petstore_auth:
|
|
339
|
-
- 'write:pets'
|
|
340
|
-
- 'read:pets'
|
|
341
|
-
requestBody:
|
|
342
|
-
content:
|
|
343
|
-
application/octet-stream:
|
|
344
|
-
schema:
|
|
345
|
-
type: string
|
|
346
|
-
format: binary
|
|
347
|
-
/pet/listDogs:
|
|
348
|
-
get:
|
|
349
|
-
tags:
|
|
350
|
-
- pet
|
|
351
|
-
summary: List dogs only
|
|
352
|
-
description: An endpoint to list pets that are dogs.
|
|
353
|
-
operationId: listDogs
|
|
354
|
-
responses:
|
|
355
|
-
'200':
|
|
356
|
-
description: |
|
|
357
|
-
A response that returns a paginated object listing all dogs in the store.
|
|
358
|
-
content:
|
|
359
|
-
application/json:
|
|
360
|
-
schema:
|
|
361
|
-
type: array
|
|
362
|
-
items:
|
|
363
|
-
$ref: '#/components/schemas/Dog'
|
|
364
|
-
/pet/listCommon:
|
|
365
|
-
get:
|
|
366
|
-
tags:
|
|
367
|
-
- pet
|
|
368
|
-
summary: List common
|
|
369
|
-
description: An endpoint to list dogs, cats, and lizards.
|
|
370
|
-
operationId: listCommon
|
|
371
|
-
responses:
|
|
372
|
-
'200':
|
|
373
|
-
description: |
|
|
374
|
-
A response that returns a paginated object listing all common pets in the store.
|
|
375
|
-
content:
|
|
376
|
-
application/json:
|
|
377
|
-
schema:
|
|
378
|
-
type: array
|
|
379
|
-
items:
|
|
380
|
-
anyOf:
|
|
381
|
-
- $ref: '#/components/schemas/Dog'
|
|
382
|
-
- $ref: '#/components/schemas/Cat'
|
|
383
|
-
- $ref: '#/components/schemas/Lizard'
|
|
384
|
-
|
|
385
|
-
/store/inventory:
|
|
386
|
-
get:
|
|
387
|
-
tags:
|
|
388
|
-
- store
|
|
389
|
-
summary: Returns pet inventories by status
|
|
390
|
-
description: Returns a map of status codes to quantities
|
|
391
|
-
operationId: getInventory
|
|
392
|
-
x-swagger-router-controller: OrderController
|
|
393
|
-
responses:
|
|
394
|
-
'200':
|
|
395
|
-
description: successful operation
|
|
396
|
-
content:
|
|
397
|
-
application/json:
|
|
398
|
-
schema:
|
|
399
|
-
type: object
|
|
400
|
-
additionalProperties:
|
|
401
|
-
type: integer
|
|
402
|
-
format: int32
|
|
403
|
-
security:
|
|
404
|
-
- api_key: []
|
|
405
|
-
/store/order:
|
|
406
|
-
post:
|
|
407
|
-
tags:
|
|
408
|
-
- store
|
|
409
|
-
summary: Place an order for a pet
|
|
410
|
-
description: Place a new order in the store
|
|
411
|
-
operationId: placeOrder
|
|
412
|
-
x-swagger-router-controller: OrderController
|
|
413
|
-
responses:
|
|
414
|
-
'200':
|
|
415
|
-
description: successful operation
|
|
416
|
-
content:
|
|
417
|
-
application/json:
|
|
418
|
-
schema:
|
|
419
|
-
$ref: '#/components/schemas/Order'
|
|
420
|
-
'405':
|
|
421
|
-
description: Invalid input
|
|
422
|
-
requestBody:
|
|
423
|
-
content:
|
|
424
|
-
application/json:
|
|
425
|
-
schema:
|
|
426
|
-
$ref: '#/components/schemas/Order'
|
|
427
|
-
application/xml:
|
|
428
|
-
schema:
|
|
429
|
-
$ref: '#/components/schemas/Order'
|
|
430
|
-
application/x-www-form-urlencoded:
|
|
431
|
-
schema:
|
|
432
|
-
$ref: '#/components/schemas/Order'
|
|
433
|
-
'/store/order/{orderId}':
|
|
434
|
-
get:
|
|
435
|
-
tags:
|
|
436
|
-
- store
|
|
437
|
-
summary: Find purchase order by ID
|
|
438
|
-
x-swagger-router-controller: OrderController
|
|
439
|
-
description: >-
|
|
440
|
-
For valid response try integer IDs with value <= 5 or > 10. Other values
|
|
441
|
-
will generated exceptions
|
|
442
|
-
operationId: getOrderById
|
|
443
|
-
parameters:
|
|
444
|
-
- name: orderId
|
|
445
|
-
in: path
|
|
446
|
-
description: ID of order that needs to be fetched
|
|
447
|
-
required: true
|
|
448
|
-
schema:
|
|
449
|
-
type: integer
|
|
450
|
-
format: int64
|
|
451
|
-
responses:
|
|
452
|
-
'200':
|
|
453
|
-
description: successful operation
|
|
454
|
-
content:
|
|
455
|
-
application/xml:
|
|
456
|
-
schema:
|
|
457
|
-
$ref: '#/components/schemas/Order'
|
|
458
|
-
application/json:
|
|
459
|
-
schema:
|
|
460
|
-
$ref: '#/components/schemas/Order'
|
|
461
|
-
'400':
|
|
462
|
-
description: Invalid ID supplied
|
|
463
|
-
'404':
|
|
464
|
-
description: Order not found
|
|
465
|
-
delete:
|
|
466
|
-
tags:
|
|
467
|
-
- store
|
|
468
|
-
summary: Delete purchase order by ID
|
|
469
|
-
x-swagger-router-controller: OrderController
|
|
470
|
-
description: >-
|
|
471
|
-
For valid response try integer IDs with value < 1000. Anything above
|
|
472
|
-
1000 or nonintegers will generate API errors
|
|
473
|
-
operationId: deleteOrder
|
|
474
|
-
parameters:
|
|
475
|
-
- name: orderId
|
|
476
|
-
in: path
|
|
477
|
-
description: ID of the order that needs to be deleted
|
|
478
|
-
required: true
|
|
479
|
-
schema:
|
|
480
|
-
type: integer
|
|
481
|
-
format: int64
|
|
482
|
-
responses:
|
|
483
|
-
'400':
|
|
484
|
-
description: Invalid ID supplied
|
|
485
|
-
'404':
|
|
486
|
-
description: Order not found
|
|
487
|
-
/user:
|
|
488
|
-
post:
|
|
489
|
-
tags:
|
|
490
|
-
- user
|
|
491
|
-
summary: Create user
|
|
492
|
-
description: This can only be done by the logged in user.
|
|
493
|
-
operationId: createUser
|
|
494
|
-
responses:
|
|
495
|
-
default:
|
|
496
|
-
description: successful operation
|
|
497
|
-
content:
|
|
498
|
-
application/json:
|
|
499
|
-
schema:
|
|
500
|
-
$ref: '#/components/schemas/User'
|
|
501
|
-
application/xml:
|
|
502
|
-
schema:
|
|
503
|
-
$ref: '#/components/schemas/User'
|
|
504
|
-
links:
|
|
505
|
-
GetUserByUserName:
|
|
506
|
-
operationId: getUserByName
|
|
507
|
-
parameters:
|
|
508
|
-
username: '$request.body#/username'
|
|
509
|
-
description: >
|
|
510
|
-
The `username` value from the request body to be used as
|
|
511
|
-
the `username` parameter in `GET /users/{username}`.
|
|
512
|
-
GetUserByRef:
|
|
513
|
-
operationRef: '#/paths/user/{username}/get'
|
|
514
|
-
parameters:
|
|
515
|
-
username: '$request.body#/username'
|
|
516
|
-
description: >
|
|
517
|
-
This uses `operationRef` instead of `operationId`.
|
|
518
|
-
requestBody:
|
|
519
|
-
content:
|
|
520
|
-
application/json:
|
|
521
|
-
schema:
|
|
522
|
-
$ref: '#/components/schemas/User'
|
|
523
|
-
application/xml:
|
|
524
|
-
schema:
|
|
525
|
-
$ref: '#/components/schemas/User'
|
|
526
|
-
application/x-www-form-urlencoded:
|
|
527
|
-
schema:
|
|
528
|
-
$ref: '#/components/schemas/User'
|
|
529
|
-
description: Created user object
|
|
530
|
-
/user/createWithList:
|
|
531
|
-
post:
|
|
532
|
-
tags:
|
|
533
|
-
- user
|
|
534
|
-
summary: Creates list of users with given input array
|
|
535
|
-
description: 'Creates list of users with given input array'
|
|
536
|
-
x-swagger-router-controller: UserController
|
|
537
|
-
operationId: createUsersWithListInput
|
|
538
|
-
responses:
|
|
539
|
-
'200':
|
|
540
|
-
description: Successful operation
|
|
541
|
-
content:
|
|
542
|
-
application/xml:
|
|
543
|
-
schema:
|
|
544
|
-
$ref: '#/components/schemas/User'
|
|
545
|
-
application/json:
|
|
546
|
-
schema:
|
|
547
|
-
$ref: '#/components/schemas/User'
|
|
548
|
-
default:
|
|
549
|
-
description: successful operation
|
|
550
|
-
requestBody:
|
|
551
|
-
content:
|
|
552
|
-
application/json:
|
|
553
|
-
schema:
|
|
554
|
-
type: array
|
|
555
|
-
items:
|
|
556
|
-
$ref: '#/components/schemas/User'
|
|
557
|
-
/user/login:
|
|
558
|
-
get:
|
|
559
|
-
tags:
|
|
560
|
-
- user
|
|
561
|
-
summary: Logs user into the system
|
|
562
|
-
description: ''
|
|
563
|
-
operationId: loginUser
|
|
564
|
-
parameters:
|
|
565
|
-
- name: username
|
|
566
|
-
in: query
|
|
567
|
-
description: The user name for login
|
|
568
|
-
required: false
|
|
569
|
-
schema:
|
|
570
|
-
type: string
|
|
571
|
-
- name: password
|
|
572
|
-
in: query
|
|
573
|
-
description: The password for login in clear text
|
|
574
|
-
required: false
|
|
575
|
-
schema:
|
|
576
|
-
type: string
|
|
577
|
-
responses:
|
|
578
|
-
'200':
|
|
579
|
-
description: successful operation
|
|
580
|
-
headers:
|
|
581
|
-
X-Rate-Limit:
|
|
582
|
-
description: calls per hour allowed by the user
|
|
583
|
-
schema:
|
|
584
|
-
type: integer
|
|
585
|
-
format: int32
|
|
586
|
-
X-Expires-After:
|
|
587
|
-
description: date in UTC when token expires
|
|
588
|
-
schema:
|
|
589
|
-
type: string
|
|
590
|
-
format: date-time
|
|
591
|
-
content:
|
|
592
|
-
application/xml:
|
|
593
|
-
schema:
|
|
594
|
-
type: string
|
|
595
|
-
application/json:
|
|
596
|
-
schema:
|
|
597
|
-
type: string
|
|
598
|
-
'400':
|
|
599
|
-
description: Invalid username/password supplied
|
|
600
|
-
/user/logout:
|
|
601
|
-
get:
|
|
602
|
-
tags:
|
|
603
|
-
- user
|
|
604
|
-
summary: Logs out current logged in user session
|
|
605
|
-
description: ''
|
|
606
|
-
operationId: logoutUser
|
|
607
|
-
parameters: []
|
|
608
|
-
responses:
|
|
609
|
-
default:
|
|
610
|
-
description: successful operation
|
|
611
|
-
'/user/{username}':
|
|
612
|
-
summary: Represents a user
|
|
613
|
-
description: >
|
|
614
|
-
This resource represents an individual user in the system.
|
|
615
|
-
Each user is identified by a numeric `id`.
|
|
616
|
-
parameters:
|
|
617
|
-
- name: username
|
|
618
|
-
in: path
|
|
619
|
-
description: 'The name that needs to be fetched. Use user1 for testing. '
|
|
620
|
-
required: true
|
|
621
|
-
schema:
|
|
622
|
-
type: string
|
|
623
|
-
get:
|
|
624
|
-
tags:
|
|
625
|
-
- user
|
|
626
|
-
summary: Get user by user name
|
|
627
|
-
description: ''
|
|
628
|
-
operationId: getUserByName
|
|
629
|
-
responses:
|
|
630
|
-
'200':
|
|
631
|
-
description: successful operation
|
|
632
|
-
content:
|
|
633
|
-
application/xml:
|
|
634
|
-
schema:
|
|
635
|
-
$ref: '#/components/schemas/User'
|
|
636
|
-
application/json:
|
|
637
|
-
schema:
|
|
638
|
-
$ref: '#/components/schemas/User'
|
|
639
|
-
'400':
|
|
640
|
-
description: Invalid username supplied
|
|
641
|
-
'404':
|
|
642
|
-
description: User not found
|
|
643
|
-
put:
|
|
644
|
-
tags:
|
|
645
|
-
- user
|
|
646
|
-
summary: Update user
|
|
647
|
-
x-swagger-router-controller: UserController
|
|
648
|
-
description: This can only be done by the logged in user.
|
|
649
|
-
operationId: updateUser
|
|
650
|
-
parameters:
|
|
651
|
-
- name: username
|
|
652
|
-
in: path
|
|
653
|
-
description: name that need to be deleted
|
|
654
|
-
required: true
|
|
655
|
-
schema:
|
|
656
|
-
type: string
|
|
657
|
-
responses:
|
|
658
|
-
default:
|
|
659
|
-
description: successful operation
|
|
660
|
-
requestBody:
|
|
661
|
-
description: Update an existent user in the store
|
|
662
|
-
content:
|
|
663
|
-
application/json:
|
|
664
|
-
schema:
|
|
665
|
-
$ref: '#/components/schemas/User'
|
|
666
|
-
application/xml:
|
|
667
|
-
schema:
|
|
668
|
-
$ref: '#/components/schemas/User'
|
|
669
|
-
application/x-www-form-urlencoded:
|
|
670
|
-
schema:
|
|
671
|
-
$ref: '#/components/schemas/User'
|
|
672
|
-
delete:
|
|
673
|
-
tags:
|
|
674
|
-
- user
|
|
675
|
-
summary: Delete user
|
|
676
|
-
description: This can only be done by the logged in user.
|
|
677
|
-
operationId: deleteUser
|
|
678
|
-
parameters:
|
|
679
|
-
- name: username
|
|
680
|
-
in: path
|
|
681
|
-
description: The name that needs to be deleted
|
|
682
|
-
required: true
|
|
683
|
-
schema:
|
|
684
|
-
type: string
|
|
685
|
-
responses:
|
|
686
|
-
'400':
|
|
687
|
-
description: Invalid username supplied
|
|
688
|
-
'404':
|
|
689
|
-
description: User not found
|
|
690
|
-
/unions:
|
|
691
|
-
patch:
|
|
692
|
-
summary: An oneOf body
|
|
693
|
-
requestBody:
|
|
694
|
-
content:
|
|
695
|
-
application/json:
|
|
696
|
-
schema:
|
|
697
|
-
oneOf:
|
|
698
|
-
- $ref: '#/components/schemas/Cat'
|
|
699
|
-
- $ref: '#/components/schemas/Dog'
|
|
700
|
-
responses:
|
|
701
|
-
'200':
|
|
702
|
-
description: Updated
|
|
703
|
-
post:
|
|
704
|
-
summary: An allOf body
|
|
705
|
-
requestBody:
|
|
706
|
-
content:
|
|
707
|
-
application/json:
|
|
708
|
-
schema:
|
|
709
|
-
allOf:
|
|
710
|
-
- $ref: '#/components/schemas/Cat'
|
|
711
|
-
- $ref: '#/components/schemas/Dog'
|
|
712
|
-
discriminator:
|
|
713
|
-
propertyName: pet_type
|
|
714
|
-
responses:
|
|
715
|
-
'200':
|
|
716
|
-
description: Updated
|
|
717
|
-
externalDocs:
|
|
718
|
-
description: Find out more about Swagger
|
|
719
|
-
url: 'http://swagger.io'
|
|
720
|
-
components:
|
|
721
|
-
schemas:
|
|
722
|
-
Order:
|
|
723
|
-
x-swagger-router-model: io.swagger.petstore.model.Order
|
|
724
|
-
properties:
|
|
725
|
-
id:
|
|
726
|
-
type: integer
|
|
727
|
-
format: int64
|
|
728
|
-
example: 10
|
|
729
|
-
petId:
|
|
730
|
-
type: integer
|
|
731
|
-
format: int64
|
|
732
|
-
example: 198772
|
|
733
|
-
quantity:
|
|
734
|
-
type: integer
|
|
735
|
-
format: int32
|
|
736
|
-
example: 7
|
|
737
|
-
shipDate:
|
|
738
|
-
type: string
|
|
739
|
-
format: date-time
|
|
740
|
-
status:
|
|
741
|
-
type: string
|
|
742
|
-
description: Order Status
|
|
743
|
-
enum:
|
|
744
|
-
- placed
|
|
745
|
-
- approved
|
|
746
|
-
- delivered
|
|
747
|
-
example: approved
|
|
748
|
-
complete:
|
|
749
|
-
type: boolean
|
|
750
|
-
xml:
|
|
751
|
-
name: order
|
|
752
|
-
type: object
|
|
753
|
-
Customer:
|
|
754
|
-
properties:
|
|
755
|
-
id:
|
|
756
|
-
type: integer
|
|
757
|
-
format: int64
|
|
758
|
-
example: 100000
|
|
759
|
-
username:
|
|
760
|
-
type: string
|
|
761
|
-
example: fehguy
|
|
762
|
-
address:
|
|
763
|
-
type: array
|
|
764
|
-
items:
|
|
765
|
-
$ref: '#/components/schemas/Address'
|
|
766
|
-
xml:
|
|
767
|
-
wrapped: true
|
|
768
|
-
name: addresses
|
|
769
|
-
xml:
|
|
770
|
-
name: customer
|
|
771
|
-
type: object
|
|
772
|
-
Address:
|
|
773
|
-
properties:
|
|
774
|
-
street:
|
|
775
|
-
type: string
|
|
776
|
-
example: 437 Lytton
|
|
777
|
-
city:
|
|
778
|
-
type: string
|
|
779
|
-
example: Palo Alto
|
|
780
|
-
state:
|
|
781
|
-
type: string
|
|
782
|
-
example: CA
|
|
783
|
-
zip:
|
|
784
|
-
type: string
|
|
785
|
-
example: 94301
|
|
786
|
-
xml:
|
|
787
|
-
name: address
|
|
788
|
-
type: object
|
|
789
|
-
Category:
|
|
790
|
-
x-swagger-router-model: io.swagger.petstore.model.Category
|
|
791
|
-
properties:
|
|
792
|
-
id:
|
|
793
|
-
type: integer
|
|
794
|
-
format: int64
|
|
795
|
-
example: 1
|
|
796
|
-
name:
|
|
797
|
-
type: string
|
|
798
|
-
example: Dogs
|
|
799
|
-
xml:
|
|
800
|
-
name: category
|
|
801
|
-
type: object
|
|
802
|
-
User:
|
|
803
|
-
x-swagger-router-model: io.swagger.petstore.model.User
|
|
804
|
-
properties:
|
|
805
|
-
id:
|
|
806
|
-
type: integer
|
|
807
|
-
format: int64
|
|
808
|
-
example: 10
|
|
809
|
-
username:
|
|
810
|
-
type: string
|
|
811
|
-
example: theUser
|
|
812
|
-
firstName:
|
|
813
|
-
type: string
|
|
814
|
-
example: John
|
|
815
|
-
lastName:
|
|
816
|
-
type: string
|
|
817
|
-
example: James
|
|
818
|
-
email:
|
|
819
|
-
type: string
|
|
820
|
-
example: john@email.com
|
|
821
|
-
password:
|
|
822
|
-
type: string
|
|
823
|
-
example: 12345
|
|
824
|
-
phone:
|
|
825
|
-
type: string
|
|
826
|
-
example: 12345
|
|
827
|
-
userStatus:
|
|
828
|
-
type: integer
|
|
829
|
-
format: int32
|
|
830
|
-
example: 1
|
|
831
|
-
description: User Status
|
|
832
|
-
xml:
|
|
833
|
-
name: user
|
|
834
|
-
type: object
|
|
835
|
-
Tag:
|
|
836
|
-
x-swagger-router-model: io.swagger.petstore.model.Tag
|
|
837
|
-
properties:
|
|
838
|
-
id:
|
|
839
|
-
type: integer
|
|
840
|
-
format: int64
|
|
841
|
-
name:
|
|
842
|
-
type: string
|
|
843
|
-
xml:
|
|
844
|
-
name: tag
|
|
845
|
-
type: object
|
|
846
|
-
Pet:
|
|
847
|
-
x-swagger-router-model: io.swagger.petstore.model.Pet
|
|
848
|
-
required:
|
|
849
|
-
- name
|
|
850
|
-
- photoUrls
|
|
851
|
-
properties:
|
|
852
|
-
id:
|
|
853
|
-
type: integer
|
|
854
|
-
format: int64
|
|
855
|
-
example: 10
|
|
856
|
-
name:
|
|
857
|
-
type: string
|
|
858
|
-
example: doggie
|
|
859
|
-
category:
|
|
860
|
-
$ref: '#/components/schemas/Category'
|
|
861
|
-
photoUrls:
|
|
862
|
-
type: array
|
|
863
|
-
xml:
|
|
864
|
-
wrapped: true
|
|
865
|
-
items:
|
|
866
|
-
type: string
|
|
867
|
-
xml:
|
|
868
|
-
name: photoUrl
|
|
869
|
-
tags:
|
|
870
|
-
type: array
|
|
871
|
-
xml:
|
|
872
|
-
wrapped: true
|
|
873
|
-
items:
|
|
874
|
-
$ref: '#/components/schemas/Tag'
|
|
875
|
-
xml:
|
|
876
|
-
name: tag
|
|
877
|
-
status:
|
|
878
|
-
type: string
|
|
879
|
-
description: pet status in the store
|
|
880
|
-
enum:
|
|
881
|
-
- available
|
|
882
|
-
- pending
|
|
883
|
-
- sold
|
|
884
|
-
petType:
|
|
885
|
-
type: string
|
|
886
|
-
discriminator:
|
|
887
|
-
propertyName: petType
|
|
888
|
-
xml:
|
|
889
|
-
name: pet
|
|
890
|
-
type: object
|
|
891
|
-
ApiResponse:
|
|
892
|
-
properties:
|
|
893
|
-
code:
|
|
894
|
-
type: integer
|
|
895
|
-
format: int32
|
|
896
|
-
type:
|
|
897
|
-
type: string
|
|
898
|
-
message:
|
|
899
|
-
type: string
|
|
900
|
-
xml:
|
|
901
|
-
name: '##default'
|
|
902
|
-
type: object
|
|
903
|
-
Cat:
|
|
904
|
-
allOf:
|
|
905
|
-
- $ref: '#/components/schemas/Pet'
|
|
906
|
-
- type: object
|
|
907
|
-
properties:
|
|
908
|
-
name:
|
|
909
|
-
type: string
|
|
910
|
-
Dog:
|
|
911
|
-
allOf:
|
|
912
|
-
- $ref: '#/components/schemas/Pet'
|
|
913
|
-
- type: object
|
|
914
|
-
properties:
|
|
915
|
-
bark:
|
|
916
|
-
type: string
|
|
917
|
-
Lizard:
|
|
918
|
-
allOf:
|
|
919
|
-
- $ref: '#/components/schemas/Pet'
|
|
920
|
-
- type: object
|
|
921
|
-
properties:
|
|
922
|
-
lovesRocks:
|
|
923
|
-
type: boolean
|
|
924
|
-
requestBodies:
|
|
925
|
-
Pet:
|
|
926
|
-
content:
|
|
927
|
-
application/json:
|
|
928
|
-
schema:
|
|
929
|
-
$ref: '#/components/schemas/Pet'
|
|
930
|
-
application/xml:
|
|
931
|
-
schema:
|
|
932
|
-
$ref: '#/components/schemas/Pet'
|
|
933
|
-
description: Pet object that needs to be added to the store
|
|
934
|
-
UserArray:
|
|
935
|
-
content:
|
|
936
|
-
application/json:
|
|
937
|
-
schema:
|
|
938
|
-
type: array
|
|
939
|
-
items:
|
|
940
|
-
$ref: '#/components/schemas/User'
|
|
941
|
-
description: List of user object
|
|
942
|
-
securitySchemes:
|
|
943
|
-
petstore_auth:
|
|
944
|
-
type: oauth2
|
|
945
|
-
flows:
|
|
946
|
-
implicit:
|
|
947
|
-
authorizationUrl: 'https://petstore.swagger.io/oauth/authorize'
|
|
948
|
-
scopes:
|
|
949
|
-
'write:pets': modify pets in your account
|
|
950
|
-
'read:pets': read your pets
|
|
951
|
-
api_key:
|
|
952
|
-
type: apiKey
|
|
953
|
-
name: api_key
|
|
954
|
-
in: header
|