Skip to content

Latest commit

 

History

History
36 lines (30 loc) · 466 Bytes

README.md

File metadata and controls

36 lines (30 loc) · 466 Bytes

octohack-back

October '18 GCP Hack Week - Back End!

Running the server

Local

go run main.go

Docker

docker build -t octohack-back .
docker run -d -p 8080:8080 octochack-back

Requests

The server will run on http://localhost:8080/ by default.

User

GET /users/:username

{
    "id": 1,
    "username": "user",
    "email": "[email protected]"
}

POST /users with:

{
    "username": "user",
    "email": "[email protected]"
}