8963bc1e5d69ea42a8fc217c4113d84a1f3eda01
SlotDB
SlotDB is an application designed to store information about property or assets, to be able to query on that information, and implement basic schemas.
Installing
Docker
$ docker run -it \
-v $PWD/slotdb.json:/app/slotdb.json \
dev.noccylabs.info/slotdb/slotdb
Configuration
API
/api/slotdb/v1/slots [GET]
Get a list of all slots, or slots matching conditions
GET /api/slotdb/v1/slots
HTTP 200 OK
Content-Type: application/json
{
"slots": [
{
"id": "1.1",
"name": "First thing",
"available": true
}
]
}
GET /api/slotdb/v1/slots?get=id&where[]=available:1
HTTP 200 OK
Content-Type: application/json
{
"slots": [
{
"id": "1.1"
},
{
"id": "1.2"
}
]
}
| Params | Value |
|---|---|
| page | Page |
| limit | The number of results (per page) to return |
| get | Comma-separated list of keys to return |
| {key}:[cond]{match} | Match condition |
Combine like: ?where[]=available:1&where[]=rate-group:<=2
/api/slotdb/v1/slots [POST]
Create one or more new slots
/api/slotdb/v1/slot/{slot} [GET]
/api/slotdb/v1/slot/{slot} [PUT]
/api/slotdb/v1/slot/{slot} [DELETE]
Languages
PHP
98.2%
Makefile
1.2%
Dockerfile
0.6%