A simple web server using Golang for training my skills in language.
Pocket-app is a simple domain model that aims to control users' spending / finances.
Create a client application developed in react.js, to also develop my skills in this other technology
- github.com/gorilla/mux
- github.com/go-sql-driver/mysql
- github.com/joho/godotenv
- github.com/dgrijalva/jwt-go
Taking into account that pocket-app runs on port 8080, as described in main.go
. So the base path is: http://localhost:8080
.
GET /api/users
POST /api/users
Content-Type: application/json
{
"name": "John Doe",
"email": "[email protected]",
"username": "johndoe",
"password": "anypasswordhere"
}
PUT /api/users
Content-Type: application/json
{
"id": "453"
"name": "John Doe update",
"email": "[email protected]",
"username": "johndoe",
"password": "newpassword"
}
GET /api/users/{id}
DELETE /api/users/{id}
POST /login
Content-Type: multipart/form-data
username=johndoe
[email protected]