{ "swagger": "2.0", "info": { "title": "Acloset", "version": "1.0", "contact": { "name": "minsoo shin", "url": "https://github.com/Minsoo-Shin/open_api_gen", "email": "alstn5038@gmail.com" }, "license": { "name": "BSD 3-Clause License", "url": "https://github.com/Minsoo-Shin/open_api_gen/LICENSE" } }, "tags": [ { "name": "UserService" } ], "schemes": [ "http", "https" ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "paths": { "/api/v1/users": { "get": { "summary": "Fetch User", "description": "Fetch User With Filter", "operationId": "UserService_Fetch", "responses": { "200": { "description": "A successful response.", "schema": { "$ref": "#/definitions/v1UserInfo" } }, "default": { "description": "An unexpected error response.", "schema": { "$ref": "#/definitions/rpcStatus" } } }, "parameters": [ { "name": "ids", "in": "query", "required": false, "type": "array", "items": { "type": "string", "format": "uint64" }, "collectionFormat": "multi" }, { "name": "nickname", "in": "query", "required": false, "type": "array", "items": { "type": "string" }, "collectionFormat": "multi" }, { "name": "email", "in": "query", "required": false, "type": "string" } ], "tags": [ "Users" ] }, "post": { "summary": "Create User", "description": "Create User", "operationId": "UserService_Create", "responses": { "200": { "description": "A successful response.", "schema": { "$ref": "#/definitions/v1UserInfo" } }, "default": { "description": "An unexpected error response.", "schema": { "$ref": "#/definitions/rpcStatus" } } }, "parameters": [ { "name": "body", "in": "body", "required": true, "schema": { "$ref": "#/definitions/v1UserRequest" } } ], "tags": [ "Users" ] } } }, "definitions": { "protobufAny": { "type": "object", "properties": { "@type": { "type": "string" } }, "additionalProperties": {} }, "rpcStatus": { "type": "object", "properties": { "code": { "type": "integer", "format": "int32" }, "message": { "type": "string" }, "details": { "type": "array", "items": { "type": "object", "$ref": "#/definitions/protobufAny" } } } }, "v1Error": { "type": "object", "properties": { "code": { "type": "integer", "format": "int64" }, "message": { "type": "string" } } }, "v1User": { "type": "object", "properties": { "id": { "type": "string", "format": "int64" }, "nickname": { "type": "string" }, "email": { "type": "string" }, "password": { "type": "string" } } }, "v1UserInfo": { "type": "object", "properties": { "error": { "$ref": "#/definitions/v1Error" }, "users": { "type": "array", "items": { "type": "object", "$ref": "#/definitions/v1User" } } } }, "v1UserRequest": { "type": "object", "properties": { "nickname": { "type": "string" }, "email": { "type": "string" }, "password": { "type": "string" } } } } }