Skip to content

NodeJS assessment for AttainU instructor hiring

Notifications You must be signed in to change notification settings

tithu/NodeJS-basics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NodeJS-basics

NodeJS assessment for AttainU instructor hiring

Need to pass JWT token in header of request as x-access-token. JWT token will be received in login request. 2 users are currently entered into db so use that only.

  1. Login request: request body:

admin user: { "email":"[email protected]", "password":"admin@123" } non-admin user:{ "email":"[email protected]", "password":"student@123" }

  1. Create post: POST request body:{ "text":"hello abcdef", "author":"[email protected]" }

  2. read post: GET

  3. update post: POST request body:{ "author":"[email protected]", "post_id":"613f8f0e6309c64170007bd2", "text":"hello there" }

  4. delete post:POST request body:{ "author":"[email protected]", "post_id":"613f883d68cf25d94d14bc1d" }

About

NodeJS assessment for AttainU instructor hiring

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published