Live Link: https://cow-hut-auth-ochre.vercel.app/
Cow Hut Routes:
I have also added the POSTMAN json so you can easily hit the routes
[POST] - https://cow-hut-auth-ochre.vercel.app/api/v1/auth/signup
[POST] - https://cow-hut-auth-ochre.vercel.app/api/v1/auth/login
[POST] - https://cow-hut-auth-ochre.vercel.app/api/v1/auth/refresh-token
[POST] - https://cow-hut-auth-ochre.vercel.app/api/v1/admins/create-admin
[POST] - https://cow-hut-auth-ochre.vercel.app/api/v1/admins/login
[GET] - https://cow-hut-auth-ochre.vercel.app/api/v1/users [Admin access]
[GET Single] - https://cow-hut-auth-ochre.vercel.app/api/v1/users/648d4d6c4b51c07888083a10 [Admin access]
[PATCH] - https://cow-hut-auth-ochre.vercel.app/api/v1/users/648d4d6c4b51c07888083a10 [Admin access]
[DELETE] - https://cow-hut-auth-ochre.vercel.app/api/v1/users/648d565a82ae71caffdca873 [Admin access]
[POST] - https://cow-hut-auth-ochre.vercel.app/api/v1/cows [Seller access]
[GET] - https://cow-hut-auth-ochre.vercel.app/api/v1/cows [Admin, Seller, Buyer access]
[GET Single] - https://cow-hut-auth-ochre.vercel.app/api/v1/cows/648da4e0d1e0a99c8295d2a3 [Admin, Seller, Buyer access]
[PATCH] - https://cow-hut-auth-ochre.vercel.app/api/v1/cows/648da4e0d1e0a99c8295d2a3 [Admin access]
[DELETE] - https://cow-hut-auth-ochre.vercel.app/api/v1/cows/648ebc0320969e183ebc3e99 [Admin access]
Pagination and Filtering routes of Cows
[GET] - https://cow-hut-auth-ochre.vercel.app/api/v1/cows?page=1&limit=10 [Admin, Seller, Buyer access]
[GET] - https://cow-hut-auth-ochre.vercel.app/api/v1/cows?sortBy=price&sortOrder=asc [Admin, Seller, Buyer access]
[GET] - https://cow-hut-auth-ochre.vercel.app/api/v1/cows?minPrice=20000&maxPrice=70000 [Admin, Seller, Buyer access]
[GET] - https://cow-hut-auth-ochre.vercel.app/api/v1/cows?location=Chattogram [Admin, Seller, Buyer access]
[GET] - https://cow-hut-auth-ochre.vercel.app/api/v1/cows?searchTerm=Cha [Admin, Seller, Buyer access]
[POST] - https://cow-hut-auth-ochre.vercel.app/api/v1/orders [Buyer access]
[GET] - https://cow-hut-auth-ochre.vercel.app/api/v1/orders [Admin, Specific Seller,Specific Buyer access]
[POST] - https://cow-hut-auth-ochre.vercel.app/api/v1/orders [Buyer access]
[GET] - https://cow-hut-auth-ochre.vercel.app/api/v1/orders [Admin, Specific Seller,Specific Buyer access]
[POST] - https://cow-hut-auth-ochre.vercel.app/api/v1/admins/create-admin
[GET] - https://cow-hut-auth-ochre.vercel.app/api/v1/users/my-profile [Buyer, Seller access] [PATCH] - https://cow-hut-auth-ochre.vercel.app/api/v1/users/my-profile [Buyer, Seller access]
[GET] - https://cow-hut-auth-ochre.vercel.app/api/v1/orders/648ecf4b8ae9e3eeb3e6a411 [Specific Buyer, Specific Seller access]