-
Notifications
You must be signed in to change notification settings - Fork 1
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
Increment/decrement API #29
Comments
I was thinking I'd go with According to this site:
In addition, other sites (here, here) say to use plural nouns, not verbs, for endpoints. Based on that, I guess I'll use
Or perhaps as url args? Is this even possible?
|
Yes, but it seems to be very rarely used, so it's likely not a good idea. I think just adding the optional |
There should be an API to increment or decrement a stored value. Options include:
Questions:
increase = +1
,decrease = -1
) or always explicit?add
api is already taken - do I want to replace that? I'd then get:add
for adding a signed value to the current value (adding a negative value would subtract, of course)scale
for multiplying by a signed valueappend
,post
,insert
,new
, or something else for the default act of sending in a new valuepower
... I don't think that's really useful at all.The text was updated successfully, but these errors were encountered: