Skip to content

waterlooworksV2/backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Backend

Routes

Users

Status Type Parameters URL Response
[ ] GET None /user/ {...}
get current user details,
lists owned
[x] POST ,email,
password,
name
/user/ {...}
creates a user with given details
[x] POST email,
password
/login {...}
logs user in, returns JWT
[x] DELETE email, password /users/ {...}
delete user with given details

Jobs

Status Type Parameters URL Response
[x] GET jobID /job/:jobID {...}
full job details
[x] GET jobID /job/preview/:jobID {...}
preview job details

Job IDs

Status Type Parameters URL Response
[x] GET jobID /ids/?q=<query-string> {...}
job Ids

Lists

Status Type Parameters URL Response
[ ]
pagination pending
GET None /list {...}
list details of first N=pageSize lists
[ ]
pagination pending
GET listID /list/:listID {...}
preview details of first N=pageSize jobs
[x] DELETE listID /list/:listID delete list with listID
[x] POST jobID,listID /list/:listID/:jobID {...}
add jobID to listID
[x] DELETE jobID,listID /list/:listID/:jobID {...}
remove jobID from listID