Skip to content

CRUD REST API for simple students management application using Spring Boot, JPA, Hibernate and MySQL

Notifications You must be signed in to change notification settings

hendisantika/student-crud-app

Repository files navigation

student-crud-app

Things todo list:

  1. Clone this repository: git clone https://github.com/hendisantika/student-crud-app.git
  2. Navigate to the folder: cd student-crud-app
  3. Change your MySQL Credentials with your own in application.properties
  4. Run the application: mvn clean spring-boot:run
  5. Import the POSTMAN Collection.

Image Screen shots

Add New Student

Add New Student

Tambah Data Mahasiswa

curl --location --request POST 'localhost:8080/api/students' \
--header 'Content-Type: application/json' \
--data-raw '{
    "firstName" : "Uzumaki",
    "lastName": "Naruto",
    "email": "uzumaki_naruto@konohagakure.co.jp",
    "phone": "+6281321411511"
}'

Get All Students

Get All Students

curl --location --request GET 'localhost:8080/api/students'

Update Student

Update Student

curl --location --request PUT 'localhost:8080/api/students/1' \
--header 'Content-Type: application/json' \
--data-raw '{
    "firstName" : "Uzumaki",
    "lastName": "Naruto Hokage",
    "email": "uzumaki_naruto@konohagakure.co.jp",
    "phone": "+6281321411511"
}'

Find Student by ID

Find Student by ID

curl --location --request GET 'localhost:8080/api/students/1'

Delete Student

Delete Student

curl --location --request DELETE 'localhost:8080/api/students/4'

Web Screen shot

Index Home Page

Index Home Page

Add Student Page

Add Student Page

Edit Student Page

About

CRUD REST API for simple students management application using Spring Boot, JPA, Hibernate and MySQL

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published