A simple HTTP interface over Django ORM
Project description
django_http_orm
Http Interface over Django ORM
This library provides a simple HTTP interface over the Django ORM:
It proveds the following endpoints:
This returns a list of all the Django DB Models in APP_NAME
This returns schema information about FULL_MODEL_NAME
This performs a search for FULL_MODEL_NAME filtering by "email" and "name"
- PUT https://your.server.com/orm/query/[FULL_MODEL_NAME]/[ID] -d '{"first_name": "randi"}'
This performs an update on the Model instance with "ID" and updates "first_name" to "randi"
This performa s delete
- POST https://your.server.com/orm/query/[FULL_MODEL_NAME] - d '{"first_name" ...}'
This creates a FUKLL_MODEL_NAME with the attributes specified in the POST body.
INSTALLTION
You will need to include "django_http_orm" in your INSTALLED_APPS and also include "django_http_orm.urls" in your urls file.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for django_http_orm-0.0.1-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7ae3ef380bfc05fed3a456dddc8d0b1b1a6757ebdafc520f68c0326b212919ef |
|
MD5 | ab37f7be4f20fb58b929e566dd5e3d3e |
|
BLAKE2b-256 | 0722ebf3980caedee610f55340863e5affb909426e28c7aa672e8352f5d2b8d4 |