Skip to content

tbeede/java-spring-restful-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Java Spring Boot RESTful API Practice Project

A Java Spring Boot application that supports a RESTful API.

When given an age (e.g., 45) the service will pull person records for people aged 45 years; when given a name (e.g., Deepak) the service will pull a person record.  

Person model
Person
    String Name
    Date Dob
    String Address
    int Height
    int Weight
    Integer Age

The application employs an in-memory H2 database and the API can be tested using Postman.

To run:

$ mvn spring-boot:run

Endpoints
GET Person by personId
/person/id/{personId}
GET Person by personName
/person/name/{personName}
GET Person by personAge
/person/age/{personAge}
GET Person List
/persons
POST / add Person
/person/add
PUT / update Person by personId
/person/update/{personId}
TODOs
  • Implement Swagger
  • Write tests

About

Java, Spring, H2

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages