Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
secondl1ght committed Oct 16, 2024
1 parent f73848e commit 91bb3e5
Showing 1 changed file with 25 additions and 24 deletions.
49 changes: 25 additions & 24 deletions src/admin-api/methods.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,34 +8,35 @@
```bash
curl --data-binary '{"jsonrpc": "2.0", "method": "search", "params": {"password": "xxx", "query": "query", "id": 1}' https://api.btcmap.org/rpc
```

Example response to a `berlin` query param :

```json
{
"id": 1,
"jsonrpc": "2.0",
"result":[
{
"id": 155,
"name": "Bitcoin Berlin El Salvador",
"type": "area"
},
{
"id": 54,
"name": "Berlin 2140",
"type": "area"
},
{
"id": 257,
"name": "Einundzwanzig Berlin",
"type": "area"
},
{
"id": 77,
"name": "Bitcoin Berlin El Salvador",
"type": "area"
}
]
"id": 1,
"jsonrpc": "2.0",
"result": [
{
"id": 155,
"name": "Bitcoin Berlin El Salvador",
"type": "area"
},
{
"id": 54,
"name": "Berlin 2140",
"type": "area"
},
{
"id": 257,
"name": "Einundzwanzig Berlin",
"type": "area"
},
{
"id": 77,
"name": "Bitcoin Berlin El Salvador",
"type": "area"
}
]
}
```

Expand Down

0 comments on commit 91bb3e5

Please sign in to comment.