Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.
/ ph-covid19-api Public archive

RESTful API Node Server for COVID-19 cases in the Philippines

License

Notifications You must be signed in to change notification settings

yohlime/ph-covid19-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RESTful API Node Server for COVID-19 cases in the Philippines

API Documentation

To view the list of available APIs and their specifications, run the server and go to http://localhost:3000/v1/docs in your browser. This documentation page is automatically generated using the swagger definitions written as comments in the route files.

API Endpoints

List of available routes:

User routes:
GET /v1/cases - get all cases
GET /v1/cases/:caseId - get case
GET /v1/cases/stats - get cases stats

Auth routes:
POST /v1/auth/register - register
POST /v1/auth/login - login
POST /v1/auth/refresh-tokens - refresh auth tokens
POST /v1/auth/forgot-password - send reset password email
POST /v1/auth/reset-password - reset password

User routes:
POST /v1/users - create a user
GET /v1/users - get all users
GET /v1/users/:userId - get user
PATCH /v1/users/:userId - update user
DELETE /v1/users/:userId - delete user

Contributing

Contributions are more than welcome! .

Acknowledgements

License

MIT

About

RESTful API Node Server for COVID-19 cases in the Philippines

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published