Skip to content

Instantly share code, notes, and snippets.

@motiejus
Last active August 29, 2015 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save motiejus/5ac397bc63a25add9041 to your computer and use it in GitHub Desktop.
Save motiejus/5ac397bc63a25add9041 to your computer and use it in GitHub Desktop.
piqi showcase

A sample resource:

.resource [
  .url [
    .string.gamelist
    .string.favouritesGet
    .binding.siteid
    .binding.uid
  ]
  .doc "get a static page given siteid and uid"
]

Could map to a cowboy URL:

/gamelist/favouritesGet/:site/:guid

By doing that, we could extract everything we need to know about the interface with familiar utilities.

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