packet:bpq-api
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| packet:bpq-api [2024/10/06 19:59] – created m0lte | packet:bpq-api [2025/01/02 19:13] (current) – [Route Roadmap] m0lte | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== BPQ API ====== | + | ====== BPQ APIs ====== |
| ===== The one built into BPQ ===== | ===== The one built into BPQ ===== | ||
| + | |||
| + | BPQ has a simple and evolving HTTP REST API. | ||
| + | It is used though the HTTPPORT (in this example is port 9122) | ||
| + | |||
| + | endpoints: (note older versions were prefixed with ' | ||
| + | |||
| + | < | ||
| + | / | ||
| + | /api/ports | ||
| + | /api/nodes | ||
| + | /api/users | ||
| + | /api/info | ||
| + | /api/links | ||
| + | / | ||
| + | </ | ||
| + | |||
| + | Requested like so: | ||
| + | < | ||
| + | |||
| + | Output: | ||
| + | < | ||
| + | |||
| + | Example of MH for Port 1: ( >ver 6.0.24.33 ) | ||
| + | < | ||
| + | |||
| + | Output: | ||
| + | < | ||
| + | {" | ||
| + | |||
| + | ==== Route Roadmap ==== | ||
| + | |||
| + | Detailed info about the routes that exist and those yet to come. | ||
| + | |||
| + | ^ Route ^ Method ^ Description | ||
| + | | / | ||
| + | | / | ||
| + | | / | ||
| + | | / | ||
| + | | / | ||
| + | | / | ||
| + | | / | ||
| + | | / | ||
| + | | / | ||
| + | | / | ||
| + | ===== The one Tom built ===== | ||
| + | |||
| + | Tom is building a docker container that sits next to BPQ and wraps its various interfaces, including the UI, exposing OpenAPI / Swagger endpoints. | ||
| + | |||
| + | Perhaps one day this one will become redundant and can be put out to pasture. | ||
| + | |||
| + | https:// | ||
| + | |||
| + | |||
| + | ==== UI scraping notes from Steve G7TAJ ==== | ||
| + | |||
| + | Getting a message list with parameters | ||
| + | |||
| + | M$ID = the token | ||
| + | |||
| + | the options can be null | ||
| + | |||
| + | < | ||
| + | |||
| + | response: a list of message numbers delimitered by | (odd end of html at the end) | ||
| + | |||
| + | < | ||
| + | |||
| + | |||
| + | Get the message header information | ||
| + | |||
| + | < | ||
| + | |||
| + | |||
| + | < | ||
| + | < | ||
| + | < | ||
| + | <meta content=" | ||
| + | < | ||
| + | </ | ||
| + | < | ||
| + | < | ||
| + | <form style=" | ||
| + | From & | ||
| + | Sent & | ||
| + | & | ||
| + | <select tabindex=1 size=1 name=Type> | ||
| + | <option selected value=B> | ||
| + | <option value=P> | ||
| + | <option value=T> | ||
| + | </ | ||
| + | <br> | ||
| + | To & | ||
| + | Received & | ||
| + | & | ||
| + | <select tabindex=1 size=1 name=Status> | ||
| + | <option value=N> | ||
| + | <option value=Y> | ||
| + | <option value=F> | ||
| + | <option value=K> | ||
| + | <option value=H> | ||
| + | <option value=D> | ||
| + | <option selected value=$> | ||
| + | </ | ||
| + | <br> | ||
| + | BID & | ||
| + | Last Changed <input readonly=readonly size=12 name=LastChange value=" | ||
| + | & | ||
| + | <br> | ||
| + | <br> | ||
| + | Email From <input style=" | ||
| + | <br> | ||
| + | & | ||
| + | <br> | ||
| + | Title & | ||
| + | <br> | ||
| + | <br> | ||
| + | <span align=center> | ||
| + | <input onclick=editmsg(" | ||
| + | <input onclick=save(this.form) value=Save type=button class=' | ||
| + | <td> | ||
| + | <a href=/ | ||
| + | <button type=button class=' | ||
| + | </a> | ||
| + | </td> | ||
| + | <td> | ||
| + | <a href=/ | ||
| + | <button type=button class=' | ||
| + | </a> | ||
| + | </td> | ||
| + | <input onclick=doit(" | ||
| + | <input onclick=doit(" | ||
| + | </ | ||
| + | <br> | ||
| + | <br> | ||
| + | Green = Sent, Yellow = Queued | ||
| + | <table style=" | ||
| + | <tr> | ||
| + | <td style=" | ||
| + | <td style=" | ||
| + | <td style=" | ||
| + | <td style=" | ||
| + | <td style=" | ||
| + | <td style=" | ||
| + | <td style=" | ||
| + | <td style=" | ||
| + | </tr> | ||
| + | </ | ||
| + | </ | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | </ | ||
| + | |||
| + | |||
| + | Get the message body: | ||
| + | |||
| + | < | ||
| + | |||
| + | response: | ||
| + | |||
| + | < | ||
| + | < | ||
| + | R: | ||
| + | R: | ||
| + | R: | ||
| + | R: | ||
| + | R: | ||
| + | R: | ||
| + | R: | ||
| + | R: | ||
| + | |||
| + | From: [email protected] | ||
| + | To : NTS@ARRL | ||
| + | |||
| + | ========================= | ||
| + | September 2024 NTS Letter | ||
| + | ========================= | ||
| + | September 3, 2024 | ||
| + | </ | ||
| + | <color # | ||
| + | < | ||
| + | </ | ||
| + | |||
| + | </ | ||
| + | |||
| + | ===== The one Twom is building ===== | ||
| + | |||
| + | Twom is patching MQTT support into BPQ itself. | ||
packet/bpq-api.1728244767.txt.gz · Last modified: by m0lte
