Skip to content

Latest commit

 

History

History
33 lines (27 loc) · 974 Bytes

README.md

File metadata and controls

33 lines (27 loc) · 974 Bytes

RestBase

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

API Endpoints

GET /api/user

http://localhost:8080/api/user Find all users

GET /api/user/{id}

http://localhost:8080/api/user/1 Find a user by its ID

POST /api/user

http://localhost:8080/api/user Generates a new User

Body id is autogenerated

JSON
{
  "name": "ChangeName"
}

PUT /api/user/{id}?name={newName}

http://localhost:8080/api/user/1?name=newName Updates an existing user name

DEL /api/user/{id}

http://localhost:8080/api/user/1 Delete an existing user by its id