#Spring cloud and react exercise
##How to run
- Start config-server
ConfigServerApplication
.- The config-server application needs a git repository.
- This git repository should contain the config files for all the services.
- The config-server
application.properties
should have a pointer to the git repository location. - The git repository with config files can be cloned from: TODO
- Start eureka-server
EurekaServerApplication
. - Start each x-service
XServiceApplication
.
###Notes:
- Wait to start
EurekaServerApplication
untilConfigServerApplication
is done. - Wait to start
XServiceApplication
untilEurekaServerApplication
is done.
##Services ###student-service
Method | URL | Extra | Effect |
---|---|---|---|
GET | '/student' | returns all students without address | |
GET | '/student/{email}' | ?includeAddress=true/false default=false | return matching student with address |
POST | '/student' | create a student |