This PR will create a whole new API version (API v2) with new features and concepts implemented.
API v1 won't be removed just yet but may in the future.
API v2 will implement the backend basis for the following new features:
[x] The so far named deletion token will be renamed to modification token to allow more extendability (basis for #10)
[x] Pastes will be editable (#10)
[x] Pastes will have a key-value store for meta data, for example for frontend-specific stuff (basis for #11)
[x] A configuration option for a webhook being called whenever a paste is reported will be added (#12)
[x] Furthermore, all API endpoints and behaviours will be documented (#14).
Frontend functionality will still be based on API v1 and thus will be restricted to the old functionalities after merging.
A frontend update will follow soon after that.
This PR will create a whole new API version (API v2) with new features and concepts implemented. API v1 won't be removed just yet but may in the future.
API v2 will implement the backend basis for the following new features:
Frontend functionality will still be based on API v1 and thus will be restricted to the old functionalities after merging. A frontend update will follow soon after that.