From c4718fe0b311c87a4862711fb6f30864d8d9b262 Mon Sep 17 00:00:00 2001 From: josseed Date: Thu, 31 Mar 2022 21:09:57 +0000 Subject: [PATCH] Push from SwaggerHub. --- node-output/.swagger-codegen-ignore | 23 ++++ node-output/.swagger-codegen/VERSION | 1 + node-output/README.md | 0 node-output/swagger.yaml | 163 +++++++++++++++++++++++++++ 4 files changed, 187 insertions(+) create mode 100644 node-output/.swagger-codegen-ignore create mode 100644 node-output/.swagger-codegen/VERSION create mode 100644 node-output/README.md create mode 100644 node-output/swagger.yaml diff --git a/node-output/.swagger-codegen-ignore b/node-output/.swagger-codegen-ignore new file mode 100644 index 0000000..c5fa491 --- /dev/null +++ b/node-output/.swagger-codegen-ignore @@ -0,0 +1,23 @@ +# Swagger Codegen Ignore +# Generated by swagger-codegen https://github.com/swagger-api/swagger-codegen + +# Use this file to prevent files from being overwritten by the generator. +# The patterns follow closely to .gitignore or .dockerignore. + +# As an example, the C# client generator defines ApiClient.cs. +# You can make changes and tell Swagger Codgen to ignore just this file by uncommenting the following line: +#ApiClient.cs + +# You can match any string of characters against a directory, file or extension with a single asterisk (*): +#foo/*/qux +# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux + +# You can recursively match patterns against a directory, file or extension with a double asterisk (**): +#foo/**/qux +# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux + +# You can also negate patterns with an exclamation (!). +# For example, you can ignore all files in a docs folder with the file extension .md: +#docs/*.md +# Then explicitly reverse the ignore rule for a single file: +#!docs/README.md diff --git a/node-output/.swagger-codegen/VERSION b/node-output/.swagger-codegen/VERSION new file mode 100644 index 0000000..1098afd --- /dev/null +++ b/node-output/.swagger-codegen/VERSION @@ -0,0 +1 @@ +3.0.33 \ No newline at end of file diff --git a/node-output/README.md b/node-output/README.md new file mode 100644 index 0000000..e69de29 diff --git a/node-output/swagger.yaml b/node-output/swagger.yaml new file mode 100644 index 0000000..4d32efc --- /dev/null +++ b/node-output/swagger.yaml @@ -0,0 +1,163 @@ +{ + "openapi" : "3.0.0", + "info" : { + "title" : "Simple Inventory API", + "description" : "This is a simple API", + "contact" : { + "email" : "you@your-company.com" + }, + "license" : { + "name" : "Apache 2.0", + "url" : "http://www.apache.org/licenses/LICENSE-2.0.html" + }, + "version" : "1.0.0" + }, + "servers" : [ { + "url" : "https://virtserver.swaggerhub.com/opting/test2/1.0.0", + "description" : "SwaggerHub API Auto Mocking" + } ], + "tags" : [ { + "name" : "admins", + "description" : "Secured Admin-only calls" + }, { + "name" : "developers", + "description" : "Operations available to regular developers" + } ], + "paths" : { + "/inventory" : { + "get" : { + "tags" : [ "developers" ], + "summary" : "searches inventory", + "description" : "By passing in the appropriate options, you can search for\navailable inventory in the system\n", + "operationId" : "searchInventory", + "parameters" : [ { + "name" : "searchString", + "in" : "query", + "description" : "pass an optional search string for looking up inventory", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string" + } + }, { + "name" : "skip", + "in" : "query", + "description" : "number of records to skip for pagination", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "minimum" : 0, + "type" : "integer", + "format" : "int32" + } + }, { + "name" : "limit", + "in" : "query", + "description" : "maximum number of records to return", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "maximum" : 50, + "minimum" : 0, + "type" : "integer", + "format" : "int32" + } + } ], + "responses" : { + "200" : { + "description" : "search results matching criteria", + "content" : { + "application/json" : { + "schema" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/InventoryItem" + } + } + } + } + }, + "400" : { + "description" : "bad input parameter" + } + } + }, + "post" : { + "tags" : [ "admins" ], + "summary" : "adds an inventory item", + "description" : "Adds an item to the system", + "operationId" : "addInventory", + "requestBody" : { + "description" : "Inventory item to add", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/InventoryItem" + } + } + } + }, + "responses" : { + "201" : { + "description" : "item created" + }, + "400" : { + "description" : "invalid input, object invalid" + }, + "409" : { + "description" : "an existing item already exists" + } + } + } + } + }, + "components" : { + "schemas" : { + "InventoryItem" : { + "required" : [ "id", "manufacturer", "name", "releaseDate" ], + "type" : "object", + "properties" : { + "id" : { + "type" : "string", + "format" : "uuid", + "example" : "d290f1ee-6c54-4b01-90e6-d701748f0851" + }, + "name" : { + "type" : "string", + "example" : "Widget Adapter" + }, + "releaseDate" : { + "type" : "string", + "format" : "date-time", + "example" : "2016-08-29T09:12:33.001Z" + }, + "manufacturer" : { + "$ref" : "#/components/schemas/Manufacturer" + } + } + }, + "Manufacturer" : { + "required" : [ "name" ], + "type" : "object", + "properties" : { + "name" : { + "type" : "string", + "example" : "ACME Corporation" + }, + "homePage" : { + "type" : "string", + "format" : "url", + "example" : "https://www.acme-corp.com/" + }, + "phone" : { + "type" : "string", + "example" : "408-867-5309" + } + } + } + } + } +} \ No newline at end of file