User Service This is a micro service built for Chatgut, a ITHS project. The user service is built with Springboot and using MySQL. Runs on port 8087 and the MySQL database runs on port 3306.
- Get all users
- Get user by id
- Update an user
- Delete an user
https://github.com/chatgut/userServiceAjCh.git
docker compose up
Get all users
GET http://localhost:8087/users
Get user by id
GET http://localhost:8087/user/{id}
Create a user based on JSON.
POST http://localhost:8087/user
Example JSON: { "userName": "JaneDoe", "imageUrl" : "https://th.bing.com/th/id/OIP.OYbzbbyzogwtriubL2pP0AHaHa?w=195&h=195&c=7&r=0&o=5&dpr=1.6&pid=1.7" }
Update a user by id based on JSON.
PUT http://localhost:8087/user/{id}
Example JSON: { "userName": "JohnDoe", "imageUrl" : "https://th.bing.com/th/id/OIP.OYbzbbyzogwtriubL2pP0AHaHa?w=195&h=195&c=7&r=0&o=5&dpr=1.6&pid=1.7" }
Delete a user by id.