This module implements API-client to storage-endpoint
Project description
# api_client
All commands have to be run in project root directory:
cd banks_storage/
## Installation
pip install endpoint-api-client
## Usage from client import StorageAPI
your_api_url_endpoint = ‘http://something.com/collection/’
headers = {**StorageAPI.DEFAULT_HEADERS, ‘foo’: ‘bar’,} # optional
storage_client = StorageAPI(your_api_url_endpoint, headers)
#### GET # Methods returns “requests.Response” instances
get_response = storage_client.get_documents()
#### POST your_document = {‘field’: 1, ‘another_field’: [‘baz’, ‘bar’,]}
post_response = storage_client.post_document(some_doc)
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 Distributions
Built Distribution
Hashes for endpoint_api_client-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e7b4bdb608f4615e3e7d7951f398b12660a3a174eb8a19e68779598c4157bd5c |
|
MD5 | 99b0fed88d30f304d9835150dd47b462 |
|
BLAKE2b-256 | 78d8fdd41870818e3f10f5fd1cd60e7b11d783f57965b2d0e4c0db0f7ef37159 |