Skip to content

ibolyachko/store-api

Repository files navigation

Store API

Technology Stack:

  • Node.js
  • Express.js
  • MongoDB
  • Mongoose
  • JWT
  • Jest
  • Webpack

Endpoints:

  • /auth Endpoints for authorization

    • POST /auth/login Login an employee
  • /staff Endpoints for creating and reading employees

    • POST /staff Register an employee
    • GET /staff Get all employees
  • /customers Endpoints for creating and reading clients

    • POST /customers Create new customer
    • GET /customers Get all clients
  • /customers/:hash Endpoints for creating, reading and updating clients by hash

    • GET /customers/{hash} Get a client by hash
    • PUT /customers/{hash} Update client by hash
    • DELETE /customers/{hash} Remove client by hash
  • /products Endpoints for creating and reading products

    • POST /products Create a new product
    • GET /products Get all products
  • /products/:hash Endpoints for creating, reading and updating products by hash

    • GET /products/{hash} Get a product by hash
    • PUT /products/{hash} Update a product by hash
    • DELETE /products/{hash} Remove a product by hash
  • /orders Endpoints for creating and reading orders

    • POST /orders Create a new order
    • GET /orders Get all orders
  • /orders/:hash Endpoints for creating, reading and updating orders by hash

    • GET /orders/{hash} Get an order by hash
    • PUT /orders/{hash} Update order by hash
    • DELETE /orders/{hash} Delete order by hash

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published