Skip to content

Commit

Permalink
[spec] refs fibercrypto#6 - Add spec for POST /api/wallets
Browse files Browse the repository at this point in the history
  • Loading branch information
adriantpaez committed Mar 4, 2019
1 parent b23e5cf commit 08efd45
Showing 1 changed file with 28 additions and 1 deletion.
29 changes: 28 additions & 1 deletion spec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,31 @@ components:
format: int64
message:
type: string
paths:
paths:
/api/wallets:
post:
summary: Create wallet method.
description: Should create a new wallet (address) in the blockchain.

security:
- CsrfTokenAuth: []

responses:
'200':
description: The private key, public address and address context for the wallet created.
content:
application/json:
schema:
type: object
properties:
privateKey:
description: Private key, which will be used to sign transactions by the [POST] /api/sign
type: string
publicAddress:
description: Address which identifies the wallet in the blockchain
type: string
addressContext:
description: Any non security sensitive data associated with wallet. This context will be passed to [POST] /api/transactions/*. Can be empty.
type: string
default:
$ref : '#/components/schemas/genericError'

0 comments on commit 08efd45

Please sign in to comment.