Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?

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