Backend API for the 3D-Inventory platform — a modern inventory management system that combines spatial visualization with structured inventory data. This Node.js-based API uses MongoDB as its primary database and serves inventory data to a frontend interface built in ✨3d-inventory✨.
🌟 Features
🗃️ RESTful API for managing inventory elements, racks, rooms, and objects
🌍 MongoDB schema designed for spatial and visual representation of inventory items
🧩 Modular structure using Express.js
🔐 Secure API endpoints with basic validation
🔄 Designed to support 3D spatial UI representation in real-time
Pozdrawiam,lub
- MongoDB is a
NoSQL
database that stores data inJSON
format. - Express.js is a web application framework for Node.js that simplifies the process of building web servers and APIs.
- RxJs - Reactive Extensions Library for JavaScript.
- NodeJS is a
JavaScript
runtime that allows you to run code on the server-side.
Swagger API definition.
Endpoint | Method | Description |
---|---|---|
/devices |
GET | Get all devices |
/devices |
POST | Create a new device |
/devices/{id} |
GET | Get device by ID |
/devices/{id} |
PUT | Update device by ID |
/devices/{id} |
DELETE | Delete device by ID |
/models |
GET | Get all models |
/models |
POST | Create a new model |
/models/{id} |
GET | Get model by ID |
/models/{id} |
PUT | Update model by ID |
/models/{id} |
DELETE | Delete model by ID |
/connections |
GET | Get all connections |
/connections |
POST | Create a new connection |
/connections/{id} |
GET | Get connection by ID |
/connections/{id} |
PUT | Update connection by ID |
/connections/{id} |
DELETE | Delete connection by ID |
/logs |
GET | Get all logs |
/logs/{id} |
GET | Get log by ID |
/attributes |
GET | Get all attributes |
/attributes |
POST | Create a new attribute |
/attributes/{id} |
GET | Get attribute by ID |
/attributes/{id} |
PUT | Update attribute by ID |
/attributes/{id} |
DELETE | Delete attribute by ID |
/attributesDictionary |
GET | Get all attribute dictionary entries |
/attributesDictionary |
POST | Create a new attribute dictionary entry |
/attributesDictionary/{id} |
GET | Get attribute dictionary entry by ID |
/attributesDictionary/{id} |
PUT | Update attribute dictionary entry by ID |
/attributesDictionary/{id} |
DELETE | Delete attribute dictionary entry by ID |
/floors |
GET | Get all floors |
/floors |
POST | Create a new floor |
/floors/{id} |
GET | Get floor by ID |
/floors/{id} |
PUT | Update floor by ID |
/floors/{id} |
DELETE | Delete floor by ID |
To get started with the 3D Inventory Mongo API, follow the instructions below:
git clone https://github.com/karol-preiskorn/3d-inventory-mongo-api.git
cd 3d-inventory-mongo-api
npm install
npm start
This project is licensed under the Creative Commons Legal Code.