Skip to content

renjithraj2005/spring-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Demo App with Course Model

Assumptions

  • Tax is implemented with the assumption, tax is same across the country
  • Unique id that is exposed via API is auto generated. But hardcoding this since there is no listing API
  • Not using the request location data to identify the requesting country and filter resluts by country

Other Notes

  • H2 Database used for the test to run code quickly
  • Added Unit Test for controller which can be executed via IDE

Build & Run

  • >mvn spring-boot:run : to run independently

API END POINT

$ curl -X GET "http://localhost:8080/api/v1/course/price/eb01803e-0a8c-4a10-bfce-4cabbea90944" -H "accept: */*"

Swagger-UI

Swagger UI has been added to the code to directly hit the endpoints without the use of a separate application.

For embedded tomcat the url is http://localhost:8080/swagger-ui.html#/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages