Skip to main content

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:

  1. https://your.server.com/orm/schema/module/[APP_NAME]

This returns a list of all the Django DB Models in APP_NAME

  1. https://your.server.com/orm/schema/[FULL_MODEL_NAME]

This returns schema information about FULL_MODEL_NAME

  1. https://your.server.com/orm/query/[FULL_MODEL_NAME]?email=[PARAMETER]&name=[PARAMETER]

This performs a search for FULL_MODEL_NAME filtering by "email" and "name"

  1. 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"

  1. DELETE https://your.server.com/orm/query/[FULL_MODEL_NAME]/[id]

This performa s delete

  1. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django_http_orm-0.0.1.tar.gz (1.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_http_orm-0.0.1-py2-none-any.whl (1.7 kB view details)

Uploaded Python 2

File details

Details for the file django_http_orm-0.0.1.tar.gz.

File metadata

  • Download URL: django_http_orm-0.0.1.tar.gz
  • Upload date:
  • Size: 1.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/44.1.0 requests-toolbelt/0.9.1 tqdm/4.44.1 CPython/2.7.16

File hashes

Hashes for django_http_orm-0.0.1.tar.gz
Algorithm Hash digest
SHA256 16c54ea42c73243413d6af3e4c5f44aed03e5e7b51517ebbbcf707e3867d45c0
MD5 349713e4cab2cb4a4c02c1320a10e6fc
BLAKE2b-256 59280c7efe1b330425de27d4f9850419925037f373bc4cabc15be3b1e3e70d1a

See more details on using hashes here.

File details

Details for the file django_http_orm-0.0.1-py2-none-any.whl.

File metadata

  • Download URL: django_http_orm-0.0.1-py2-none-any.whl
  • Upload date:
  • Size: 1.7 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/44.1.0 requests-toolbelt/0.9.1 tqdm/4.44.1 CPython/2.7.16

File hashes

Hashes for django_http_orm-0.0.1-py2-none-any.whl
Algorithm Hash digest
SHA256 7ae3ef380bfc05fed3a456dddc8d0b1b1a6757ebdafc520f68c0326b212919ef
MD5 ab37f7be4f20fb58b929e566dd5e3d3e
BLAKE2b-256 0722ebf3980caedee610f55340863e5affb909426e28c7aa672e8352f5d2b8d4

See more details on using hashes here.

Supported by

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