-
Notifications
You must be signed in to change notification settings - Fork 8
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
Added new routes #4
Conversation
Hey I just tested this fork, this is really cool, thanks for the PR! |
You're welcome, thanks to you ! |
Hum, I just saw you reverted the PR (I wanna use master to add some tests). Did you find any bugs in my code ? |
I reverted the PR on master since I wanted to re-structure the project to better accommodate your changes, until then I made a separate branch with all your changes. |
@prytoegrian just pushed to main all your changes, made some minor fixes, thanks for your time! |
Cf. #1
Hi ! Following #1, I added some new routes. They are neither very useful nor interesting, but I hope they could entertain someone. Now, each
QuoteType
has a score and a uuid for sort and selection purpose.I added :
/one/{uuid}
/top
/one/{uuid}/like
/one/{uuid}/dislike
The routes
/one/{uuid}/like
and/one/{uuid}/dislike
don't follow ReST best practices since this principle forbid verbs in routes but I failed to find a way to represent what I wanted to build. If you have any idea, I'll take it with pleasure.If, for a reason or another, you don't approve this PR, I won't mind. I really enjoyed play with your software and practice my golang.
Regards.