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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 2

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