Add mock data + Fix package.json not pushed + Add REST requests

This commit is contained in:
Andrew Trieu
2023-07-11 22:12:25 +03:00
committed by Andrew Trieu
parent a25ea2d90a
commit f3d5ce2524
12 changed files with 2648 additions and 9 deletions

View File

@@ -0,0 +1,2 @@
GET localhost:3001/posts/
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY0YWRhMGMzNWZjYmJmNmI4YzI0ZGZkMSIsImFkbWluIjp0cnVlLCJpYXQiOjE2ODkxMDIwNzF9.YmbSFv4q6sTRqw0bvxQN-dBiKElEY8NcGeIKqu6B0lw

View File

@@ -0,0 +1,2 @@
GET localhost:3001/users/64ada0c35fcbbf6b8c24dfd2
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY0YWRhMGMzNWZjYmJmNmI4YzI0ZGZkMSIsImFkbWluIjp0cnVlLCJpYXQiOjE2ODkxMDIwNzF9.YmbSFv4q6sTRqw0bvxQN-dBiKElEY8NcGeIKqu6B0lw

6
server/debug/login.rest Normal file
View File

@@ -0,0 +1,6 @@
POST localhost:3001/auth/login
{
"email": "admin@chathive.com",
"password": "admin"
}

View File

@@ -0,0 +1 @@
POST localhost:3001/users/