-
Notifications
You must be signed in to change notification settings - Fork 111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add API calls for commonly run queries #1020
Comments
|
|
For those of us using PeeringDB as a handy backend for config generating tools, I don't know what you'd call it but say a Left-Right Merge API output would be So something like .... INPUT
OUTPUT:
|
|
Given two ASN, show the list of common IXes. Usefull for ISP looking for peering relations based on their network traffic. |
|
IMO a more powerful API (allowing for logical operations e.g.) would do the trick. E.g. asn__and=asn1,asn2 or, ix_id__or=ixid1,ixid2 |
|
Summary: "Anything that would require a join or two in order to get the information." Examples:
For things that could return multiple matches (i.e. org name lookups), possibly returning a HTTP Status Code 300 (Ambiguous) with the possible matches (up to a certain number to prevent someone from just typing '*'). Also, right now, only the 'fac' table includes 'state' (as in province, etc.), but no other table does, which means that in order to get full disambiguation by address, you need to join the 'fac' table. |
|
We discussed this at today's @peeringdb/pc meeting and agreed to investigate how much of this could be achieved with v2 search. This would re-scope the work from development to analysis. That should inform the next step. |
Is your feature request related to a problem? Please describe.
It's often the case that users of peeringdb want to find out where two entities intersect. See #16 for such an example.
Who is affected by the problem?
Anyone who dumps the db locally and then writes their own SQL queries to do this.
What is the impact?
Unnecessary time for users and peeringdb server resources serving up full caches of the db, just so folks can do common queries with more flexibility.
Are there security concerns?
No, RO
Are there privacy concerns?
No, all the same data
Describe the solution you'd like
#16 was done but I don't see it documented in https://www.peeringdb.com/apidocs/ which means it functionally doesn't exist for users.
We should:
Describe alternatives you've considered
Maintain status quo
Could this feature request need support from the Admin Committee?
No
What is the proposed priority?
Nice to have
Provide a rationale for any/all of the above
The text was updated successfully, but these errors were encountered: