User Tools

Site Tools


bpq_api

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
bpq_api [2024/03/27 12:29] g7tajbpq_api [2024/03/27 12:39] (current) m0lte
Line 1: Line 1:
-BPQ has a simple and evolving api +Migrated to [[packet:bpq#rest_api]]
- +
-endpoints(note older versions were prefixed with 'get' (except request_token) +
- +
-/api/request_token +
-/api/ports +
-/api/nodes +
-/api/users +
-/api/info +
-/api/mheardport/<port#+
- +
-Requested like so: +
-<code>curl 127.0.0.1:9122/api/request_token</code> +
- +
-Output: +
-<code>{"access_token":"OSTWFHSGAPKZWMZORFEFWOFIHMOZUMJK", "expires_in":3600, "scope":"create"}</code> +
- +
-Example of MH for Port 1: +
-<code>curl 127.0.0.1:9122/api/mheardport/1 -H "Authorization: Bearer OSTWFHSGAPKZWMZORFEFWOFIHMOZUMJK"</code> +
- +
-Output: +
-<code>{"callSign": "G7TAJ-15", "port": "1", "packets": 10, "lastHeard": "2024-3-6 17:14:01"  }, +
-{"callSign": "G7TAJ", "port": "1", "packets": 5, "lastHeard": "2024-3-3 15:46:07"  }</code> +
- +
bpq_api.txt · Last modified: 2024/03/27 12:39 by m0lte