Speakers-Stage
- NodeJs
- DynamoDB
Note : All API's are Auth Protected
URL : localhost:3003/create/user
Method : POST
payload :
{
"email":"[email protected]",
"password":"12345600",
"age":"24",
"gender":"MALE"
}
Functionality : It Register/Create Users into the APP , Contains all Fields Validation.
URL : localhost:3003/login
Method : POST
payload:
{
"email":"[email protected]",
"password":"12345600"
}
Functionality : It Login Users into the APP , Contains all Fields Validation.
In Response ==> JWT Token
{
"status": "true",
"info": "Successfully Loged In",
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6InlvZ2VuZHJhc2F4ZW5hNTZAZ21haW
wuY29tIiwiaWF0IjoxNTU2NDg1NjU2fQ.5BZNEuGfQiHBbfYRlbdJCv4mco96aDibP4Ma-jw_FSY"
}
URL : localhost:3003/create/post
Method : POST
payload:
{
"post":"Marvel EndGame is breaking all Records"
}
Header :
apiKey : JWT_TOKEN_OF_LOGEDIN_USER
Functionality : Logged In user can Create Post
URL : localhost:3003/follow/user/:email
example: localhost:3003/follow/user/[email protected]
Method : GET
Header :
apiKey : JWT_TOKEN_OF_LOGEDIN_USER
Functionality : Logged In user can follow some other User
URL : localhost:3003/fetch/post
Method : GET
Header :
apiKey : JWT_TOKEN_OF_LOGEDIN_USER
Functionality : Get All Posts of the Logged In User
URL : localhost:3003/fetch/user
Method : GET
Header :
apiKey : JWT_TOKEN_OF_LOGEDIN_USER
Functionality : Get All details of the Logged In User
URL : localhost:3003/check/following/:postId
example : localhost:3003/check/following/e8cde1da-ca11-46f7-a357-894058c69fa5
Method : GET
Header :
apiKey : JWT_TOKEN_OF_LOGEDIN_USER
Functionality : Checks if the Logged In user Follows the Author of the Passed PostId
URL : localhost:3003/logout
Method : DELETE
Header :
apiKey : JWT_TOKEN_OF_LOGEDIN_USER
Functionality : Log Out the User
Yogendra Saxena