Hey, i am in the middle of implementing a python client library for interacting with pdns, and i noticed some problems:
1:
/api/v1/servers/:server_id/zones
has no type attribute, I guess it should be Zone
2:
should object type "Comment" and "Records" for RRSet have a type attribute?
3:
/api/v1/servers/:server_id/zones
url attribute is missing leading slash '/'
IS:
"url": "api/v1/servers/localhost/zones/example.com."
SHOULD:
"url": "/api/v1/servers/localhost/zones/example.com."
4:
rrset update, should "modified_at" be set by client for comments?
i am not sure if 2&4 are a bug, but it would be nice if you could clarify
simply call the REST Resources as described in the documentation
please see short description
please see short description
Thank you for your answers:
i would like to suggest some changes to the zone related endpoints:
/api/v1/servers/:server_id/zones should not return records, just like with cryptokeys, they are also not returned here
create a new endpoint: /api/v1/servers/:server_id/zones/records, which will be used for managing records
implement pagination/result_limits for at least listing domains, records & cryptokeys, this will improve usability with big zones
implement sorting for at least by name for domains, records & cryptokeys
i hope this is the right place for a proposal.
BTW: is there a swagger file around for PowerDNS?
Investigating moving to using the API instead of a database connection to our powerdns instance, but finding the lack of pagination could be blocking. Any movement on this? This is the only issue on the topic I could find and it's pretty stale.
Hi Geoff, the feature is not planned for 4.4 (which will come out in a few weeks). We haven't decided if it will be a big priority after that, sorry.
Hi Geoff, the feature is not planned for 4.4 (which will come out in a few weeks). We haven't decided if it will be a big priority after that, sorry.
Thanks for the follow up Habbie. Is there any feature roadmap that is publicly available where I could see any slated API updates?
The only thing that comes close to a roadmap is milestones on tickets, and this ticket is auth-5 (which means 'we intend to do this someday') because it is a lot of questions in one. If you want a better estimate about pagination, I suggest filing a separate ticket just for pagination. That would also be a good place to discuss actual implementation, which always helps towards getting the code written.
Most helpful comment
Thank you for your answers:
i would like to suggest some changes to the zone related endpoints:
/api/v1/servers/:server_id/zones should not return records, just like with cryptokeys, they are also not returned here
create a new endpoint: /api/v1/servers/:server_id/zones/records, which will be used for managing records
implement pagination/result_limits for at least listing domains, records & cryptokeys, this will improve usability with big zones
implement sorting for at least by name for domains, records & cryptokeys
i hope this is the right place for a proposal.
BTW: is there a swagger file around for PowerDNS?