Skip to content

vicsyl/rest-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

#Rest demo

Building and running the demo

  • building: mvn clean package spring-boot:run
  • running: java -Dspring.profiles.active=dev -jar target/rest-demo-0.0.1-SNAPSHOT.jar

REST API

Configuration

  • Default, dev and prod (template) conf files:
  • application.properties
  • application-dev.properties
  • application-prod.properties

Mocks

Exceptions:

  • PreferencesUpdateMock will throw an exception four times in 10 calls. ** this is to test the email sync method how it will cope with errors and to test the retry functionality ** this will render as two exceptions (one on either side of the REST call) in the log ** one of the exceptions has message: Even a mock will sometimes let you down
  • PreferencesUpdateMock and UserTestController will be disabled in other than dev profile ** see application-dev.properties and the classes

##TODOs

  • Unit tests
  • Thorough testing
  • I suspect the User <-> EmailPreferenceItem many to many relationship might have some issues

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages