User Tools

Site Tools


bpq_api

Differences

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

Link to this comparison view

Next revision
Previous revision
Last revisionBoth sides next revision
bpq_api [2024/03/27 12:13] – created g7tajbpq_api [2024/03/27 12:29] g7taj
Line 1: Line 1:
 BPQ has a simple and evolving api BPQ has a simple and evolving api
  
-endpoints: (note these may change and lose the 'get')+endpoints: (note older versions were prefixed with 'get' (except request_token)
  
 /api/request_token /api/request_token
-/api/getports +/api/ports 
-/api/getnodes +/api/nodes 
-/api/getusers +/api/users 
-/api/getinfo +/api/info 
-/api/getmheardport/<port#>+/api/mheardport/<port#>
  
 Requested like so: Requested like so:
Line 17: Line 17:
  
 Example of MH for Port 1: Example of MH for Port 1:
-<code>curl 127.0.0.1:9122/api/getmheardport/1 -H "Authorization: Bearer OSTWFHSGAPKZWMZORFEFWOFIHMOZUMJK"</code>+<code>curl 127.0.0.1:9122/api/mheardport/1 -H "Authorization: Bearer OSTWFHSGAPKZWMZORFEFWOFIHMOZUMJK"</code>
  
 Output: Output:
bpq_api.txt · Last modified: 2024/03/27 12:39 by m0lte