POST would probably be the usual choice for these operations. (Though, since you aren't really creating a subresource but are instead performing a defined transformation on an existing resource, you could probably make a case for PATCH.)
Web APIs are protocols implemented on top of HTTP, and should respect the semantics of HTTP unless there is a clearly-identified compelling reason not to.
GET is idempotent. That's not outdated, and it's not arbitrary: it is literally stated in the protocol specification. It's a useful distinction created and used by professionals to maintain sanity in complex schemes of communication.
Please do not ignore technical details because you think you're smarter than everyone else on the planet, or that the problems they solved a decade ago somehow went away in the face of node.js.
edit: Just in case you (or anyone reading this) is unaware of it,
http://www.ietf.org/rfc/rfc2616.txt (or pretty: http://pretty-rfc.herokuapp.com/RFC2616)
Find Section '9.1 Safe and Idempotent Methods'.
Because they are going to be used in an environment where there are lots of other things built based on the specifications and which are likely to rely on (or, in some cases, have inspired) the semantics described in the HTTP spec -- including lots of the infrastructure of the web.
> Those were arbitrary and out dated.
There may be some issues with them, but those would fall under the umbrella of "clearly-identified compelling reasons".
So anyone can increment your counter without you knowing? Seems like this means you can never rely on the count being right.
As a side note, the link on the bottom is broken.
I fixed the link. Thanks! :)
...or you choose convenient, meaningful $group and $id names, which makes even unintentional collisions not at all unlikely.
I find it useful, but I'm wondering if anyone else might. What do y'all think?
PS. This is WAY beta, and mainly a proof-of-concept. But I'll continue developing it if there's an interest it.
GET's may be either cached(skipped) or duplicated for various reasons, resulting in incorrect counts.
Keep working on this, I can see several uses already.
I'm interested to know how much it takes to run jsonip? Does it cost a lot?
Edit: I've just seen the Pro version. Are you turning jsonip into a freemium model?
I'm exploring the idea of offering a higher-tier service. The general feature list is outlined on getjsonip.com but pricing isn't finalized. I'm still collecting signups and feedback right now.
I realize this isn't supposed to be highly accurate, but it's something to keep in mind if it continues to grow.
The whole point of an API is that you defer a significant amount of serverside processing and logic to a remote host, and receive a nicely formatted and machine-readable response. You have to deal with the overhead of a TCP connection (handshaking / RTT), an HTTP request, and an HTTP response. If you're doing that every time a user visits your web page (or app view or whatever), especially multiple times, then you better have a good reason for doing so.