Easy and simple REST API from model
Project description
MinimAPI
MinimAPI is a simple dynamic API backend. Just define your model.json, then your API is ready
See usage examples here
Install
With pip :
pip3 install minimapi
or build with :
python -m build
pip3 install dist/minimapi-*.whl
Model format
Minimalistic data structure definition format for dynamic API backend and interface front
filename: model.json
Example :
{
"user": {
"name": {"type": "text"},
"birthday": {"type": "date"},
"password": {"type": "password", "tags":["unlistable"]},
"city": {"type": "foreign", "show": "name"}
},
"city": {
"name": {"type": "text", "tags":["required"]},
"code": {"type": "number"}
}
}
Data parameters availables :
- type : data value type [required]
- show : culumn to show client side for foreign key
- tags : array of options
Currently supported types (based on inputs types):
- text
- number
- url
- password
- date
- email
- url
- sha265
- pbkdf2
- totp
- foreign (property name must match another table name, value is foreign data id)
Currently supported tags :
- unlistable : cannot be returned on bulk, replaced by dash in this case
- encrypted : for client side encrypted data, type checking disabled server side
- required : mandatory field
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
minimapi-0.0.5.tar.gz
(22.0 kB
view details)
Built Distribution
minimapi-0.0.5-py3-none-any.whl
(10.2 kB
view details)
File details
Details for the file minimapi-0.0.5.tar.gz
.
File metadata
- Download URL: minimapi-0.0.5.tar.gz
- Upload date:
- Size: 22.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e3488a144f1c86554a99977af46fdded299ec717bcb0b95f02cc5167d4f468b2 |
|
MD5 | 0a2488b567ca4dbe11a0f63facaf63ea |
|
BLAKE2b-256 | 5d6b675a93940fce5f831aaa27bc1225141d603a696d61e06a57aff1be2e5ca4 |
File details
Details for the file minimapi-0.0.5-py3-none-any.whl
.
File metadata
- Download URL: minimapi-0.0.5-py3-none-any.whl
- Upload date:
- Size: 10.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 278d8a9fb2650848230190ac574e4a1ac25bbc3db30f575c0cc06d7f29579226 |
|
MD5 | 5e4c67b27cbe78b7e93bddf263a4d439 |
|
BLAKE2b-256 | b11d383842151eb9efdb1511041ec08f56ecbf46ddf0e33481ad386069a711b4 |