-
Notifications
You must be signed in to change notification settings - Fork 4
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
What do you mean with REST? #3
Comments
Also being stateless
For the nice URIs, there is an open ticket, shaarli/Shaarli#508. I'm not sure we should include it here. |
indeed, but if do likewise with the other two, it's not much REST left except marketing waffling. |
Not really because in the end it's the exact same thing if routes are properly written. |
Isn't REST itself already a marketing-swag-friendly term for designating a mere HTTP API dealing with JSON data?
Resource-centric routes help defining an API's endpoints, and can be assumed as a prerequisite, as this is how most API consumers will expect a RESTful service to be defined. It is quite representative of the overall logic; for a given resource type, there should be:
This involves enhancing Shaarli's router to handle such URLs, at least for the newly introduced API endpoints. |
Depends how we handle redirection. For example, this won't require any work on the router, but requires more complex redirections (simplified):
While this does:
Maybe a good way to have cleaner URIs for the API without being bother with web servers configurations is to do something like this:
What do you think? EDIT: actually, none requires work on the Router, but the way the API code will handle parameters. |
rather |
let's first get #6 sorted. Will ninja-re-open later if appropriate. |
I'd prefer to keep one entry point (
It would avoid duplicating too much stuff. Note that the template engine, RainTPL is loaded only if we need it. |
I understand REST as
DELETE /posts/Shsmbw
orPOST /posts/
The text was updated successfully, but these errors were encountered: