At /packets, return 10 records by default and add n=x to return x packets.

This commit is contained in:
W1CDN
2023-04-16 18:50:39 -05:00
parent 5793e57aa9
commit 1cffde2903
3 changed files with 11 additions and 6 deletions

View File

@ -17,8 +17,9 @@ You can use screen to detach the session.
3. Access the API from whatever other system you want.
## Endpoints:
-`/packets` - gives the most recent packets, with the fields from the Dire Wolf
User Guide.
-`/packets` - gives the most recent packets, sorted descending by time received.
- argument `n` will return a specific number of packets, default 10. E.g.,
`https://digi.w1cdn.net/aprs_api/packets?n=1` returns one packet.
Example of an object packet sent by W1CDN-1 and digipeated by K0UND-2:
```