Created
October 11, 2024 19:12
-
-
Save decebal/974c6c137f04ff203dbee287e6b7941a to your computer and use it in GitHub Desktop.
Open Api converstion test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
openapi: 3.0.0 | |
servers: | |
- url: http://localhost/v1 | |
info: | |
title: CrypDefiWallet | |
version: 1.0.0' | |
components: | |
schemas: | |
Wallet: | |
type: object | |
properties: | |
account: | |
type: string | |
name: | |
type: string | |
required: | |
- account | |
- name | |
WalletInput: | |
type: object | |
properties: | |
name: | |
type: string | |
required: | |
- name | |
SignPayloadInput: | |
type: object | |
properties: | |
payload: | |
type: string | |
required: | |
- payload | |
GenericResponse: | |
type: object | |
properties: | |
status: | |
type: string | |
message: | |
type: string | |
required: | |
- status | |
paths: | |
/: | |
summary: The application health check | |
get: | |
responses: | |
'200': | |
description: Successful health check | |
content: | |
application/json: | |
schema: | |
type: object | |
properties: | |
status: | |
type: string | |
'500': | |
description: Failed health check | |
content: | |
application/json: | |
schema: | |
type: object | |
properties: | |
status: | |
type: string | |
/wallets: | |
get: | |
responses: | |
'200': | |
description: List existing wallets | |
content: | |
application/json: | |
schema: | |
type: object | |
properties: | |
wallets: | |
type: array | |
items: | |
$ref: '#/components/schemas/Wallet' | |
post: | |
requestBody: | |
content: | |
application/json: | |
schema: | |
$ref: '#/components/schemas/WalletInput' | |
responses: | |
'200': | |
description: Successfully created a Wallet | |
content: | |
application/json: | |
schema: | |
$ref: '#/components/schemas/Wallet' | |
/wallets/{account}/sign: | |
parameters: | |
- name: account | |
in: path | |
required: true | |
schema: | |
type: string | |
post: | |
requestBody: | |
content: | |
application/json: | |
schema: | |
$ref: '#/components/schemas/SignPayloadInput' | |
responses: | |
'200': | |
description: Successfully created a Wallet | |
content: | |
application/json: | |
schema: | |
$ref: '#/components/schemas/GenericResponse' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment