-
Notifications
You must be signed in to change notification settings - Fork 23
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
Inconsistencies between Client and API #71
Comments
@ericat are you using the provided django concrete models? As far as I know, all the data is loaded from the API. |
Hello Matt, sorry it has been a while, I put together a simple Flask app as an example:
if I run then curl this with
Is If you compare the output with |
The PDB curl is a depth=1 or 2 query, you should be comparing it against: curl https://www.peeringdb.com/api/net/14854?depth=0 | jq . |
hi Matt, yes that's fair enough. I can see from the code you do have a |
Hello, querying the Network ('net') resource with
.get
and ASN id does not seem to yield the same result when compared to the api. e.g.curl https://www.peeringdb.com/api/net/14854
vs:pdb.get(resource.Network, 14854)
.The latter is missing several nested fields such as
netfac_set
andnetixlan_set
. Other fields, such asorg
, seems to only contain an id.Another example - the NetworkIXLan resource cannot be queried with ix_id (i.e. does not have that field) as filter (unlike the API):
Some resources are just missing fields (when compared to the API), e.g. InternetExchange is missing the name / name long etc, they're just not added in the models in your django-peeringdb repo.
The text was updated successfully, but these errors were encountered: