Skip to content
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

API: expose domains.account #2203

Merged
merged 2 commits into from
Feb 8, 2015
Merged

API: expose domains.account #2203

merged 2 commits into from
Feb 8, 2015

Conversation

zeha
Copy link
Collaborator

@zeha zeha commented Feb 7, 2015

As requested by @jpmens in #2188

@zeha zeha added the rest-api label Feb 7, 2015
reset();
}
catch (SSqlException &e) {
throw PDNSException("GSQLBackend unable to set kind of domain \""+domain+"\": "+e.txtReason());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please replace kind by account in this error

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed, ta.

@cmouse
Copy link
Contributor

cmouse commented Feb 7, 2015

goracle not supported? =)

@jpmens
Copy link
Contributor

jpmens commented Feb 8, 2015

Thank you. I will have to wait for merge + autotest packages for testing.

ahupowerdns added a commit that referenced this pull request Feb 8, 2015
API: expose domains.account
@ahupowerdns ahupowerdns merged commit e857c96 into PowerDNS:master Feb 8, 2015
@jpmens
Copy link
Contributor

jpmens commented Feb 8, 2015

Thanks to @zeha for adding this, thanks to @ahupowerdns for merging, thanks to @Habbie for not bawling out @ahupowerdns for merging ;-)

it works. I tested both GET and POST requests.

@jpmens
Copy link
Contributor

jpmens commented Feb 8, 2015

@zeha account is exposed during GET of a particular zone (zone/example.net), but not during GET of zones (as suggested in #2203 ). Was this done on purpose?

@stbuehler
Copy link
Contributor

I hope not - the code duplication between apiServerZones and fillZone should be removed...

@zeha
Copy link
Collaborator Author

zeha commented Feb 8, 2015

No, I merely forgot that these are two separate code paths.

@zeha zeha deleted the api-account branch February 8, 2015 12:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants