{ "swagger": "2.0", "x-global-options": { "go_package": "kwms3-api" }, "x-extensions": [ { "base": "google.protobuf.MethodOptions", "fields": [ { "name": "role", "type": "string", "number": 50001 }, { "name": "visibility", "type": "string", "number": 50002 }, { "name": "timeout", "type": "int32", "number": 50003 } ] } ], "info": { "version": "Beta 1.0.0", "title": "SWAGGER STORER", "description": "A sample API that uses a STORER as an example to demonstrate features in the swagger-2.0 specification", "termsOfService": "http://swagger.io/terms/", "contact": { "name": "API Team", "email": "sample.com", "url": "http://sample.com" }, "license": { "name": "Apache 2.0", "url": "https://www.apache.org/licenses/LICENSE-2.0.html" } }, "host": "sample.com:8002", "tags": [ { "name": "storer", "description": "All about Storer" }, { "name": "edi", "description": "All about Edi" } ], "schemes": [ "http", "https" ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "paths": { "/storer": { "get": { "tags": [ "storer" ], "description": "This function return all storer detail.", "operationId": "allstorerHandler", "parameters": [ { "name": "pageNumber", "in": "query", "description": "Request Page Number", "required": false, "type": "integer", "format": "int32" }, { "name": "pageSize", "in": "query", "description": "The Number Item Return Per Page", "required": false, "type": "integer", "format": "int32" } ], "responses": { "200": { "description": "List Storer Response", "schema": { "$ref": "#/definitions/ListStorerResponse" } }, "400": { "$ref": "#/responses/Unauthorized" }, "404": { "$ref": "#/responses/NotFound" } } } } }, "definitions": { "SearchPickRuleSetBody":{ "properties":{ "filters": { "type": "object", "properties":{ "id":{ "type":"string", "example":"10,20,30" }, "storerId":{ "type":"string", "x-nullable":false, "example":"1234|2412" } } }, "sort": { "type":"array", "items":{ "type":"string", "example":"-Descs" } } } }, "ListStorerResponse": { "type": "object", "properties": { "pageInfo": { "$ref":"#/definitions/PageInfoModel" }, "data": { "type": "array", "items": { "$ref":"#/definitions/StorerResponse" } } } }, "PageInfoModel":{ "type": "object", "properties": { "totalResultCount": { "type": "integer", "format": "int32" }, "pageResultCount": { "type": "integer", "format": "int32" }, "continueToken":{ "type":"string", "example":"continueToken" } } }, "StorerResponse": { "type": "object", "properties": { "storerId": { "type": "integer", "format": "int64" }, "storageTypeId": { "type": "integer", "format": "int64" }, "companyName": { "type": "string" }, "storerCode": { "type": "string" } },"additionalProperties": { "type" : "object" } }, "ErrorResponse": { "type": "object", "properties": { "code": { "type": "integer", "format": "int32" }, "message": { "type": "string" }, "status": { "type": "string" }, "detail": { "type": "array", "items": { "type": "object", "properties": { "type": { "type": "string" }, "value": { "type": "string" }, "code": { "type": "integer" }, "message": { "type": "string" } } } } } } }, "responses": { "NotFound": { "description": "The specified resource was not found", "schema": { "$ref": "#/definitions/ErrorResponse" } }, "Unauthorized": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/ErrorResponse" } }, "InvalidParameter": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/ErrorResponse" } } } }