Add Header curl examples
MODIFY
docs/api_specs/includes/informational_api_specs.md
docs/api_specs/includes/informational_api_specs.md
@@ -6,7 +6,7 @@ API specification of the Watcher's Informational Service
## Account - Get Balance
```shell
-curl http://localhost:4000/account.get_balance -d '{"address": "b3256026863eb6ae5b06fa396ab09069784ea8ea"}'
+curl -X POST -H "Content-Type: application/json" http://localhost:4000/account.get_balance -d '{"address": "b3256026863eb6ae5b06fa396ab09069784ea8ea"}'
```
```elixir
@@ -53,7 +53,7 @@ address | Hex encoded string | Address of the funds owner
## Account - Get Utxos
```shell
-curl http://localhost:4000/account.get_utxos -d '{"address": "b3256026863eb6ae5b06fa396ab09069784ea8ea", "limit": 10}'
+curl -X POST -H "Content-Type: application/json" http://localhost:4000/account.get_utxos -d '{"address": "b3256026863eb6ae5b06fa396ab09069784ea8ea", "limit": 10}'
```
```elixir
@@ -101,7 +101,7 @@ limit | Integer | Maximum number of utxos to return (default 200)
## Account - Get Transactions
```shell
-curl http://localhost:4000/account.get_transactions -d '{"address": "b3256026863eb6ae5b06fa396ab09069784ea8ea"}'
+curl -X POST -H "Content-Type: application/json" http://localhost:4000/account.get_transactions -d '{"address": "b3256026863eb6ae5b06fa396ab09069784ea8ea"}'
```
```elixir
@@ -154,7 +154,7 @@ limit | Integer | Maximum number of transactions to return (default 200)
## Transaction - Get All
```shell
-curl http://localhost:4000/transaction.all -d '{"block": "100", "limit": 50}'
+curl -X POST -H "Content-Type: application/json" http://localhost:4000/transaction.all -d '{"block": "100", "limit": 50}'
```
```elixir
@@ -221,7 +221,7 @@ limit | Integer | Maximum number of transactions to return (default 200)
## Transaction - Get
```shell
-curl http://localhost:4000/transaction.get -d '{"id": "bdf562c24ace032176e27621073df58ce1c6f65de3b5932343b70ba03c72132d"}'
+curl -X POST -H "Content-Type: application/json" http://localhost:4000/transaction.get -d '{"id": "bdf562c24ace032176e27621073df58ce1c6f65de3b5932343b70ba03c72132d"}'
```
```elixir
@@ -296,7 +296,7 @@ id | Hex encoded string | Hash of the Plasma transaction
## Block - Get all
```shell
-curl http://localhost:4000/block.all -d '{"limit": 100}'
+curl -X POST -H "Content-Type: application/json" http://localhost:4000/block.all -d '{"limit": 100}'
```
```elixir
@@ -348,7 +348,7 @@ limit | Integer | Maximum number of transactions to return (default 200)
## Block - Get
```shell
-curl http://localhost:4000/block.get -d '{"id": "bdf562c24ace032176e27621073df58ce1c6f65de3b5932343b70ba03c72132d"}'
+curl -X POST -H "Content-Type: application/json" http://localhost:4000/block.get -d '{"id": "bdf562c24ace032176e27621073df58ce1c6f65de3b5932343b70ba03c72132d"}'
```
```elixir

MODIFY
docs/api_specs/includes/operator_api_specs.md
docs/api_specs/includes/operator_api_specs.md
@@ -47,7 +47,7 @@ transaction | Hex encoded string | Signed transaction RLP-encoded to bytes and H
## Get Block by id
```shell
-curl http://localhost:4000/block.get -d '{"hash": "2733e50f526ec2fa19a22b31e8ed50f23cd1fdf94c9154ed3a7609a2f1ff981f}'
+curl -X POST -H "Content-Type: application/json" http://localhost:9656/block.get -d '{"hash": "2733e50f526ec2fa19a22b31e8ed50f23cd1fdf94c9154ed3a7609a2f1ff981f}'
```
```elixir

