Comment on Show HN: I made a simple persistent counting APIparentComments−sgarman13yWouldn't you want to do a POST for creating the first counter and then a PUT for updates?−smoyer13yYes ... And to address one of the comments above, PATCH is used to merge data into an existing record while PUT is used to replace the existing contents. This is a bit of an odd case since you wouldn't be sending data in either case.
Comments
Wouldn't you want to do a POST for creating the first counter and then a PUT for updates?
Yes ... And to address one of the comments above, PATCH is used to merge data into an existing record while PUT is used to replace the existing contents. This is a bit of an odd case since you wouldn't be sending data in either case.