mirror of
https://github.com/Privex/looking-glass.git
synced 2026-04-25 07:05:49 +03:00
[GH-ISSUE #2] Add pagination support to /api/v1/prefixes #2
Labels
No labels
enhancement
enhancement
good first issue
good first issue
help wanted
help wanted
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/looking-glass#2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Someguy123 on GitHub (Feb 21, 2020).
Original GitHub issue: https://github.com/Privex/looking-glass/issues/2
Originally assigned to: @bt-cryptomancer on GitHub.
Currently the API doesn't support pagination, which can be a problem when viewing ASNs with large amounts of prefixes such as Hurricane Electric (AS6939).
The list_prefixes view ( https://github.com/Privex/looking-glass/blob/master/lg/peerapp/views.py#L117 ) should support the GET parameters
limit/skip, and to prevent abuse,limitshould have a configurable default and maximum, e.g.DEFAULT_API_LIMIT=1000MAX_API_LIMIT=10000Example:
@bt-cryptomancer commented on GitHub (Apr 10, 2020):
Task complete in linked PR