From 2b38c49e3d732bf9ab98fbfee43e9660afbddfa2 Mon Sep 17 00:00:00 2001 From: gatzjames Date: Mon, 9 Dec 2024 17:26:35 +0100 Subject: [PATCH] cleanup --- packages/insomnia/collection-schema.json | 1436 ---------------------- packages/insomnia/example.json | 19 - packages/insomnia/example.yaml | 634 ---------- 3 files changed, 2089 deletions(-) delete mode 100644 packages/insomnia/collection-schema.json delete mode 100644 packages/insomnia/example.json delete mode 100644 packages/insomnia/example.yaml diff --git a/packages/insomnia/collection-schema.json b/packages/insomnia/collection-schema.json deleted file mode 100644 index 7f82db8ecf..0000000000 --- a/packages/insomnia/collection-schema.json +++ /dev/null @@ -1,1436 +0,0 @@ -{ - "anyOf": [ - { - "type": "object", - "properties": { - "type": { - "type": "string", - "const": "collection.insomnia.rest/5.0" - }, - "meta": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "created": { - "type": "number" - }, - "modified": { - "type": "number" - }, - "isPrivate": { - "type": "boolean" - } - }, - "required": [ - "id" - ], - "additionalProperties": false - }, - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "collection": { - "type": "array", - "items": { - "anyOf": [ - { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "url": { - "type": "string" - }, - "method": { - "type": "string" - }, - "body": { - "type": "object", - "properties": { - "mimeType": { - "type": "string" - }, - "text": { - "type": "string" - }, - "fileName": { - "type": "string" - }, - "params": { - "type": "array", - "items": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "value": { - "type": "string" - }, - "description": { - "type": "string" - }, - "disabled": { - "type": "boolean" - }, - "multiline": { - "type": "string" - }, - "id": { - "type": "string" - }, - "fileName": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "required": [ - "name", - "value" - ], - "additionalProperties": false - } - } - }, - "additionalProperties": false - }, - "preRequestScript": { - "type": "string" - }, - "afterResponseScript": { - "type": "string" - }, - "headers": { - "type": "array", - "items": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "value": { - "type": "string" - } - }, - "required": [ - "name", - "value" - ], - "additionalProperties": false - } - }, - "parameters": { - "type": "array", - "items": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "value": { - "type": "string" - }, - "disabled": { - "type": "boolean" - }, - "id": { - "type": "string" - }, - "fileName": { - "type": "string" - } - }, - "required": [ - "name", - "value" - ], - "additionalProperties": false - } - }, - "pathParameters": { - "type": "array", - "items": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "value": { - "type": "string" - } - }, - "required": [ - "name", - "value" - ], - "additionalProperties": false - } - }, - "authentication": { - "anyOf": [ - { - "type": "object", - "properties": { - "type": { - "type": "string", - "const": "basic" - }, - "useISO88591": { - "type": "boolean", - "default": false - }, - "username": { - "type": "string" - }, - "password": { - "type": "string" - }, - "disabled": { - "type": "boolean", - "default": false - } - }, - "required": [ - "type", - "username", - "password" - ], - "additionalProperties": false, - "description": "Basic Authentication" - }, - { - "type": "object", - "properties": { - "type": { - "type": "string", - "const": "apikey" - }, - "key": { - "type": "string" - }, - "value": { - "type": "string" - }, - "disabled": { - "type": "boolean", - "default": false - }, - "addTo": { - "type": "string" - } - }, - "required": [ - "type" - ], - "additionalProperties": false, - "description": "API Key Authentication" - }, - { - "type": "object", - "properties": { - "type": { - "type": "string", - "const": "oauth2" - }, - "disabled": { - "type": "boolean", - "default": false - }, - "grantType": { - "type": "string", - "enum": [ - "authorization_code", - "client_credentials", - "implicit", - "password", - "refresh_token" - ] - }, - "accessTokenUrl": { - "type": "string" - }, - "authorizationUrl": { - "type": "string" - }, - "clientId": { - "type": "string" - }, - "clientSecret": { - "type": "string" - }, - "audience": { - "type": "string" - }, - "scope": { - "type": "string" - }, - "resource": { - "type": "string" - }, - "username": { - "type": "string" - }, - "password": { - "type": "string" - }, - "redirectUrl": { - "type": "string" - }, - "credentialsInBody": { - "type": "boolean" - }, - "state": { - "type": "string" - }, - "code": { - "type": "string" - }, - "accessToken": { - "type": "string" - }, - "refreshToken": { - "type": "string" - }, - "tokenPrefix": { - "type": "string" - }, - "usePkce": { - "type": "boolean" - }, - "pkceMethod": { - "type": "string" - }, - "responseType": { - "type": "string", - "enum": [ - "code", - "token", - "none", - "id_token", - "id_token token" - ] - }, - "origin": { - "type": "string" - } - }, - "required": [ - "type", - "grantType" - ], - "additionalProperties": false, - "description": "OAuth 2.0 Authentication" - }, - { - "type": "object", - "properties": { - "type": { - "type": "string", - "const": "hawk" - }, - "id": { - "type": "string" - }, - "key": { - "type": "string" - }, - "ext": { - "type": "string" - }, - "validatePayload": { - "type": "boolean" - }, - "algorithm": { - "type": "string", - "enum": [ - "sha1", - "sha256" - ] - }, - "disabled": { - "type": "boolean", - "default": false - } - }, - "required": [ - "type", - "id", - "key", - "algorithm" - ], - "additionalProperties": false, - "description": "Hawk Authentication" - }, - { - "type": "object", - "properties": { - "type": { - "type": "string", - "const": "oauth1" - }, - "disabled": { - "type": "boolean", - "default": false - }, - "signatureMethod": { - "type": "string", - "enum": [ - "HMAC-SHA1", - "RSA-SHA1", - "HMAC-SHA256", - "PLAINTEXT" - ] - }, - "consumerKey": { - "type": "string" - }, - "tokenKey": { - "type": "string" - }, - "tokenSecret": { - "type": "string" - }, - "privateKey": { - "type": "string" - }, - "version": { - "type": "string" - }, - "nonce": { - "type": "string" - }, - "timestamp": { - "type": "string" - }, - "callback": { - "type": "string" - }, - "realm": { - "type": "string" - }, - "verifier": { - "type": "string" - }, - "includeBodyHash": { - "type": "boolean" - } - }, - "required": [ - "type", - "signatureMethod" - ], - "additionalProperties": false, - "description": "OAuth 1.0 Authentication" - }, - { - "type": "object", - "properties": { - "type": { - "type": "string", - "const": "digest" - }, - "disabled": { - "type": "boolean", - "default": false - }, - "username": { - "type": "string" - }, - "password": { - "type": "string" - } - }, - "required": [ - "type", - "username", - "password" - ], - "additionalProperties": false, - "description": "Digest Authentication" - }, - { - "type": "object", - "properties": { - "type": { - "type": "string", - "const": "ntlm" - }, - "disabled": { - "type": "boolean", - "default": false - }, - "username": { - "type": "string" - }, - "password": { - "type": "string" - } - }, - "required": [ - "type", - "username", - "password" - ], - "additionalProperties": false, - "description": "NTLM Authentication" - }, - { - "type": "object", - "properties": { - "type": { - "type": "string", - "const": "bearer" - }, - "disabled": { - "type": "boolean", - "default": false - }, - "token": { - "type": "string" - }, - "prefix": { - "type": "string" - } - }, - "required": [ - "type" - ], - "additionalProperties": false, - "description": "Bearer Authentication" - }, - { - "type": "object", - "properties": { - "type": { - "type": "string", - "const": "iam" - }, - "disabled": { - "type": "boolean", - "default": false - }, - "accessKeyId": { - "type": "string" - }, - "secretAccessKey": { - "type": "string" - }, - "sessionToken": { - "type": "string" - }, - "region": { - "type": "string" - }, - "service": { - "type": "string" - } - }, - "required": [ - "type" - ], - "additionalProperties": false, - "description": "AWS IAM Authentication" - }, - { - "type": "object", - "properties": { - "type": { - "type": "string", - "const": "netrc" - }, - "disabled": { - "type": "boolean", - "default": false - } - }, - "required": [ - "type" - ], - "additionalProperties": false, - "description": "Netrc Authentication" - }, - { - "type": "object", - "properties": { - "type": { - "type": "string", - "const": "asap" - }, - "disabled": { - "type": "boolean", - "default": false - }, - "issuer": { - "type": "string" - }, - "subject": { - "type": "string" - }, - "audience": { - "type": "string" - }, - "addintionalClaims": { - "type": "string" - }, - "privateKey": { - "type": "string" - }, - "keyId": { - "type": "string" - } - }, - "required": [ - "type", - "issuer", - "audience", - "privateKey", - "keyId" - ], - "additionalProperties": false, - "description": "ASAP Authentication" - }, - { - "type": "object", - "properties": { - "type": { - "type": "string", - "const": "none" - }, - "disabled": { - "type": "boolean", - "default": false - } - }, - "required": [ - "type" - ], - "additionalProperties": false, - "description": "No Authentication" - } - ] - }, - "metaSortKey": { - "type": "number" - }, - "isPrivate": { - "type": "boolean", - "default": false - }, - "settingStoreCookies": { - "type": "boolean", - "default": false - }, - "settingSendCookies": { - "type": "boolean", - "default": false - }, - "settingDisableRenderRequestBody": { - "type": "boolean", - "default": false - }, - "settingEncodeUrl": { - "type": "boolean", - "default": true - }, - "settingRebuildPath": { - "type": "boolean", - "default": true - }, - "settingFollowRedirects": { - "type": "string", - "enum": [ - "global", - "on", - "off" - ], - "default": "global" - }, - "meta": { - "$ref": "#/anyOf/0/properties/meta" - } - }, - "required": [ - "name", - "url", - "method" - ], - "additionalProperties": false - }, - { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "url": { - "type": "string" - }, - "description": { - "type": "string" - }, - "protoFileId": { - "anyOf": [ - { - "anyOf": [ - { - "not": {} - }, - { - "type": "string" - } - ] - }, - { - "type": "null" - } - ] - }, - "protoMethodName": { - "type": "string" - }, - "body": { - "type": "object", - "properties": { - "text": { - "type": [ - "string", - "null" - ] - } - }, - "required": [ - "text" - ], - "additionalProperties": false - }, - "metadata": { - "type": "array", - "items": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "value": { - "type": "string" - }, - "description": { - "type": [ - "string", - "null" - ] - }, - "disabled": { - "type": [ - "boolean", - "null" - ] - } - }, - "required": [ - "name", - "value", - "description", - "disabled" - ], - "additionalProperties": false - } - }, - "metaSortKey": { - "type": "number" - }, - "isPrivate": { - "type": "boolean", - "default": false - }, - "reflectionApi": { - "type": "object", - "properties": { - "enabled": { - "type": "boolean" - }, - "url": { - "type": "string" - }, - "apiKey": { - "type": "string" - }, - "module": { - "type": "string" - } - }, - "required": [ - "enabled", - "url", - "apiKey", - "module" - ], - "additionalProperties": false - }, - "meta": { - "$ref": "#/anyOf/0/properties/meta" - } - }, - "required": [ - "name", - "url" - ], - "additionalProperties": false - }, - { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "environment": { - "anyOf": [ - { - "type": [ - "string", - "number", - "boolean", - "null" - ] - }, - { - "type": "array", - "items": { - "$ref": "#/anyOf/0/properties/collection/items/anyOf/2/properties/environment" - } - }, - { - "type": "object", - "additionalProperties": { - "$ref": "#/anyOf/0/properties/collection/items/anyOf/2/properties/environment" - } - } - ] - }, - "environmentPropertyOrder": { - "$ref": "#/anyOf/0/properties/collection/items/anyOf/2/properties/environment" - }, - "metaSortKey": { - "type": "number" - }, - "preRequestScript": { - "type": "string" - }, - "afterResponseScript": { - "type": "string" - }, - "authentication": { - "$ref": "#/anyOf/0/properties/collection/items/anyOf/0/properties/authentication" - }, - "headers": { - "type": "array", - "items": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "value": { - "type": "string" - } - }, - "required": [ - "name", - "value" - ], - "additionalProperties": false - } - }, - "meta": { - "$ref": "#/anyOf/0/properties/meta" - }, - "children": { - "type": "array", - "items": { - "anyOf": [ - { - "$ref": "#/anyOf/0/properties/collection/items/anyOf/0" - }, - { - "$ref": "#/anyOf/0/properties/collection/items/anyOf/1" - }, - { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "url": { - "type": "string" - }, - "description": { - "type": "string" - }, - "metaSortKey": { - "type": "number" - }, - "headers": { - "type": "array", - "items": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "value": { - "type": "string" - } - }, - "required": [ - "name", - "value" - ], - "additionalProperties": false - } - }, - "authentication": { - "$ref": "#/anyOf/0/properties/collection/items/anyOf/0/properties/authentication" - }, - "parameters": { - "type": "array", - "items": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "value": { - "type": "string" - } - }, - "required": [ - "name", - "value" - ], - "additionalProperties": false - } - }, - "pathParameters": { - "type": "array", - "items": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "value": { - "type": "string" - } - }, - "required": [ - "name", - "value" - ], - "additionalProperties": false - } - }, - "settingEncodeUrl": { - "type": "boolean", - "default": true - }, - "settingStoreCookies": { - "type": "boolean", - "default": true - }, - "settingSendCookies": { - "type": "boolean", - "default": true - }, - "settingFollowRedirects": { - "type": "string", - "enum": [ - "global", - "on", - "off" - ], - "default": "global" - }, - "meta": { - "$ref": "#/anyOf/0/properties/meta" - } - }, - "required": [ - "name", - "url" - ], - "additionalProperties": false - }, - { - "$ref": "#/anyOf/0/properties/collection/items/anyOf/2" - } - ] - } - } - }, - "required": [ - "name" - ], - "additionalProperties": false - } - ] - } - }, - "certificates": { - "type": "array", - "items": { - "type": "object", - "properties": { - "path": { - "type": "string" - }, - "disabled": { - "type": "boolean", - "default": false - }, - "meta": { - "$ref": "#/anyOf/0/properties/meta" - } - }, - "required": [ - "path" - ], - "additionalProperties": false - } - }, - "environments": { - "type": "array", - "items": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "data": { - "$ref": "#/anyOf/0/properties/collection/items/anyOf/2/properties/environment" - }, - "color": { - "type": "string" - }, - "meta": { - "$ref": "#/anyOf/0/properties/meta" - } - }, - "required": [ - "data" - ], - "additionalProperties": false - } - }, - "cookieJar": { - "type": "object", - "properties": { - "type": { - "type": "string", - "const": "CookieJar" - }, - "name": { - "type": "string" - }, - "cookies": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "key": { - "type": "string" - }, - "value": { - "type": "string" - }, - "expires": { - "anyOf": [ - { - "type": "string", - "format": "date-time" - }, - { - "type": "string" - }, - { - "type": "number" - }, - { - "type": "null" - } - ] - }, - "domain": { - "type": "string" - }, - "path": { - "type": "string" - }, - "secure": { - "type": "boolean" - }, - "httpOnly": { - "type": "boolean" - }, - "extensions": { - "type": "array", - "items": { - "$ref": "#/anyOf/0/properties/collection/items/anyOf/2/properties/environment" - } - }, - "creation": { - "anyOf": [ - { - "type": "string", - "format": "date-time" - }, - { - "type": "null" - } - ] - }, - "creationIndex": { - "type": [ - "number", - "null" - ] - }, - "hostOnly": { - "type": [ - "boolean", - "null" - ] - }, - "pathIsDefault": { - "type": [ - "boolean", - "null" - ] - }, - "lastAccessed": { - "anyOf": [ - { - "type": "string", - "format": "date-time" - }, - { - "type": "null" - } - ] - } - }, - "required": [ - "id", - "key", - "value", - "expires", - "domain", - "path", - "secure", - "httpOnly", - "extensions", - "creation", - "creationIndex", - "hostOnly", - "pathIsDefault", - "lastAccessed" - ], - "additionalProperties": false - } - }, - "meta": { - "$ref": "#/anyOf/0/properties/meta" - } - }, - "required": [ - "type", - "name" - ], - "additionalProperties": false - } - }, - "required": [ - "type", - "collection" - ], - "additionalProperties": false - }, - { - "type": "object", - "properties": { - "type": { - "type": "string", - "const": "spec.insomnia.rest/5.0" - }, - "meta": { - "$ref": "#/anyOf/0/properties/meta" - }, - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "spec": { - "anyOf": [ - { - "type": "object", - "properties": { - "file": { - "type": "string" - } - }, - "required": [ - "file" - ], - "additionalProperties": false - }, - { - "type": "object", - "properties": { - "contents": { - "$ref": "#/anyOf/0/properties/collection/items/anyOf/2/properties/environment" - } - }, - "required": [ - "contents" - ], - "additionalProperties": false - } - ] - }, - "collection": { - "type": "array", - "items": { - "anyOf": [ - { - "$ref": "#/anyOf/0/properties/collection/items/anyOf/0" - }, - { - "$ref": "#/anyOf/0/properties/collection/items/anyOf/1" - }, - { - "$ref": "#/anyOf/0/properties/collection/items/anyOf/2" - } - ] - } - }, - "certificates": { - "type": "array", - "items": { - "$ref": "#/anyOf/0/properties/certificates/items" - } - }, - "environments": { - "type": "array", - "items": { - "$ref": "#/anyOf/0/properties/environments/items" - } - }, - "cookieJar": { - "$ref": "#/anyOf/0/properties/cookieJar" - }, - "testSuites": { - "type": "array", - "items": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "metaSortKey": { - "type": "number" - }, - "meta": { - "$ref": "#/anyOf/0/properties/meta" - }, - "tests": { - "type": "array", - "items": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "code": { - "type": "string" - }, - "requestId": { - "type": [ - "string", - "null" - ] - }, - "metaSortKey": { - "type": "number" - }, - "meta": { - "$ref": "#/anyOf/0/properties/meta" - } - }, - "required": [ - "name", - "code" - ], - "additionalProperties": false - } - } - }, - "required": [ - "name" - ], - "additionalProperties": false - } - } - }, - "required": [ - "type", - "collection" - ], - "additionalProperties": false - }, - { - "type": "object", - "properties": { - "type": { - "type": "string", - "const": "mock.insomnia.rest/5.0" - }, - "meta": { - "$ref": "#/anyOf/0/properties/meta" - }, - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "url": { - "type": "string" - }, - "useInsomniaCloud": { - "type": "boolean", - "default": true - }, - "routes": { - "type": "array", - "items": { - "type": "object", - "properties": { - "type": { - "type": "string", - "const": "MockRoute" - }, - "body": { - "type": "string" - }, - "statusCode": { - "type": "number" - }, - "statusText": { - "type": "string" - }, - "name": { - "type": "string" - }, - "mimeType": { - "type": "string" - }, - "method": { - "type": "string" - }, - "headers": { - "type": "array", - "items": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "value": { - "type": "string" - } - }, - "required": [ - "name", - "value" - ], - "additionalProperties": false - } - }, - "meta": { - "$ref": "#/anyOf/0/properties/meta" - } - }, - "required": [ - "type", - "body", - "statusCode", - "statusText", - "name", - "mimeType", - "method", - "headers", - "meta" - ], - "additionalProperties": false - } - } - }, - "required": [ - "type", - "url" - ], - "additionalProperties": false - }, - { - "type": "object", - "properties": { - "type": { - "type": "string", - "const": "environment.insomnia.rest/5.0" - }, - "meta": { - "$ref": "#/anyOf/0/properties/meta" - }, - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "environments": { - "type": "array", - "items": { - "$ref": "#/anyOf/0/properties/environments/items" - } - } - }, - "required": [ - "type", - "environments" - ], - "additionalProperties": false - } - ], - "$schema": "http://json-schema.org/draft-07/schema#" -} \ No newline at end of file diff --git a/packages/insomnia/example.json b/packages/insomnia/example.json deleted file mode 100644 index 32f2227f74..0000000000 --- a/packages/insomnia/example.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "$schema": "https://gist.githubusercontent.com/gatzjames/112872c2bdd372a18bc5a7ede34a20fe/raw/a74d082ff8ed7ea7fe6043d60f1f0d6941e4d408/collection-schema-example.json", - "collection": [ - { - "type": "Request", - }, - { - "type": "RequestGroup", - "children": [ - { - "type": "Request", - }, - { - "type": "Request", - } - ] - } - ] -} diff --git a/packages/insomnia/example.yaml b/packages/insomnia/example.yaml deleted file mode 100644 index a65953c163..0000000000 --- a/packages/insomnia/example.yaml +++ /dev/null @@ -1,634 +0,0 @@ -# yaml-language-server: $schema=https://gist.githubusercontent.com/gatzjames/112872c2bdd372a18bc5a7ede34a20fe/raw/7b3d01a39774c19a3a16e728483c4e0be3a1bdd4/insomnia-schema.json -type: spec.insomnia.rest/5.0 -collection: - - name: Example - description: An example collection - children: - - name: GET /example - url: https://example.com - method: GET - description: An example request -spec: - contents: - openapi: 3.0.0 - info: - description: "This is a sample server Petstore server. You can find out more about - Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, - #swagger](http://swagger.io/irc/). For this sample, you can use the api key - 'special-key' to test the authorization filters." - version: 1.0.2 - title: Swagger Petstore - termsOfService: http://swagger.io/terms/ - contact: - email: apiteam@swagger.io - license: - name: Apache 2.0 - url: http://www.apache.org/licenses/LICENSE-2.0.html - tags: - - name: pet - description: Everything about your Pets - externalDocs: - description: Find out more - url: http://swagger.io - - name: store - description: Access to Petstore orders - - name: user - description: Operations about user - externalDocs: - description: Find out more about our store - url: http://swagger.io - paths: - /pet: - post: - tags: - - pet - summary: Add a new pet to the store - description: "" - operationId: addPet - requestBody: - $ref: "#/components/requestBodies/Pet" - responses: - "405": - description: Invalid input - put: - tags: - - pet - summary: Update an existing pet - description: "" - operationId: updatePet - requestBody: - $ref: "#/components/requestBodies/Pet" - responses: - "400": - description: Invalid ID supplied - "404": - description: Pet not found - "405": - description: Validation exception - /pet/findByStatus: - get: - tags: - - pet - summary: Finds Pets by status - description: Multiple status values can be provided with comma separated strings - operationId: findPetsByStatus - parameters: - - name: status - in: query - description: Status values that need to be considered for filter - required: true - explode: true - schema: - type: array - items: - type: string - enum: - - available - - pending - - sold - default: available - responses: - "200": - description: successful operation - content: - application/xml: - schema: - type: array - items: - $ref: "#/components/schemas/Pet" - application/json: - schema: - type: array - items: - $ref: "#/components/schemas/Pet" - "400": - description: Invalid status value - /pet/findByTags: - get: - tags: - - pet - summary: Finds Pets by tags - description: Multiple tags can be provided with comma separated strings. Use tag1, - tag2, tag3 for testing. - operationId: findPetsByTags - parameters: - - name: tags - in: query - description: Tags to filter by - required: true - explode: true - schema: - type: array - items: - type: string - responses: - "200": - description: successful operation - content: - application/xml: - schema: - type: array - items: - $ref: "#/components/schemas/Pet" - application/json: - schema: - type: array - items: - $ref: "#/components/schemas/Pet" - "400": - description: Invalid tag value - deprecated: true - "/pet/{petId}": - get: - tags: - - pet - summary: Find pet by ID - description: Returns a single pet - operationId: getPetById - parameters: - - name: petId - in: path - description: ID of pet to return - required: true - schema: - type: integer - format: int64 - responses: - "200": - description: successful operation - content: - application/xml: - schema: - $ref: "#/components/schemas/Pet" - application/json: - schema: - $ref: "#/components/schemas/Pet" - "400": - description: Invalid ID supplied - "404": - description: Pet not found - post: - tags: - - pet - summary: Updates a pet in the store with form data - description: "" - operationId: updatePetWithForm - parameters: - - name: petId - in: path - description: ID of pet that needs to be updated - required: true - schema: - type: integer - format: int64 - requestBody: - content: - application/x-www-form-urlencoded: - schema: - type: object - properties: - name: - description: Updated name of the pet - type: string - status: - description: Updated status of the pet - type: string - responses: - "405": - description: Invalid input - delete: - tags: - - pet - summary: Deletes a pet - description: "" - operationId: deletePet - parameters: - - name: api_key - in: header - required: false - schema: - type: string - - name: petId - in: path - description: Pet id to delete - required: true - schema: - type: integer - format: int64 - responses: - "400": - description: Invalid ID supplied - "404": - description: Pet not found - /store/inventory: - get: - tags: - - store - summary: Returns pet inventories by status - description: Returns a map of status codes to quantities - operationId: getInventory - responses: - "200": - description: successful operation - content: - application/json: - schema: - type: object - additionalProperties: - type: integer - format: int32 - /store/order: - post: - tags: - - store - summary: Place an order for a pet - description: "" - operationId: placeOrder - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/Order" - description: order placed for purchasing the pet - required: true - responses: - "200": - description: successful operation - content: - application/xml: - schema: - $ref: "#/components/schemas/Order" - application/json: - schema: - $ref: "#/components/schemas/Order" - "400": - description: Invalid Order - "/store/order/{orderId}": - get: - tags: - - store - summary: Find purchase order by ID - description: For valid response try integer IDs with value >= 1 and <= 10. Other - values will generated exceptions - operationId: getOrderById - parameters: - - name: orderId - in: path - description: ID of pet that needs to be fetched - required: true - schema: - type: integer - format: int64 - minimum: 1 - maximum: 10 - responses: - "200": - description: successful operation - content: - application/xml: - schema: - $ref: "#/components/schemas/Order" - application/json: - schema: - $ref: "#/components/schemas/Order" - "400": - description: Invalid ID supplied - "404": - description: Order not found - delete: - tags: - - store - summary: Delete purchase order by ID - description: For valid response try integer IDs with positive integer value. Negative - or non-integer values will generate API errors - operationId: deleteOrder - parameters: - - name: orderId - in: path - description: ID of the order that needs to be deleted - required: true - schema: - type: integer - format: int64 - minimum: 1 - responses: - "400": - description: Invalid ID supplied - "404": - description: Order not found - /user: - post: - tags: - - user - summary: Create user - 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 - /user/createWithArray: - post: - tags: - - user - summary: Creates list of users with given input array - description: "" - operationId: createUsersWithArrayInput - requestBody: - $ref: "#/components/requestBodies/UserArray" - responses: - default: - description: successful operation - /user/createWithList: - post: - tags: - - user - summary: Creates list of users with given input array - description: "" - operationId: createUsersWithListInput - requestBody: - $ref: "#/components/requestBodies/UserArray" - responses: - default: - description: successful operation - /user/login: - get: - tags: - - user - summary: Logs user into the system - description: "" - operationId: loginUser - parameters: - - name: username - in: query - description: The user name for login - required: true - schema: - type: string - - name: password - in: query - description: The password for login in clear text - required: true - schema: - type: string - responses: - "200": - description: successful operation - headers: - X-Rate-Limit: - description: calls per hour allowed by the user - schema: - type: integer - format: int32 - X-Expires-After: - description: date in UTC when token expires - schema: - type: string - format: date-time - content: - application/xml: - schema: - type: string - application/json: - schema: - type: string - "400": - description: Invalid username/password supplied - /user/logout: - get: - tags: - - user - summary: Logs out current logged in user session - description: "" - operationId: logoutUser - responses: - default: - description: successful operation - "/user/{username}": - get: - tags: - - user - summary: Get user by user name - description: "" - operationId: getUserByName - parameters: - - name: username - in: path - description: "The name that needs to be fetched. Use user1 for testing. " - required: true - schema: - type: string - responses: - "200": - description: successful operation - content: - application/xml: - schema: - $ref: "#/components/schemas/User" - application/json: - schema: - $ref: "#/components/schemas/User" - "400": - description: Invalid username supplied - "404": - description: User not found - put: - tags: - - user - summary: Updated user - description: This can only be done by the logged in user. - operationId: updateUser - parameters: - - name: username - in: path - description: name that need to be updated - required: true - schema: - type: string - 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 - delete: - tags: - - user - summary: Delete user - description: This can only be done by the logged in user. - operationId: deleteUser - parameters: - - name: username - in: path - description: The name that needs to be deleted - required: true - schema: - type: string - responses: - "400": - description: Invalid username supplied - "404": - description: User not found - externalDocs: - description: Find out more about Swagger - url: http://swagger.io - servers: - - url: https://petstore.swagger.io/v2 - components: - requestBodies: - UserArray: - content: - application/json: - schema: - type: array - items: - $ref: "#/components/schemas/User" - description: List of user object - 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 - schemas: - Order: - type: object - properties: - id: - type: integer - format: int64 - petId: - type: integer - format: int64 - quantity: - type: integer - format: int32 - shipDate: - type: string - format: date-time - status: - type: string - description: Order Status - enum: - - placed - - approved - - delivered - complete: - type: boolean - default: false - xml: - name: Order - User: - type: object - properties: - id: - type: integer - format: int64 - username: - type: string - firstName: - type: string - lastName: - type: string - email: - type: string - password: - type: string - phone: - type: string - userStatus: - type: integer - format: int32 - description: User Status - xml: - name: User - Category: - type: object - properties: - id: - type: integer - format: int64 - name: - type: string - xml: - name: Category - Tag: - type: object - properties: - id: - type: integer - format: int64 - name: - type: string - xml: - name: Tag - Pet: - type: object - required: - - name - - photoUrls - properties: - id: - type: integer - format: int64 - category: - $ref: "#/components/schemas/Category" - name: - type: string - example: doggie - photoUrls: - type: array - xml: - name: photoUrl - wrapped: true - items: - type: string - tags: - type: array - xml: - name: tag - wrapped: true - items: - $ref: "#/components/schemas/Tag" - status: - type: string - description: pet status in the store - enum: - - available - - pending - - sold - xml: - name: Pet - ApiResponse: - type: object - properties: - code: - type: integer - format: int32 - type: - type: string - message: - type: string -testSuites: - - name: Example - tests: - - name: GET /example - code: 'insomnia.send("GET /example")' - requestId: ''