Skip to content

Instantly share code, notes, and snippets.

@moznion
Created November 4, 2013 14:13
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save moznion/7303033 to your computer and use it in GitHub Desktop.
Save moznion/7303033 to your computer and use it in GitHub Desktop.

generated at: 2013-11-04 22:41:10

POST /

get message ok

Target Server

http://localhost

(Plack application)

Parameters

application/json

  • jsonrpc: Number (e.g. 2.0)
  • method: String (e.g. "get_entries")
  • params: JSON
    • category: String (e.g. "technology")
    • limit: Number (e.g. 1)

Request

POST /

Response

Status:       200
Content-Type: application/json
Response:
{
   "jsonrpc" : "2.0",
   "id" : 1,
   "result" : {
      "entries" : [
         {
            "body" : "Hello!",
            "title" : "example"
         }
      ]
   }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment