Skip to content

anton-patrushev/multithreaded-http-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to use

Available routes

  • POST /api/users/register - pass body = {email: "<email>", password: "<password>"}
  • POST /api/users/login - pass body = {email: "<email>", password: "<password>"}
  • PATCH /api/users - pass jwt-token as Authorization header, body = {password: "<password>", newPassword:"<newPassword>"}
  • DELETE /api/users?id=<id> - pass jwt-token as Authorization header, body = {password: "<password>", newPassword:"<newPassword>"}
  • GET /api/tasks?userId=<userId> - pass jwt-token as Authorization header
  • POST /api/tasks?userId=<userId> - pass jwt-token as Authorization header, body = {data: "<todo-note>"}
  • PATCH /api/tasks?userId=<userId>&id=<taskId> - pass jwt-token as Authorization header, body = {data: "<new-todo-note>"}
  • DELETE /api/tasks?userId=<userId>&id=<taskId> - pass jwt-token as Authorization header

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published