Skip to content

Yarl-IT-Hub/Assistive-Tech-API

Repository files navigation

DEAF API - node, express with mysql

Node.js + MySQL API for User Management, Authentication and Registration

deadss

How to register a new user with Postman / insomnia

To register a new user with the api follow these steps:

{
    "firstName": "shan",
    "lastName": "jathu",
    "email": "[email protected]",
    "password": "my-super-secret-password"
}
{
    "email": "[email protected]",
    "password": "my-super-secret-password"
}
{
    "firstName": "shan",
    "lastName": "jathu",
    "email": "[email protected]",
    "password": "123456"
}
  • RESET PASSWORD
api 1 - method (POST)
http://localhost:4000/admin/sendOTP 
body  => { "email" : "[email protected]" }

api 2 - method (POST) 
http://localhost:4000/admin/checkOTP 
body => { "email" : "[email protected]", "resetotp": "66975" }

api 3 - method (PUT) 
http://localhost:4000/admin/[email protected]
body => { "password": "123456" }

API URLs

Paths = [ users, subjects, grades, types, terms ]

View all (GET)   - http://localhost:4000/{Paths}
View by Id (GET) - http://localhost:4000/{Paths}/5
Create (POST)    - http://localhost:4000/{Paths}
Update (PUT)     - http://localhost:4000/{Paths}
Delete (DELETE)  - http://localhost:4000/{Paths}/7

Have a good day!

  • Developer - SHANJATHURSHAN.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published