{ "swagger": "2.0", "info": { "description": "Using AI to do something.", "title": "AI Service API", "contact": {}, "version": "1.0" }, "host": "localhost:8080", "basePath": "/v1", "paths": { "/currency/create": { "post": { "description": "Create currency", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Currency" ], "summary": "Create currency", "operationId": "CreateCurrency", "parameters": [ { "description": "Currency Create Request", "name": "body", "in": "body", "required": true, "schema": { "$ref": "#/definitions/currency.CreatedRequest" } } ], "responses": { "200": { "description": "OK", "schema": { "allOf": [ { "$ref": "#/definitions/http.Response" }, { "type": "object", "properties": { "data": { "$ref": "#/definitions/currency.Response" } } } ] } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/http.Response" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/http.Response" } } } } }, "/currency/delete/{id}": { "delete": { "description": "Delete currency", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Currency" ], "summary": "Delete currency", "operationId": "DeleteCurrency", "parameters": [ { "type": "string", "description": "ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "allOf": [ { "$ref": "#/definitions/http.Response" }, { "type": "object", "properties": { "data": { "$ref": "#/definitions/currency.Response" } } } ] } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/http.Response" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/http.Response" } } } } }, "/currency/detail/{id}": { "get": { "description": "Detail currency", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Currency" ], "summary": "Detail currency", "operationId": "DetailCurrency", "parameters": [ { "type": "string", "description": "ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "allOf": [ { "$ref": "#/definitions/http.Response" }, { "type": "object", "properties": { "data": { "$ref": "#/definitions/currency.Response" } } } ] } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/http.Response" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/http.Response" } } } } }, "/currency/list": { "get": { "description": "List currency", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Currency" ], "summary": "List currency", "operationId": "ListCurrency", "parameters": [ { "type": "integer", "description": "Limit", "name": "limit", "in": "query" }, { "type": "integer", "description": "Offset", "name": "offset", "in": "query" }, { "type": "string", "description": "FilterName", "name": "filterName", "in": "query" }, { "type": "string", "description": "SortFields", "name": "sortFields", "in": "query" }, { "type": "string", "description": "Dir", "name": "dir", "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { "allOf": [ { "$ref": "#/definitions/http.Response" }, { "type": "object", "properties": { "data": { "$ref": "#/definitions/currency.ResponseList" } } } ] } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/http.Response" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/http.Response" } } } } }, "/currency/update/{id}": { "put": { "description": "Update currency", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Currency" ], "summary": "Update currency", "operationId": "UpdateCurrency", "parameters": [ { "type": "string", "description": "ID", "name": "id", "in": "path", "required": true }, { "description": "Currency Update Request", "name": "body", "in": "body", "required": true, "schema": { "$ref": "#/definitions/currency.UpdatedRequest" } } ], "responses": { "200": { "description": "OK", "schema": { "allOf": [ { "$ref": "#/definitions/http.Response" }, { "type": "object", "properties": { "data": { "$ref": "#/definitions/currency.Response" } } } ] } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/http.Response" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/http.Response" } } } } }, "/group/create": { "post": { "description": "Create group", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Group" ], "summary": "Create group", "operationId": "CreateGroup", "parameters": [ { "description": "Group Create Request", "name": "body", "in": "body", "required": true, "schema": { "$ref": "#/definitions/group.CreatedRequest" } } ], "responses": { "200": { "description": "OK", "schema": { "allOf": [ { "$ref": "#/definitions/http.Response" }, { "type": "object", "properties": { "data": { "$ref": "#/definitions/group.Response" } } } ] } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/http.Response" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/http.Response" } } } } }, "/group/delete/{id}": { "delete": { "description": "Delete group", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Group" ], "summary": "Delete group", "operationId": "DeleteGroup", "parameters": [ { "type": "string", "description": "ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "allOf": [ { "$ref": "#/definitions/http.Response" }, { "type": "object", "properties": { "data": { "$ref": "#/definitions/group.Response" } } } ] } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/http.Response" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/http.Response" } } } } }, "/group/detail/{id}": { "get": { "description": "Detail group", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Group" ], "summary": "Detail group", "operationId": "DetailGroup", "parameters": [ { "type": "string", "description": "ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "allOf": [ { "$ref": "#/definitions/http.Response" }, { "type": "object", "properties": { "data": { "$ref": "#/definitions/group.Response" } } } ] } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/http.Response" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/http.Response" } } } } }, "/group/list": { "get": { "description": "List group", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Group" ], "summary": "List group", "operationId": "ListGroup", "parameters": [ { "type": "integer", "description": "Limit", "name": "limit", "in": "query" }, { "type": "integer", "description": "Offset", "name": "offset", "in": "query" }, { "type": "string", "description": "FilterName", "name": "filterName", "in": "query" }, { "type": "string", "description": "SortFields", "name": "sortFields", "in": "query" }, { "type": "string", "description": "Dir", "name": "dir", "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { "allOf": [ { "$ref": "#/definitions/http.Response" }, { "type": "object", "properties": { "data": { "$ref": "#/definitions/group.ResponseList" } } } ] } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/http.Response" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/http.Response" } } } } }, "/group/update/{id}": { "put": { "description": "Update group", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Group" ], "summary": "Update group", "operationId": "UpdateGroup", "parameters": [ { "type": "string", "description": "ID", "name": "id", "in": "path", "required": true }, { "description": "Group Update Request", "name": "body", "in": "body", "required": true, "schema": { "$ref": "#/definitions/group.UpdatedRequest" } } ], "responses": { "200": { "description": "OK", "schema": { "allOf": [ { "$ref": "#/definitions/http.Response" }, { "type": "object", "properties": { "data": { "$ref": "#/definitions/group.Response" } } } ] } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/http.Response" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/http.Response" } } } } }, "/role/create": { "post": { "description": "Create role", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Role" ], "summary": "Create role", "operationId": "CreateRole", "parameters": [ { "description": "Role Create Request", "name": "body", "in": "body", "required": true, "schema": { "$ref": "#/definitions/role.CreatedRequest" } } ], "responses": { "200": { "description": "OK", "schema": { "allOf": [ { "$ref": "#/definitions/http.Response" }, { "type": "object", "properties": { "data": { "$ref": "#/definitions/role.Response" } } } ] } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/http.Response" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/http.Response" } } } } }, "/role/delete/{id}": { "delete": { "description": "Delete role", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Role" ], "summary": "Delete role", "operationId": "DeleteRole", "parameters": [ { "type": "string", "description": "ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "allOf": [ { "$ref": "#/definitions/http.Response" }, { "type": "object", "properties": { "data": { "$ref": "#/definitions/role.Response" } } } ] } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/http.Response" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/http.Response" } } } } }, "/role/detail/{id}": { "get": { "description": "Detail role", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Role" ], "summary": "Detail role", "operationId": "DetailRole", "parameters": [ { "type": "string", "description": "ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "allOf": [ { "$ref": "#/definitions/http.Response" }, { "type": "object", "properties": { "data": { "$ref": "#/definitions/role.Response" } } } ] } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/http.Response" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/http.Response" } } } } }, "/role/list": { "get": { "description": "List role", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Role" ], "summary": "List role", "operationId": "ListRole", "parameters": [ { "type": "integer", "description": "Limit", "name": "limit", "in": "query" }, { "type": "integer", "description": "Offset", "name": "offset", "in": "query" }, { "type": "string", "description": "FilterName", "name": "filterName", "in": "query" }, { "type": "string", "description": "SortFields", "name": "sortFields", "in": "query" }, { "type": "string", "description": "Dir", "name": "dir", "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { "allOf": [ { "$ref": "#/definitions/http.Response" }, { "type": "object", "properties": { "data": { "$ref": "#/definitions/role.ResponseList" } } } ] } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/http.Response" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/http.Response" } } } } }, "/role/update/{id}": { "put": { "description": "Update role", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Role" ], "summary": "Update role", "operationId": "UpdateRole", "parameters": [ { "type": "string", "description": "ID", "name": "id", "in": "path", "required": true }, { "description": "Role Update Request", "name": "body", "in": "body", "required": true, "schema": { "$ref": "#/definitions/role.UpdatedRequest" } } ], "responses": { "200": { "description": "OK", "schema": { "allOf": [ { "$ref": "#/definitions/http.Response" }, { "type": "object", "properties": { "data": { "$ref": "#/definitions/role.Response" } } } ] } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/http.Response" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/http.Response" } } } } }, "/user/create": { "post": { "description": "Create user", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "User" ], "summary": "Create user", "operationId": "CreateUser", "parameters": [ { "description": "User Create Request", "name": "body", "in": "body", "required": true, "schema": { "$ref": "#/definitions/user.CreatedRequest" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/http.Response" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/http.Response" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/http.Response" } } } } }, "/user/delete/{id}": { "delete": { "description": "Delete user", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "User" ], "summary": "Delete user", "operationId": "DeleteUser", "parameters": [ { "type": "string", "description": "ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/http.Response" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/http.Response" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/http.Response" } } } } }, "/user/detail/{id}": { "get": { "description": "Detail user", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "User" ], "summary": "Detail user", "operationId": "DetailUser", "parameters": [ { "type": "string", "description": "ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/http.Response" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/http.Response" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/http.Response" } } } } }, "/user/list": { "get": { "description": "List user", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "User" ], "summary": "List user", "operationId": "ListUser", "parameters": [ { "type": "integer", "description": "Limit", "name": "limit", "in": "query" }, { "type": "integer", "description": "Offset", "name": "offset", "in": "query" }, { "type": "string", "description": "FilterName", "name": "filterName", "in": "query" }, { "type": "string", "description": "SortFields", "name": "sortFields", "in": "query" }, { "type": "string", "description": "Dir", "name": "dir", "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { "allOf": [ { "$ref": "#/definitions/http.Response" }, { "type": "object", "properties": { "data": { "$ref": "#/definitions/user.ResponseList" } } } ] } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/http.Response" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/http.Response" } } } } }, "/user/update/{id}": { "put": { "description": "Update user", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "User" ], "summary": "Update user", "operationId": "UpdateUser", "parameters": [ { "type": "string", "description": "ID", "name": "id", "in": "path", "required": true }, { "description": "User Update Request", "name": "body", "in": "body", "required": true, "schema": { "$ref": "#/definitions/user.UpdateRequest" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/http.Response" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/http.Response" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/http.Response" } } } } }, "/wallet/create": { "post": { "description": "Create wallet", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Wallet" ], "summary": "Create wallet", "operationId": "CreateWallet", "parameters": [ { "description": "Wallet Create Request", "name": "body", "in": "body", "required": true, "schema": { "$ref": "#/definitions/wallet.CreatedRequest" } } ], "responses": { "200": { "description": "OK", "schema": { "allOf": [ { "$ref": "#/definitions/http.Response" }, { "type": "object", "properties": { "data": { "$ref": "#/definitions/wallet.Response" } } } ] } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/http.Response" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/http.Response" } } } } }, "/wallet/delete/{id}": { "delete": { "description": "Delete wallet", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Wallet" ], "summary": "Delete wallet", "operationId": "DeleteWallet", "parameters": [ { "type": "string", "description": "ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "allOf": [ { "$ref": "#/definitions/http.Response" }, { "type": "object", "properties": { "data": { "$ref": "#/definitions/wallet.Response" } } } ] } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/http.Response" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/http.Response" } } } } }, "/wallet/detail/{id}": { "get": { "description": "Detail wallet", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Wallet" ], "summary": "Detail wallet", "operationId": "DetailWallet", "parameters": [ { "type": "string", "description": "ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "allOf": [ { "$ref": "#/definitions/http.Response" }, { "type": "object", "properties": { "data": { "$ref": "#/definitions/wallet.Response" } } } ] } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/http.Response" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/http.Response" } } } } }, "/wallet/list": { "get": { "description": "List wallet", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Wallet" ], "summary": "List wallet", "operationId": "ListWallet", "parameters": [ { "type": "integer", "description": "Limit", "name": "limit", "in": "query" }, { "type": "integer", "description": "Offset", "name": "offset", "in": "query" }, { "type": "string", "description": "FilterName", "name": "filterName", "in": "query" }, { "type": "string", "description": "SortFields", "name": "sortFields", "in": "query" }, { "type": "string", "description": "Dir", "name": "dir", "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { "allOf": [ { "$ref": "#/definitions/http.Response" }, { "type": "object", "properties": { "data": { "$ref": "#/definitions/wallet.ResponseList" } } } ] } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/http.Response" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/http.Response" } } } } }, "/wallet/update/{id}": { "put": { "description": "Update wallet", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Wallet" ], "summary": "Update wallet", "operationId": "UpdateWallet", "parameters": [ { "type": "string", "description": "ID", "name": "id", "in": "path", "required": true }, { "description": "Wallet Update Request", "name": "body", "in": "body", "required": true, "schema": { "$ref": "#/definitions/wallet.UpdatedRequest" } } ], "responses": { "200": { "description": "OK", "schema": { "allOf": [ { "$ref": "#/definitions/http.Response" }, { "type": "object", "properties": { "data": { "$ref": "#/definitions/wallet.Response" } } } ] } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/http.Response" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/http.Response" } } } } } }, "definitions": { "currency.CreatedRequest": { "type": "object", "properties": { "name": { "type": "string" }, "symbol": { "type": "string" } } }, "currency.Response": { "type": "object", "properties": { "createdAt": { "type": "string" }, "deletedAt": { "type": "string" }, "id": { "type": "string" }, "name": { "type": "string" }, "symbol": { "type": "string" }, "updatedAt": { "type": "string" }, "walletBalances": { "type": "array", "items": { "$ref": "#/definitions/wallet.BalancesResponse" } } } }, "currency.ResponseList": { "type": "object", "properties": { "items": { "type": "array", "items": { "$ref": "#/definitions/currency.Response" } }, "limit": { "type": "integer" }, "offset": { "type": "integer" }, "total": { "type": "integer" } } }, "currency.UpdatedRequest": { "type": "object", "properties": { "name": { "type": "string" }, "symbol": { "type": "string" } } }, "entity.Chain": { "type": "string", "enum": [ "None", "Bitcoin", "Ethereum", "Polygon" ], "x-enum-varnames": [ "None", "Bitcoin", "Ethereum", "Polygon" ] }, "group.CreatedRequest": { "type": "object", "required": [ "description", "name" ], "properties": { "description": { "type": "string", "example": "this is for group" }, "name": { "type": "string", "example": "GroupA" }, "ownerId": { "type": "string" } } }, "group.Response": { "type": "object", "properties": { "createdAt": { "type": "string" }, "deletedAt": { "type": "string" }, "description": { "type": "string" }, "id": { "type": "string" }, "name": { "type": "string" }, "ownerId": { "type": "string" }, "updatedAt": { "type": "string" }, "users": { "type": "array", "items": { "$ref": "#/definitions/user.Response" } } } }, "group.ResponseList": { "type": "object", "properties": { "items": { "type": "array", "items": { "$ref": "#/definitions/group.Response" } }, "limit": { "type": "integer" }, "offset": { "type": "integer" }, "total": { "type": "integer" } } }, "group.UpdatedRequest": { "type": "object", "required": [ "description", "name" ], "properties": { "description": { "type": "string", "example": "this is for admin role" }, "name": { "type": "string", "example": "admin" } } }, "http.Response": { "type": "object", "properties": { "code": { "type": "integer" }, "data": {}, "error": { "type": "string" } } }, "role.CreatedRequest": { "type": "object", "required": [ "description", "name", "permissions" ], "properties": { "description": { "type": "string", "example": "this is for admin role" }, "name": { "type": "string", "example": "admin" }, "permissions": { "type": "array", "items": { "type": "string" }, "example": [ "read:all", "write:all" ] } } }, "role.Response": { "type": "object", "properties": { "createdAt": { "type": "string" }, "deletedAt": { "type": "string" }, "description": { "type": "string" }, "id": { "type": "string" }, "name": { "type": "string" }, "permissions": { "type": "array", "items": { "type": "string" } }, "updatedAt": { "type": "string" }, "users": { "type": "array", "items": { "$ref": "#/definitions/user.Response" } } } }, "role.ResponseList": { "type": "object", "properties": { "items": { "type": "array", "items": { "$ref": "#/definitions/role.Response" } }, "limit": { "type": "integer" }, "offset": { "type": "integer" }, "total": { "type": "integer" } } }, "role.UpdatedRequest": { "type": "object", "required": [ "description", "name", "permissions" ], "properties": { "description": { "type": "string", "example": "this is for admin role" }, "name": { "type": "string", "example": "admin" }, "permissions": { "type": "array", "items": { "type": "string" }, "example": [ "read:all", "write:all" ] } } }, "user.CreatedRequest": { "type": "object", "properties": { "avatar": { "type": "string" }, "displayName": { "type": "string" }, "email": { "type": "string" }, "password": { "type": "string" }, "username": { "type": "string" } } }, "user.Response": { "type": "object", "properties": { "avatar": { "type": "string" }, "email": { "type": "string" }, "first_name": { "type": "string" }, "id": { "type": "string" }, "last_name": { "type": "string" }, "username": { "type": "string" } } }, "user.ResponseList": { "type": "object", "properties": { "items": { "type": "array", "items": { "$ref": "#/definitions/user.Response" } }, "limit": { "type": "integer" }, "offset": { "type": "integer" }, "total": { "type": "integer" } } }, "user.UpdateRequest": { "type": "object", "properties": { "avatar": { "type": "string" }, "displayName": { "type": "string" } } }, "wallet.BalancesResponse": { "type": "object", "properties": { "balance": { "type": "integer" }, "currencyId": { "type": "string" }, "decimal": { "type": "integer" }, "id": { "type": "string" }, "walletId": { "type": "string" } } }, "wallet.CreatedRequest": { "type": "object", "required": [ "chain", "description", "name", "userId" ], "properties": { "chain": { "allOf": [ { "$ref": "#/definitions/entity.Chain" } ], "example": "Polygon" }, "description": { "type": "string", "example": "this is for admin wallet" }, "name": { "type": "string", "example": "admin" }, "userId": { "type": "string", "example": "abcdef2nopabcdef2nop" } } }, "wallet.Response": { "type": "object", "required": [ "chain", "userId" ], "properties": { "chain": { "allOf": [ { "$ref": "#/definitions/entity.Chain" } ], "example": "Polygon" }, "createdAt": { "type": "string" }, "deletedAt": { "type": "string" }, "description": { "type": "string" }, "id": { "type": "string" }, "name": { "type": "string" }, "updatedAt": { "type": "string" }, "userId": { "type": "string", "example": "abcd-efgh-ijkl-mnop" }, "walletBalances": { "type": "array", "items": { "$ref": "#/definitions/wallet.BalancesResponse" } } } }, "wallet.ResponseList": { "type": "object", "properties": { "items": { "type": "array", "items": { "$ref": "#/definitions/wallet.Response" } }, "limit": { "type": "integer" }, "offset": { "type": "integer" }, "total": { "type": "integer" } } }, "wallet.UpdatedRequest": { "type": "object", "required": [ "chain", "description", "name", "userId" ], "properties": { "chain": { "allOf": [ { "$ref": "#/definitions/entity.Chain" } ], "example": "Polygon" }, "description": { "type": "string", "example": "this is for admin wallet" }, "name": { "type": "string", "example": "admin" }, "userId": { "type": "string", "example": "abcd-efgh-ijkl-mnop" } } } } }