-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added supabaseAdmin middleware to all CRUD
- Loading branch information
1 parent
58f3865
commit f73f993
Showing
1 changed file
with
34 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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] | ||
|
@@ -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 |