Giter VIP home page Giter VIP logo

rest_api_covid_application's Introduction

๐ŸŽฏ REST API - COVID APPLICATION

This web application will facilitate the citizen with an option to register and schedule the vaccination session online in Centers of their choice. The Citizen self-registration module will ensure fool-proof identification of deserving candidates for receiving the vaccines.

๐Ÿ’ก UML Vaccination

Alt text here

Features

  • Data Authentication and Validation for all the users (Admin and Member)
  • REST API documentation using swagger puglins

Admin API Features

  • Admin can access all the information of vaccination centers and Member Information.
  • Admin can access perform all CRUD operation related to vaccination center and members as well.

Member API Features

  • Member can login in the application and update their information using their username, password and Adharcard.
  • Member can search for the vaccination center nearby and bookthe appoinment for the same.
  • Member can able to register five family members on one mobile number and track theere vaccination details.
  • Member can get all the appointments details mapped with mobile number.

Installation & Run

  • Before running the API server, you should update the database config inside the application.properties file.
  • Update the port number, MySQL database username and password as per your local database configuration.
    server.port=8080

    spring.datasource.url=jdbc:mysql://localhost:3306/cowindb;
    spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
    spring.datasource.username=root
    spring.datasource.password=root

API Root Endpoint

https://localhost:8080/
http://localhost:8080/swagger-ui/index.html

API References

Customer Requests

Member Controller

Request METHOD URI Description
PUT Update http://localhost:8080/user/update Update existing user
POST register http://localhost:8080/user/register Register new user
POST Login http://localhost:8080/user/login User Login
POST Book Appointment http://localhost:8080/user/bookappointment Book Appoinment
POST Appointment Detail http://localhost:8080/user/appointmentdetails Appointment Detail
POST Get Member http://localhost:8080/user/getmeber/mobile Get Member By Mobile Number
GET Center List http://localhost:8080/user/allcenters Center List
DELETE Delete http://localhost:8080/user/delete Delete existing user
DELETE Cancel Appointment http://localhost:8080/user/cancelappointment Cancel Appoinment

Admin Requests

Vaccine Center Admin Controller :

Request METHOD URI Description
PUT Update Center http://localhost:8080/admin/updatecenter Update Center Details
DELETE Delete Center http://localhost:8080/admin/removecenter Remove Center Details
GET Center List http://localhost:8080/admin/allcenters Get All center Details
POST Create Center http://localhost:8080/admin/savecenter Save new center details
POST Center By Id http://localhost:8080/admin/getcenterbyid Get Center details by center ID

Sample API response - Member Registeration

Request Type

POST

Request URI

http://localhost:8080/user/register

Request Body

{
    "mobileno": "9953805224",
    "passWord":"ram@123",
    "adharcard": {
        "adharNo": "224319664199",
        "name": "Ramesh",
        "dob": "08/15/1995",
        "gender": "Male",
        "addressline": "Ayodhya",
        "city": "Ayodhya",
        "state": "UP",
        "pincode": "432939"
    }
}

Response Body

{
    "memberId": 5,
    "mobileno": "9953805224",
    "passWord": "ram@123",
    "adharcard": {
        "adharNo": "224319664199",
        "name": "Ramesh",
        "dob": "08/15/1995",
        "gender": "Male",
        "addressline": "Ayodhya",
        "city": "Ayodhya",
        "state": "UP",
        "pincode": "432939"
    }
}

This is a collaborative project, completed by a team of 4 backend developers at Masai School.

Collaborators

Tech Stack

  • Java
  • Hibernate
  • Spring Framework
  • Spring Boot
  • Spring Data JPA
  • MySQL
  • Swagger UI
  • Maven

rest_api_covid_application's People

Contributors

codingshivam27 avatar kushites avatar mistrivishal avatar shubhambhadouria avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.