get started
first clone the repo in your local computer after clone the repository, install mysql & phpmyadmin on your laptop, you can use xampp or docker, it most easyly if you setup with docker if you use docker, just running the command below`
docker-compose up -d
it will be build the docker image
the last step just run the spring boot with the command below
mvn spring-boot:run
Insert data to database
| Methode | #Post |
|---|---|
| Path | http://localhost:8080/api/product |
{ "id": 2, "name": "test1", "description": "keyboard", "price": 200 }
Get all data
| Methode | #Get |
|---|---|
| Path | http://localhost:8080/api/product |
Get data by id
| Methode | #Get |
|---|---|
| Path | http://localhost:8080/api/product/{id} |
Delete data by id
| Methode | #Delete |
|---|---|
| Path | http://localhost:8080/api/product/{id} |
Update data to database
| Methode | #Update |
|---|---|
| Path | http://localhost:8080/api/product |
{ "id": 2, "name": "test1", "description": "test", "price": 200 }