Code Monkey home page Code Monkey logo

stock-management-system's Introduction

Products API ( Still in development ... )

Product

    • /product/list - GET - returns all products (Paginated)
    • Query Params:
      • 'filter' - Optional - searches products by the filter in the fields (name)
      • 'categoryId' - Optional - to filter products by category
    • /product/:id - GET - returns a single product
    • /product/:id - DELETE - removes a product
    • /product/:id - PATCH - updates a product
    • /product/ - POST - creates a product
    • /product/image - POST - add image to cloud bucket and connect url to product

Category

    • /category/list - GET - returns all categories (Paginated)
    • /category/:id - GET - returns a single category
    • /category/:id - PATCH - update a category
    • /category/:id - DELETE - removes a category
    • /category/ - POST - creates a category

Image

    • /image/:id - GET - returns a image by id
    • /image/:id - DELETE - removes a image by id

Auth

    • /auth/signup/employee - POST - create a user with the "employee" role

Me

    • /me/picture - POST - Add user profile picture

User

    • /user/list - GET - List all users (Paginated)
    • Query Params:
      • 'role' - Optional - to filter users by role
      • 'filter' - Optional - searches users by the filter in the fields (firstName, lastName, nif, email)
    • /user/:id/ - GET - Get user by id
    • /user/:id - DELETE - Remove User
    • /user/:id - PATCH - Update user by id
    • /user/:id/product/list - GET - List all products created by the user (Paginated)
    • /user/:id/category/list - GET - List all categories created by the user (Paginated)
    • /user/:id/supplier/list - GET - List all suppliers created by the user (Paginated)
    • /user/:id/role/list - GET - List all user roles

Supplier

    • /supplier/list - GET - List all suppliers (Paginated)
    • /supplier/ - POST - Create Supplier
    • /supplier/:id - GET - Get supplier by id
    • /supplier/:id - PATCH - Update supplier by id
    • /supplier/:id - DELETE - Delete supplier by id
    • /supplier/:id/product/list - GET - List all products from supplier (Paginated)

stock-management-system's People

Contributors

mariowork avatar

Stargazers

 avatar

Watchers

 avatar  avatar

stock-management-system's Issues

Feat(API/list): GET Routes Sorting

When executing the list routes it should allow the request to sort (desc/asc) (field)

  • Create a plugin 'Sorting' that decorates the instance with function to retrieve the queries from request
  • Routes should use the previous function
  • Corresponding services should allow sorting

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.