-
Notifications
You must be signed in to change notification settings - Fork 912
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
REST API docs: several issues which need clarification #2064
Comments
The record (type='a') error should probably get the same handling as for comments on type 'ohoh', i.e. both should fail with "unknown type" instead. |
I'm not sure what you're saying about name/type for comments. comments are always bound to an RRset, and as such, they inherit the RRsets name and type.
|
Be that as it may, it needs documentation / clarification. |
FTR, I agree on 'needs better docs' :) |
It appears the sentence |
Indeed, this should be marked as a TODO. |
Regarding comments, the following snippet (from the reg. tests) shows how name/type for comments should just come from the RRset. What did you send? Or rather, what exactly needs clarification? (Maybe I'm looking at the wrong section in the spec, or it's just "obvious" to me because I wrote it.)
|
I sent {
"comments": [
{
"account": "JP",
"content": "My first API-created zone",
"name": "uhuh",
"type": "dunno"
}
],
"kind": "Native",
"masters": [],
"name": "example.net",
"nameservers": [
"ns1.example.net",
"ns2.example.net"
],
"records": [
{
"content": "ns.example.net. hostmaster.example.com. 1 1800 900 604800 86400",
"disabled": false,
"name": "example.net",
"ttl": 86400,
"type": "SOA"
},
{
"content": "192.168.1.42",
"disabled": false,
"name": "www.example.net",
"ttl": 3600,
"type": "A"
}
]
} |
Oh, at zone creation! Alright. (I was looking at PATCH.) |
About the record types, since all of them are UPPER CASE, would it make sense to just convert the given type to uppercase? |
Based on feedback from issue PowerDNS#2064; no idea so far how to better describe how comments work.
Upcasing types is now #2128 |
Going to tick off the 'master is not NULL' thing, as I have no way of fixing this without a lot of changes and I don't see any benefit from it. If anything, the schema should be made |
#3417 is related |
I noticed a few things related to documentation and/or code in the REST API. I think (hope) they all belong together:
Comments
name
/type
(record type?) for? If they are for an RR why domain_id only, and not record id?account
used for? Is there an association withdomains.account
?type=DNSKEY
type is shown correctly in table. If I set toohoh
, it containsTYPE0
.Domains
master
is empty string. Shouldn't that be NULL?Records
a
instead ofA
) produces a very strange message:The text was updated successfully, but these errors were encountered: