http://localhost:3000/users/signup
{
"email" : "[email protected]",
"password" : "1234",
"name" : "fransiskus arnoldy"
}
{
message : `Created account succsess`
}
{
"message": "email has been use, try another email"
}
http://localhost:3000/users/all
token
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjViYjg5ZWEwM2MyZjMxM2RmNjVhNTE5NyIsImVtYWlsIjoiaGFsb0BnbWFpbC5jb20iLCJuYW1lIjoiZnJhbnNpc2t1cyBhcm5vbGR5IiwiaWF0IjoxNTM4ODQwODQ4fQ.x87xTVmdlChvcP2cWgsrZQ8LkGA51ea8DrP7FRRSTLA
{
}
401 :
{
"message": "You must login First"
}
http://localhost:3000/users/all
token
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjViYjg5ZWEwM2MyZjMxM2RmNjVhNTE5NyIsImVtYWlsIjoiaGFsb0BnbWFpbC5jb20iLCJuYW1lIjoiZnJhbnNpc2t1cyBhcm5vbGR5IiwiaWF0IjoxNTM4ODQwODQ4fQ.x87xTVmdlChvcP2cWgsrZQ8LkGA51ea8DrP7FRRSTLA
{
}
401 :
{
"message": "You must login First"
}
{
"email" : "[email protected]",
"password" : "1234"
}
{
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjViYjhlY2YyOTdhNTFkNzZkZDUwNGY4NCIsImVtYWlsIjoiaGFsb0BnbWFpbC5jb20iLCJuYW1lIjoiZnJhbnNoaXJvIiwiaXNHb29nbGUiOmZhbHNlLCJpYXQiOjE1Mzg5NTg0NTR9.Oum_pdqLvHaA1qtPwTJuOJgQLR1KGyQq5rHKWIe_pAk"
}
{
"message": "Email or Password is Incorrect"
}
http://localhost:3000/users/profile
token
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjViYjg5ZWEwM2MyZjMxM2RmNjVhNTE5NyIsImVtYWlsIjoiaGFsb0BnbWFpbC5jb20iLCJuYW1lIjoiZnJhbnNpc2t1cyBhcm5vbGR5IiwiaWF0IjoxNTM4ODQwODQ4fQ.x87xTVmdlChvcP2cWgsrZQ8LkGA51ea8DrP7FRRSTLA
http://localhost:3000/users/edit
token
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjViYjg5ZWEwM2MyZjMxM2RmNjVhNTE5NyIsImVtYWlsIjoiaGFsb0BnbWFpbC5jb20iLCJuYW1lIjoiZnJhbnNpc2t1cyBhcm5vbGR5IiwiaWF0IjoxNTM4ODQwODQ4fQ.x87xTVmdlChvcP2cWgsrZQ8LkGA51ea8DrP7FRRSTLA
{
"email" : "[email protected]",
"name" : "frans arnold",
"password" : "1234"
}
http://localhost:3000/users/delete
token
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjViYjhlY2YyOTdhNTFkNzZkZDUwNGY4NCIsImVtYWlsIjoiaGFsb0BnbWFpbC5jb20iLCJuYW1lIjoiZnJhbnNoaXJvIiwiaXNHb29nbGUiOmZhbHNlLCJpYXQiOjE1Mzg4NTM2ODV9.OzRkzV4UJ8RNIxEzo4BEvJ5os0QMe42xPpqClhTaFFM
http://localhost:3000/todos/add
token
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjViYjhlY2YyOTdhNTFkNzZkZDUwNGY4NCIsImVtYWlsIjoiaGFsb0BnbWFpbC5jb20iLCJuYW1lIjoiZnJhbnNoaXJvIiwiaXNHb29nbGUiOmZhbHNlLCJpYXQiOjE1Mzg4NTM2ODV9.OzRkzV4UJ8RNIxEzo4BEvJ5os0QMe42xPpqClhTaFFM
{
"title" : "venom",
"description" : "nonton bareng film venom di gandaria city",
"dueDate" : "10-19-2018"
}
{
"message": "Success create todo list"
}
{
"message": "You must login First"
}
http://localhost:3000/todos/update/5bb90bb23de07a0b69b085e0
token
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjViYjhlY2YyOTdhNTFkNzZkZDUwNGY4NCIsImVtYWlsIjoiaGFsb0BnbWFpbC5jb20iLCJuYW1lIjoiZnJhbnNoaXJvIiwiaXNHb29nbGUiOmZhbHNlLCJpYXQiOjE1Mzg4NTM2ODV9.OzRkzV4UJ8RNIxEzo4BEvJ5os0QMe42xPpqClhTaFFM
{
"title" : "makan siang",
"description" : "makan siang bareng teman2 hacktiv",
"dueDate" : "10-10-2018"
}
{
"message": "Update todo Success"
}
{
"message": "You must login First"
}
http://localhost:3000/todos/setFinish/:id
token
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjViYjhlY2YyOTdhNTFkNzZkZDUwNGY4NCIsImVtYWlsIjoiaGFsb0BnbWFpbC5jb20iLCJuYW1lIjoiZnJhbnNoaXJvIiwiaXNHb29nbGUiOmZhbHNlLCJpYXQiOjE1Mzg4NTM2ODV9.OzRkzV4UJ8RNIxEzo4BEvJ5os0QMe42xPpqClhTaFFM
{
"message": "Your todo has been set to finish"
}
{
"message": "You must login First"
}
http://localhost:3000/todos/setNotFinishYet/:id
token
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjViYjhlY2YyOTdhNTFkNzZkZDUwNGY4NCIsImVtYWlsIjoiaGFsb0BnbWFpbC5jb20iLCJuYW1lIjoiZnJhbnNoaXJvIiwiaXNHb29nbGUiOmZhbHNlLCJpYXQiOjE1Mzg4NTM2ODV9.OzRkzV4UJ8RNIxEzo4BEvJ5os0QMe42xPpqClhTaFFM
{
"message" : `Your todo has been set to unFinish`
}
{
"message": "You must login First"
}
http://localhost:3000/todos/update/:id
token
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjViYjhlY2YyOTdhNTFkNzZkZDUwNGY4NCIsImVtYWlsIjoiaGFsb0BnbWFpbC5jb20iLCJuYW1lIjoiZnJhbnNoaXJvIiwiaXNHb29nbGUiOmZhbHNlLCJpYXQiOjE1Mzg4NTM2ODV9.OzRkzV4UJ8RNIxEzo4BEvJ5os0QMe42xPpqClhTaFFM
{
"message": "Delete Success"
}
{
"message": "You must login First"
}
http://localhost:3000/todos/show
token
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjViYjhlY2YyOTdhNTFkNzZkZDUwNGY4NCIsImVtYWlsIjoiaGFsb0BnbWFpbC5jb20iLCJuYW1lIjoiZnJhbnNoaXJvIiwiaXNHb29nbGUiOmZhbHNlLCJpYXQiOjE1Mzg4NTM2ODV9.OzRkzV4UJ8RNIxEzo4BEvJ5os0QMe42xPpqClhTaFFM
{
"todos": [
{
"isFinish": false,
"_id": "5bb90c3d3de07a0b69b085e1",
"title": "kencan",
"description": "jalan-jalan ke mall , nonton",
"dueDate": "2018-10-09T17:00:00.000Z",
"createdAt": "2018-10-06T19:25:49.924Z",
"updatedAt": "2018-10-06T20:16:28.162Z",
"__v": 0
}
]
}
{
"message": "You must login First"
}