freego_api/README.md

20 lines
397 B
Markdown
Raw Permalink Normal View History

2022-03-03 18:28:00 +00:00
# freego_api
freego implementation as a simple REST API.
Currently stores no state and has no user authentication, so using it should just be
2022-03-03 18:30:52 +00:00
```
2022-03-03 18:28:00 +00:00
go build
./freego_api
2022-03-03 18:30:52 +00:00
```
# Implemented routes
```
POST /game
GET /game/{id}
GET /game/{id}/status
2022-03-07 20:21:59 +00:00
POST /game/{id}/move
GET /game/{id}/move/{movenum}
2022-03-03 18:30:52 +00:00
```
2022-03-08 21:12:41 +00:00
## Authorization headers
Requests should contain header "Player-id"="red|blue"