README: add manifest ideas
This commit is contained in:
parent
9239d0850b
commit
c18c685fc2
33
README.md
33
README.md
|
@ -1,3 +1,36 @@
|
|||
# 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
|
||||
)
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue