packet:bpq-api
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
packet:bpq-api [2024/10/06 20:22] – g7taj | packet:bpq-api [2025/01/02 19:13] (current) – [Route Roadmap] m0lte | ||
---|---|---|---|
Line 3: | Line 3: | ||
===== The one built into BPQ ===== | ===== The one built into BPQ ===== | ||
- | BPQ has a latent, undocumented, | + | 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 ===== | ===== The one Tom built ===== | ||
Line 13: | Line 54: | ||
https:// | https:// | ||
- | ===== The one Twom is building ===== | ||
- | Twom is patching MQTT support into BPQ itself. | + | ==== UI scraping notes from Steve G7TAJ ==== |
- | + | ||
- | ==== Some bits from Steve G7TAJ ==== | + | |
Getting a message list with parameters | Getting a message list with parameters | ||
M$ID = the token | M$ID = the token | ||
+ | |||
the options can be null | the options can be null | ||
- | / | + | < |
response: a list of message numbers delimitered by | (odd end of html at the end) | response: a list of message numbers delimitered by | (odd end of html at the end) | ||
- | 1234|1235|1236|</ | + | < |
+ | 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.1728246124.txt.gz · Last modified: 2024/10/06 20:22 by g7taj