Skip to content

Instantly share code, notes, and snippets.

@moznion
Last active December 27, 2015 07:49
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/7291453 to your computer and use it in GitHub Desktop.
Save moznion/7291453 to your computer and use it in GitHub Desktop.

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

POST /

get message ok

Target Server

http://localhost

(Plack application)

Parameters

application/json

  • id: Number (e.g. 1)
  • message: String (e.g. "blah blah")

Request

POST /

Response

Status:       200
Content-Type: application/json
Response:
{
   "message" : "Hello"
}

POST /foo

get message ok

Target Server

http://localhost

(Plack application)

Parameters

application/json

  • id: Number (e.g. 1)
  • message: String (e.g. "blah blah")

Request

POST /foo

Response

Status:       200
Content-Type: application/json
Response:
{
   "message" : "Goodbye"
}

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