Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/kauancavazani/simple-crud
- Owner: KauanCavazani
- Created: 2023-02-11T16:21:50.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-02-14T00:24:25.000Z (almost 2 years ago)
- Last Synced: 2024-11-13T10:52:29.891Z (3 months ago)
- Topics: crud, java, mysql, spring, spring-boot
- Language: Java
- Homepage:
- Size: 65.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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)