Giter VIP home page Giter VIP logo

hospitalapi2's Introduction

HospitalApi

Fetaures

Routes

check uses postman

for register

http://localhost:8000/api/v1/doctors/register(use this link)

Output { "message": "registered successfully" }

for login

http://localhost:8000/api/v1/doctors/login Output

{ "message": "Sign in,successfull, here is your token and keep it safe!", "data": { "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI1Zjg1YTg5ZWQ4NmQ3YTMyYjgwYTQzNjkiLCJuYW1lIjoiYWRpdHlhIiwiZW1haWwiOiJzb25hQGdtYWlsLmNvbSIsInBhc3N3b3JkIjoiamhhIiwiY3JlYXRlZEF0IjoiMjAyMC0xMC0xM1QxMzoxNjoxNC42MDBaIiwidXBkYXRlZEF0IjoiMjAyMC0xMC0xM1QxMzoxNjoxNC42MDBaIiwiX192IjowLCJpYXQiOjE2MDI1OTUxMTYsImV4cCI6MTYwMzU5NTExNn0.AuHyHttzC_cgf5bNkA41i-iKGCv88u-RdGoBnDSHrNg", "doctor": { "_id": "5f85a89ed86d7a32b80a4369", "name": "aditya", "email": "[email protected]", "password": "jha", "createdAt": "2020-10-13T13:16:14.600Z", "updatedAt": "2020-10-13T13:16:14.600Z", "__v": 0 } } }

for resistered patient

http://localhost:8000/api/v1/patient/register

Output:

{ "message": "You registered patient successfully", "patient": { "reports": [ "5f859c415a7ed466a4d4a940", "5f85a5f7d86d7a32b80a4368" ], "_id": "5f85791f00ff1071b81be10b", "name": "rahul", "phone": 8750037661, "doctor": "5f856bb5e368432e044de2db", "createdAt": "2020-10-13T09:53:35.573Z", "updatedAt": "2020-10-13T13:04:55.325Z", "__v": 2 } }

for create the report

http://localhost:8000/api/v1/patient/5f859c415a7ed466a4d4a940/create_report

hospitalapi2's People

Contributors

rahuljha12527 avatar

Watchers

James Cloos avatar  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.