Commit edacd605 authored by nopara73's avatar nopara73 Committed by GitHub

Update ApiSpecification.md

parent 5e82670e
......@@ -15,11 +15,44 @@ API should standardize that all `400` series errors come with consumable JSON er
BODY
```
{
"message" : "Something bad happened :(", // ex.Message maybe?
"success" : "false",
"message" : "something bad happened", // ex.Message maybe?
"description" : ex.ToString()
}
```
### wallet is not created
This error message comes at all request if the wallet is not created yet, except
- `POST /wallet/create`
- `POST /wallet/recover`
- `POST /wallet/send-transaction`
```
{
"success" : "false",
"message" : "wallet is not created",
"description" : ""
}
```
### wallet is not decrypted
This error message comes at all request if the wallet is not loaded yet, except
- `POST /wallet/create`
- `POST /wallet/recover`
- `POST /wallet/send-transaction`
- `POST /wallet/load`
- `DELETE /wallet`
```
{
"success" : "false",
"message" : "wallet is not decrypted",
"description" : ""
}
```
## Key Management
```
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment