The Django-application for the fast organization API.
Project description
Is an easy way to setup mechanism calls for Django projects. For the exchange of data is used JSON. The API is built on the RPC scheme: one URL address - many methods. This scheme allows you to share hard-structured data, such as nested into each other JavaScript objects:
$.quickAPI({
url: "/api/",
data: {
method: "settings.update",
kwargs: { value: {
suppliers: ['s1', 's2', 's33'],
skip_goods: {
s1: ['g123', 'g321'],
s33: ['g098']
}
}
}
},
callback: function(json, status, xhr) {},
})
from quickapi.client import BaseClient
api = BaseClient()
api.url = 'https://example.org/api/'
api.username = 'login'
api.password = 'passw'
settings = {
'suppliers': ['s1', 's2', 's33'],
'skip_goods': {
's1': ['g123', 'g321'],
's33': ['g098']
}
}
response = api.method('settings.update', value=settings)
Read the documentation for details.
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
django-quickapi-3.7.2.tar.gz
(995.6 kB
view details)
File details
Details for the file django-quickapi-3.7.2.tar.gz
.
File metadata
- Download URL: django-quickapi-3.7.2.tar.gz
- Upload date:
- Size: 995.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3fa22ba6c1359eb97185c74e0f4a4c42e3ee5d5c6d7b53f39298110f446df429 |
|
MD5 | 93461112836ff93deae34e60baa91ed6 |
|
BLAKE2b-256 | 2336027faca28db40c27179a671331e2abca853b2084a791fd229693db9a972e |