Student micro service
Description : Designed course and student microservices as per CodingTest-Microservice.pdf
-
-
install mysql database in local system
-
create account
-
create database : testdb
-
Entity will be added automatically by spring bootstrap class
-
select * from students;
-
select * from courses;
-
select * from students_courses;
-
-
- Student micro service will be reciever/consumer of queue StudentAQ and StudentRQ
-
* clean install spring-boot:run
-
* GET METHOD : http://localhost:8080/student/get?courseID=3 * DELETE METHOD : http://localhost:8080/student/remove?studentID=1 * POST METHOD : http://localhost:8080/student/add?courseID=4 * REQUEST PAYLOAD : { "name": "syed", "age": 37 } * Content-type : application/json
-
- Using URL suffixes (extensions) in the request (eg .xml/.json)
- Using URL parameter in the request (eg ?format=json)
- Using Accept header in the request
By default, this is the order in which the Spring content negotiation manager will try to use these three strategies. And if none of these are enabled, we can specify a fallback to a default content type of json.
- swagger core is implemented and available @ http://localhost:8080/v2/api-docs