Skip to content
This repository has been archived by the owner on Jun 14, 2018. It is now read-only.
/ byzal Public archive

Simple echo service written in Elixir using the Phoenix Framework

License

Notifications You must be signed in to change notification settings

propertybase/byzal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Byzal

Byzal is named after the Byzal Canyon in the Star Wars universe. It's a simple Echo service (I assume canyons have a lot of echo).

Every request you make will answer with all the details about this request in JSON.

Examples:

GET /
{
  "scheme": "http",
  "query_params": {},
  "path": "/",
  "method": "GET",
  "host": "localhost",
  "headers": {
    "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 Safari/537.36",
    "upgrade-insecure-requests": "1",
    "host": "localhost:4000",
    "connection": "keep-alive",
    "accept-language": "en-US,en;q=0.8,de;q=0.6",
    "accept-encoding": "gzip, deflate, sdch",
    "accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8"
  },
  "body_params": {}
}
GET /search?term=true_love
{
  "scheme": "http",
  "query_params": {
    "term": "true_love"
  },
  "path": "/search",
  "method": "GET",
  "host": "localhost",
  "headers": {
    "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 Safari/537.36",
    "upgrade-insecure-requests": "1",
    "host": "localhost:4000",
    "connection": "keep-alive",
    "accept-language": "en-US,en;q=0.8,de;q=0.6",
    "accept-encoding": "gzip, deflate, sdch",
    "accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8"
  },
  "body_params": {}
}

Limitations

Currently the followin HTTP methods are supported:

  • GET
  • POST
  • PUT
  • PATCH
  • DELETE
  • OPTIONS
  • CONNECT
  • TRACE

HEAD is not supported as for some reason a HEAD request always returns an empty body.