Skip to content

Instantly share code, notes, and snippets.

@karanparikh

karanparikh/RPC v.s. REST

Last active Aug 29, 2015
Embed
What would you like to do?
RPC - non uniform API for creating an entity
Long createGreeting(Greeting greeting)
Long newFortune(Fortune fortune)
-----------------------------------------------
REST - uniform entity creation
POST /greetings {“message”: “Hello”}
POST /fortunes {“fortune”: “This is a fortune”}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment