Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kauancavazani/simple-crud

A simple API developed using Java and Spring Boot to manipulate a mysql database
https://github.com/kauancavazani/simple-crud

crud java mysql spring spring-boot

Last synced: 30 days ago
JSON representation

A simple API developed using Java and Spring Boot to manipulate a mysql database

Awesome Lists containing this project

README

        

# Simple CRUD API to manipulate a database

A simple API developed using Java and Spring Boot to manipulate a mysql database

# Technologies used

![image](https://img.shields.io/badge/Java-ED8B00?style=for-the-badge&logo=java&logoColor=white)
![image](https://img.shields.io/badge/Spring-6DB33F?style=for-the-badge&logo=spring&logoColor=white)

## Environment variables

`DB_URL`

`DB_USER`

`DB_PASSWD`

## ENDPOINTS

POST
```
- add student:
http://localhost:8080/students/add

- body example:

{
"name": "Kauan",
"email": "[email protected]",
"course": "CCO"
}
```

GET
```
- get all students:
http://localhost:8080/students/get-all

- get students by id:
http://localhost:8080/students/get-by-id/
```

PUT
```
- update student:
http://localhost:8080/students/update/

- body example:

{
"name": "Paulo",
"email": "[email protected]",
"course": "ADS"
}
```

DELETE
```
- delete by id:
http://localhost:8080/students/delete-by-id/

-delete all:
http://localhost:8080/students/delete-all
```

## Author

- [@KauanCavazani](https://www.github.com/KauanCavazani)