zervnet / pdns Goto Github PK
View Code? Open in Web Editor NEWThis project forked from powerdns/pdns
PowerDNS
License: GNU General Public License v2.0
This project forked from powerdns/pdns
PowerDNS
License: GNU General Public License v2.0
Implement the POST Method for cryptokeys.
Description: Link
The REST API and the pdnsutil command line tool both implement the same functionality, this leads to heavy code redundancy.
You can see that ws-auth.cc (REST API) and pdnsutil.cc feature the same code in quite some cases. For examples see:
We would propose to implement an underlying Interface that encapsulates the needed functionallity. This would lead to less code redundancy and a more uniform way to interact with the software as the REST API and the pdnsutil tool would use the same interface.
Any input would be highly appreciated.
Update the rest api documentation for the features:
Specify this features in a way that goes conform to powerdns documentation.
Allow the update of a single CryptoKey by its ID.
TODO in api_sec.md: cryptokey_id PUT
PUT will solely be used to activate or deactivate a cryptoKey, given it's ID
This feature should delete cryptokeys by their id.
The link leads to the TODO in the api_spec.md from pdns repo.
For protocol guidelines i would recommand this:
DELETE is pretty easy to understand. It is used to delete a resource identified by a URI.
On successful deletion, return HTTP status 200 (OK) along with a response body, perhaps the representation of the deleted item (often demands too much bandwidth), or a wrapped response (see Return Values below). Either that or return HTTP status 204 (NO CONTENT) with no response body. In other words, a 204 status with no body, or the JSEND-style response and HTTP status 200 are the recommended responses.
HTTP-spec-wise, DELETE operations are idempotent. If you DELETE a resource, it's removed. Repeatedly calling DELETE on that resource ends up the same: the resource is gone. If calling DELETE say, decrements a counter (within the resource), the DELETE call is no longer idempotent. As mentioned previously, usage statistics and measurements may be updated while still considering the service idempotent as long as no resource data is changed. Using POST for non-idempotent resource requests is recommended.
There is a caveat about DELETE idempotence, however. Calling DELETE on a resource a second time will often return a 404 (NOT FOUND) since it was already removed and therefore is no longer findable. This, by some opinions, makes DELETE operations no longer idempotent, however, the end-state of the resource is the same. Returning a 404 is acceptable and communicates accurately the status of the call
These goals should be reached until 20.06 12:15 pm.
Edit this Issue to take a task. Set your name behind a task. I would recommend to create a new issue when working on an goal.
This has to be done for all backends:
High Priority:
Lower Priority:
This has to be done for all backends:
High Priority:
Lower Priority:
These goals should be reached until 20.06 12:15 pm.
Edit this Issue to take a task. Set your name behind a task.
These goals should be reached until 14.07 12:15 pm.
Edit this Issue to take a task. Set your name behind a task. I would recommend to create a new issue when working on an goal.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.