This is a basic template for starting up new REST API with Spring + MySql running on docker containers. It’s also a GitHub template so you can use it quickly as described here
This is by no mean a production usable template. Use it just for quick testing purposes
http://localhost:8080/api/user Find all users
http://localhost:8080/api/user/1 Find a user by its ID
http://localhost:8080/api/user Generates a new User
Body id is autogenerated
JSON
{
"name": "ChangeName"
}
http://localhost:8080/api/user/1?name=newName Updates an existing user name
http://localhost:8080/api/user/1 Delete an existing user by its id