Skip to content

mokeddemh/RestApiExample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RestApiExample

This is a simple CRUD Rest API built using Spring Boot.

Getting Started

To build and run this application, you will need:

  • Java 11 or later
  • Maven 3.6.0 or later

The API has the following endpoints:

  • GET /api/student/ - Get all students
  • GET /api/student/id={ID} - Get student by ID
  • GET /api/student/firstname={firstName} - Get students by FirstName
  • POST /api/student/save - Create a new student
  • PUT /api/student/update - Update an existing student
  • DELETE /api/student//delete - Delete a student by ID

Integration Tests

To execute integration tests with H2 Database, just run: mvn test.

About

A simple CRUD Rest API with Spring Boot

Resources

Stars

Watchers

Forks

Contributors

Languages