Skip to content
This repository has been archived by the owner on Mar 5, 2022. It is now read-only.

CRUD REST API to store generic items hierarchically or container-based on ArangoDB, as a Foxx microservice 🥑🦊📦

License

Notifications You must be signed in to change notification settings

David-Lor/Arango-Foxx-Inventory-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Inventory API (ArangoDB Foxx µService)

CRUD REST API to store generic items hierarchically or container-based on ArangoDB, working as a Foxx microservice.

Stored objects are described as "entities", and can act as containers (parents) or children of other entities. This allows to store stuff like objects in your home (e.g. Bedroom > Wardrobe > Upper-Left Drawer > Box of "Memories" > 4GB DDR3 RAM Stick).

Data model

{
    "id": "192783", // only on read, corresponds to _id document field (generated by arangodb, cannot be set, unique)
    "name": "Bedroom", // human-readable identifier of the entity (required, not unique)
    "type": "ROOM", // human-readable category/type of the entity (optional)
    "created": 1589711345, // when the entity was created, as unix/epoch timestamp in seconds (autogenerated, cannot be set)
    "updated": 1589711345 // same as created, but when the entity was updated for the last time
    // from here, you can add additional fields with no further validation
    "owner": "Anna"
}

Installing

  • Install ArangoDB
  • Go to ArangoDB WebUI (like http://localhost:8529)
  • Login and enter into a database
  • Go to "Services" and Add service
  • Choose the GitHub tab
  • Set Repository to David-Lor/Arango-Foxx-Inventory-API and Version to develop

Changelog

  • 0.0.1: Initial version with CRUD endpoints, without hierarchy/relationships

TODO

  • Set entity parent to create hierarchies
  • Return hierarchy (parents/children) on entities
  • Add tests

About

CRUD REST API to store generic items hierarchically or container-based on ArangoDB, as a Foxx microservice 🥑🦊📦

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published