Skip to content

syedkither/studentmicroservice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 

Repository files navigation

studentmicroservice

Student micro service

Description : Designed course and student microservices as per CodingTest-Microservice.pdf

  1. MYSQL database

    • install mysql database in local system

    • create account

    • create database : testdb

    • Entity will be added automatically by spring bootstrap class

      Tables

    • select * from students;

    • select * from courses;

    • select * from students_courses;

  2. RabbitMQ

    • Student micro service will be reciever/consumer of queue StudentAQ and StudentRQ
  3. Run spring boot application by maven run configuration

    * clean install spring-boot:run
    
  4. Verify the output via POSTMAN

      * 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
    
  5. Content Negotiation end-points

    • 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.

  1. API Documentation

    swagger core is implemented and available @ http://localhost:8080/v2/api-docs

About

student micro service

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages