Skip to content
This repository was archived by the owner on Dec 10, 2024. It is now read-only.

Controllers

Ruben Brinkman edited this page Jan 13, 2020 · 1 revision

Controllers

Point of sale controller

This controller currently has the following features already:

  • Request all the points of sale from an organ (owner)
  • Create a new point of sale
  • Get/update/delete and reinstate a point of sale with its ID
  • Get and update a property of a point of sale by it's ID
  • Get all the storages of a point of sale by it's ID
  • Attach and remove a storage to a point of sale

Product controller

This controller currently has the following features already:

  • Get all the products of an organ (owner)
  • Create a new product
  • Get/update/delete and reinstate a product by it's ID
  • Get and update a property of a product by it's ID

BAC Controller

This controller currently has the following features already:

  • Get all the roles (owners) that belong to an organ
  • Create a new role
  • Get all the roles by ID
  • Update/delete and reinstate a role
  • Add and remove a user to a role by it's ID's
  • Get all the permissions for a role by it's ID
  • Get all permissions
  • Add and remove a permission to a role by it's ID's

Storage Controller

This controller currently has the following features already:

  • Get all the storages of an organ (owner) by it's ID
  • Create a new storage
  • Get/update/delete and reinstate a storage by it's ID
  • Get and update a property of a storage by it's ID
  • Get all the products in a storage by it's ID
  • Get and update the stock of a product in a storage by it's ID's
  • Put and delete a product into a storage by it's ID

Transaction Controller

This controller currently has the following features already:

  • Get all transactions
  • Get all transactions of a single user by ID
  • Get a single transaction by ID
  • Get all transactions by activity ID
  • Create a new transaction
  • Delete a transaction

Subtransaction Controller

This controller currently has the following features already:

  • Add a subtransaction to a transaction by it's ID
  • Get all subtransactions of a transaction by it's ID
  • Delete subtransaction by it's ID

Clone this wiki locally