Skip to content

Instantly share code, notes, and snippets.

@shizzard
Created December 6, 2012 11:20
Show Gist options
  • Save shizzard/4223786 to your computer and use it in GitHub Desktop.
Save shizzard/4223786 to your computer and use it in GitHub Desktop.
request: object(
host: string,
method: enum("GET", "POST", "PUT", "DELETE"),
params: list(
object(
name: string,
value: string
)
)
)
{object, <<"request">>, [
{string, <<"host">>},
{enum, <<"method">>, [<<"GET">>, <<"POST">>, <<"PUT">>, <<"DELETE">>]},
{list, <<"params">>, [
{object, null, [
{string, <<"name">>},
{string, <<"value">>}
]}
]}
]}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment