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
- password
- date
- email
- url
- 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.2.tar.gz
(22.7 kB
view details)
Built Distribution
minimapi-0.0.2-py3-none-any.whl
(11.1 kB
view details)
File details
Details for the file minimapi-0.0.2.tar.gz
.
File metadata
- Download URL: minimapi-0.0.2.tar.gz
- Upload date:
- Size: 22.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8680fbf3484791970e8f5046281a78f020f98844aa87ce2a80b65585cd65881d |
|
MD5 | f31ee6f0b93bbc5cdc50b54624eea07f |
|
BLAKE2b-256 | b194839b8258d6332a1eaf97b75c571445ced17e92ef31f9b19f40e19957e162 |
File details
Details for the file minimapi-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: minimapi-0.0.2-py3-none-any.whl
- Upload date:
- Size: 11.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 02ccaacac937beaa5b37beb3a4f9ef27dc8854fb2eb09322817b03e277782cc1 |
|
MD5 | d1cfd15c60d4d28aace9008cb06d4f2e |
|
BLAKE2b-256 | 3a835dd0237c89bb11834ea75485c2327b23bb68f2bba22ab741052f4c378f37 |