Coder Social home page Coder Social logo

cow-hut's Introduction

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

Auth (User)


[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

Auth (Admin)


[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

User


[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]

Cows


[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]

Orders


[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]

Bonus Part


[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]

Admin


[POST] - https://cow-hut-auth-ochre.vercel.app/api/v1/admins/create-admin

My Profile


[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]

Order:


[GET] - https://cow-hut-auth-ochre.vercel.app/api/v1/orders/648ecf4b8ae9e3eeb3e6a411 [Specific Buyer, Specific Seller access]

cow-hut's People

Contributors

soumik9 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.