MODIFY
docs/api_specs/includes/watcher_api_specs.md
docs/api_specs/includes/watcher_api_specs.md
@@ -5,7 +5,7 @@ API specification of the Watcher's security-critical Service
## Account - Get Utxos
```shell
-curl http://localhost:4000/account.get_utxos -d '{"address": "b3256026863eb6ae5b06fa396ab09069784ea8ea", "limit": 10}'
+curl -X POST -H "Content-Type: application/json" http://localhost:4000/account.get_utxos -d '{"address": "b3256026863eb6ae5b06fa396ab09069784ea8ea", "limit": 10}'
```
```elixir
@@ -55,7 +55,7 @@ limit | Integer | Maximum number of utxos to return (default 200)
## Utxo - Get Challenge Data
```shell
-curl http://localhost:4000/utxo.get_challenge_data -d '{"utxo_pos": "10001001"}'
+curl -X POST -H "Content-Type: application/json" http://localhost:4000/utxo.get_challenge_data -d '{"utxo_pos": "10001001"}'
```
```elixir
@@ -99,7 +99,7 @@ utxo_pos | Integer | Utxo position (encoded as single integer, the way contract
## Utxo - Get Exit Data
```shell
-curl http://localhost:4000/utxo.get_exit_data -d '{"utxo_pos": "10001001"}'
+curl -X POST -H "Content-Type: application/json" http://localhost:4000/utxo.get_exit_data -d '{"utxo_pos": "10001001"}'
```
```elixir
@@ -142,7 +142,7 @@ utxo_pos | Integer | Utxo position (encoded as single integer, the way contract
## Transaction - Submit
```shell
-curl http://localhost:4000/transaction.submit -d '{"transaction": "f8d083015ba98080808080940000..."}'
+curl -X POST -H "Content-Type: application/json" http://localhost:4000/transaction.submit -d '{"transaction": "f8d083015ba98080808080940000..."}'
```
```elixir
@@ -185,7 +185,7 @@ transaction | Hex encoded string | Signed transaction RLP-encoded to bytes and H
## Status
```shell
-curl -X POST http://localhost:4000/status
+curl -X POST -H "Content-Type: application/json" http://localhost:4000/status
```
```elixir
@@ -436,7 +436,7 @@ outputs | Integer array | A list of invalid piggybacked outputs
## Inflight Exit - Get Exit Data
```shell
-curl http://localhost:4000/inflight_exit.get_data -d '{"txbytes": "F317010180808080940000..."}'
+curl -X POST -H "Content-Type: application/json" http://localhost:4000/inflight_exit.get_data -d '{"txbytes": "F317010180808080940000..."}'
```
```elixir
@@ -485,7 +485,7 @@ txbytes | Hex encoded string | The in-flight transaction
## Inflight Exit - Get Competitor
```shell
-curl http://localhost:4000/inflight_exit.get_competitor -d '{"txbytes": "F3170101C0940000..."}'
+curl -X POST -H "Content-Type: application/json" http://localhost:4000/inflight_exit.get_competitor -d '{"txbytes": "F3170101C0940000..."}'
```
```elixir
@@ -531,7 +531,7 @@ txbytes | Hex encoded string | The in-flight transaction
## Inflight Exit - Show Canonical
```shell
-curl http://localhost:4000/inflight_exit.prove_canonical -d '{"txbytes": "F3170101C0940000..."}'
+curl -X POST -H "Content-Type: application/json" http://localhost:4000/inflight_exit.prove_canonical -d '{"txbytes": "F3170101C0940000..."}'
```
```elixir
@@ -573,7 +573,7 @@ txbytes | Hex encoded string | The in-flight transaction
## Inflight Exit - Get Input Challenge Data
```shell
-curl http://localhost:4000/inflight_exit.get_input_challenge_data -d '{"txbytes": "F3170101C0940000...", "input_index": 1}'
+curl -X POST -H "Content-Type: application/json" http://localhost:4000/inflight_exit.get_input_challenge_data -d '{"txbytes": "F3170101C0940000...", "input_index": 1}'
```
```elixir
@@ -618,7 +618,7 @@ input_index | Integer | The index of the invalid input
## Inflight Exit - Get Output Challenge Data
```shell
-curl http://localhost:4000/inflight_exit.get_output_challenge_data -d '{"txbytes": "F3170101C0940000...", "output_index": 0}'
+curl -X POST -H "Content-Type: application/json" http://localhost:4000/inflight_exit.get_output_challenge_data -d '{"txbytes": "F3170101C0940000...", "output_index": 0}'
```
```elixir

Add Header curl examples