Skip to main content

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.3.tar.gz (22.0 kB view details)

Uploaded Source

Built Distribution

minimapi-0.0.3-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

Details for the file minimapi-0.0.3.tar.gz.

File metadata

  • Download URL: minimapi-0.0.3.tar.gz
  • Upload date:
  • Size: 22.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for minimapi-0.0.3.tar.gz
Algorithm Hash digest
SHA256 7efeb1ba7797306a4eadb8ccc187ce45738bdc5303eefe69ba32fdbc91ed1d0d
MD5 bd73d4ab2fa80c60f0680a6e432c079b
BLAKE2b-256 3b0d46264baefec7b7d2c1c8a767d7d86b5a7c666dced481040a0d7e1893c10e

See more details on using hashes here.

File details

Details for the file minimapi-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: minimapi-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 10.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for minimapi-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e0daec535abc24f6e639a18a88431848ecee6c84236333efce826fd4f9be0d2b
MD5 56d634c0c294a3ad8f6eaf051f1ee304
BLAKE2b-256 baa574dff1899256b7361d3111552bf6471a0a75e1bf0f0a0284a687f1d88364

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page