Skip to content

Comment on Show HN: I made a simple persistent counting APIparent

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.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.