A small experiment in making an API gateway reverse proxy for my HTTP microservices.
Go to file
Cadey Ratio c29b7db4f9 remove go.mod so we can use twirp :( 2018-03-14 23:32:22 -07:00
cmd/apig Initial commit 2018-03-14 22:41:05 -07:00
internal/confyg Initial commit 2018-03-14 22:41:05 -07:00
LICENSE Initial commit 2018-03-14 22:41:05 -07:00
README.md README: add manifest ideas 2018-03-14 23:30:12 -07:00
doc.go Initial commit 2018-03-14 22:41:05 -07:00

README.md

apig

Just a small experiment in replicating the API gateway pattern for microservices.

Manifest Format

service printerfacts
backend https://printerfacts.herokuapp.com
health /index.html
playbook_url https://github.com/Xe/printerfacts/wiki/Playbooks#healthcheck-is-down

twirp (
  public v5 us.xeserv.api.Printerfacts Fact
)
service ponyapi
backend https://ponyapi.apps.xeserv.us
health /newest

prefix /ponyapi

http (
  public GET /all
  public GET /newest
  public GET /last_aired
  public GET /season/:snum
  public GET /season/:snum/episode/:enum
  public GET /random
  public GET /search
  
  private root:admin GET /_stats
)