GithubHelp home page GithubHelp logo

manishkini / hospital-api Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 33 KB

We’re going to design an API for the doctors of a Hospital which has been allocated by the govt for testing and quarantine + well being of COVID-19 patients

JavaScript 100.00%

hospital-api's Introduction

hospital-api

We’re going to design an API for the doctors of a Hospital which has been allocated by the govt for testing and quarantine + well being of COVID-19 patients

FOLDER STRUCTURE

.
├── config # Mongoose file (initializing Mongoose, passport-jwt-strategy)
├── controllers # Controller files (For Writing business logic)
├── models # Models files (for initilizing schema)
├── routes # Routes(route related files)
├── index.js
└── README.md

PROJECT STARTING GIUDE

Install all dependencies
npm install
Start The Project
npm start

ROUTES FOR TESTING

Doctor

-> it ask username and password

POST /api/doctor/register

-> it ask username and password and responds with token

POST /api/doctor/login
Patient

-> it ask patients phone number

POST /api/patient/register

-> it ask patient_id in url params and status in request body.

POST /api/patient/:id/create_report

-> it ask patient_id in url params, it responds all the reports of patient from old to new.

GET /api/patient/:id/all_reports
Report

-> it ask status in url params, it responds all the reports of multiple patients.

GET /api/reports/:status

hospital-api's People

Contributors

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