Repository navigation
Implement more RESTful routes - #119
Merged
Merged
Conversation
Member
|
Feedback on endpoints:
(Personal thoughts, would like to hear from others) |
Contributor
Author
Ah, interesting. The way I see it is that we're making a GET request to get the pixels, but we're using query parameters to narrow it down to one. That said, yes using
Yeah the former would be better as |
Bluenix2
marked this pull request as draft
June 29, 2021 14:26
Contributor
Author
|
While this is being done, should moderation endpoints also get similar changes? |
They can now be considered more RESTful.
As opposed to having two different files, both routers are now in the same file with one being submounted under the other.
Contributor
Author
|
I have now done some basic testing and squashed the commits so that this can be rebased. |
Bluenix2
marked this pull request as ready for review
July 20, 2021 23:19
ChrisLovering
requested changes
Aug 6, 2021
Co-authored-by: ChrisJL <ChrisLovering@users.noreply.github.com>
ChrisLovering
approved these changes
Aug 6, 2021
Bluenix2
enabled auto-merge
August 6, 2021 23:18
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I am starting this pull request as a draft so that there's no conflicts between work. Resolves #115.
So I've thought about these a bit more, and it would probably be better to do the following..
The biggest issue with this second proposal is that now we have a "conflict" of
GET /canvas/pixelsandGET/canvas/pixels?x=0&y=0. We cannot have 2 documentation entries to outline this (if we use one that automatically generates documentation from the openapi spec).Of course it's not impossible, we can have one shared function. But this means we need to merge
get_pixelandpixelsdoc-string. Leading to more confusion than UX we get.That makes the first proposal conflict free, that said there may be improvements to be made?