Hacker News new | past | comments | ask | show | jobs | submit login

How should one RESTify methods? If my 'state' is represented as objects, and I want to execute a method on one of those [remote/server-side] object, what's the RESTful way of calling that method? I don't even know what RPC over HTTP should look like, let alone whether mixing it with REST would even be acceptable.



> let alone whether mixing it with REST would even be acceptable

Why wouldn't it be acceptable? Can you think about any reason? Because I can't. (And you could reach some very nice API independence by carrying RPC metadata at the REST API.)

The only thing I see here that I think is wrong is that the API uses GET when it should use other verbs. But lots of people already pointed that.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: