Commit 5e82670e authored by nopara73's avatar nopara73 Committed by GitHub

Update ApiSpecification.md

parent 70be37e0
`/api/v1/`
`/api/v1/`
## Request/Response
RESPONSE: responsecode (`200` if success, `400`/`500` if error, see later)
HEADERS
`Content-Type:application/json`
## Errors
`400` series status codes for client issues & `500` series status codes for server issues.
API should standardize that all `400` series errors come with consumable JSON error representation.
BODY
```
{
"message" : "Something bad happened :(", // ex.Message maybe?
"description" : ex.ToString()
}
```
## Key Management
......@@ -32,25 +52,3 @@ GET /wallet/balance/[account1/account2] - Displays the balances of the specified
POST /wallet/build-transaction/[account1/account2] - Attempts to build a transaction with the specified wallet account
POST /wallet/send-transaction - Attempts to send a transaction
```
## Request/Response
RESPONSE: responsecode (`200` if success, `400`/`500` if error, see later
HEADERS
`Content-Type:application/json`
BODY: json
## Errors
`400` series status codes for client issues & `500` series status codes for server issues.
API should standardize that all `400` series errors come with consumable JSON error representation.
BODY
```
{
"message" : "Something bad happened :(", // ex.Message maybe?
"description" : ex.ToString()
}
```
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