Skip to content

rayykim/Go-Green

 
 

Repository files navigation

Go-Green

ALWAYS send 'Content-Type': 'application/json' header when you send a body (body generally has to be wrapped in JSON.stringify())

post: /users request body expects "username" and "password" properties which are both strings

get: /recyclingHistory request headers expects "username" property which is a string, and "Content-Type" of "application/json"

post: /recyclingHistory request body expects "username" property which is a string, and a "history" property object in the format {"date": , "amountPaid": , "amountRecycled": }

post: /login request body expects "username" and "password" properties which are strings

post: /verifyToken body doesn't expect anything, will just check cookies if the token is valid, it should return an object with the properties 'username' and 'iat'. the username can be used to query the database and fetch the user's data

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 69.1%
  • JavaScript 28.6%
  • HTML 2.3%