Skip to content

Commit

Permalink
Added supabaseAdmin middleware to all CRUD
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexVOiceover committed Aug 7, 2024
1 parent 58f3865 commit f73f993
Showing 1 changed file with 34 additions and 5 deletions.
39 changes: 34 additions & 5 deletions tests/users.http
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,7 @@
GET http://localhost:3000/users/all

### Get user by id
<<<<<<< HEAD
GET http://localhost:3000/users/id/1
=======
GET http://localhost:3000/users/id/2
>>>>>>> recovery_branch

### Get user by email
GET http://localhost:3000/users/email/[email protected]
Expand All @@ -32,4 +28,37 @@ Content-Type: application/json
}

### Delete user
DELETE http://localhost:3000/users/7
DELETE http://localhost:3000/users/7


### Remote

### Get all users
GET https://nisa-invest-tfb-be.vercel.app/users/all

### Get user by id
GET https://nisa-invest-tfb-be.vercel.app/users/id/2

### Get user by email
GET https://nisa-invest-tfb-be.vercel.app/users/email/[email protected]

### Create user
POST https://nisa-invest-tfb-be.vercel.app/users
Content-Type: application/json

{
"email": "[email protected]",
"first_name": "New User",
"password": "securepassword123"
}

### Update user
PUT https://nisa-invest-tfb-be.vercel.app/users/1
Content-Type: application/json

{
"first_name": "Updated Name"
}

### Delete user
DELETE https://nisa-invest-tfb-be.vercel.app/users/7

0 comments on commit f73f993

Please sign in to comment.