No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
This Python package is automatically generated by the OpenAPI Generator project:
- API version: 1.0.0
- Package version: 1.0.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
Python 2.7 and 3.4+
If the python package is hosted on a repository, you can install directly using:
pip install git+https://github.com/arne-kroeger/docstore-client-python.git(you may need to run pip with root permission: sudo pip install git+https://github.com/arne-kroeger/docstore-client-python.git)
Then import the package:
import docstore_python_clientInstall via Setuptools.
python setup.py install --user(or sudo python setup.py install to install the package for all users)
Then import the package:
import docstore_python_clientPlease follow the installation procedure and then run the following:
from __future__ import print_function
import time
import docstore_python_client
from docstore_python_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api.docstore.dev
# See configuration.py for a list of all supported configuration parameters.
configuration = docstore_python_client.Configuration(
host = "https://api.docstore.dev"
)
# Enter a context with an instance of the API client
with docstore_python_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = docstore_python_client.DocumentApi(api_client)
document = docstore_python_client.Document() # Document |
try:
# adds a new document
api_response = api_instance.add_new_document(document)
pprint(api_response)
except ApiException as e:
print("Exception when calling DocumentApi->add_new_document: %s\n" % e)
All URIs are relative to https://api.docstore.dev
| Class | Method | HTTP request | Description |
|---|---|---|---|
| DocumentApi | add_new_document | POST /document | adds a new document |
| DocumentApi | add_new_document_for_template | POST /document/template/{templateUuid} | adds a new document by template |
| DocumentApi | get_document | GET /document/{uuid}/{env} | get latest updated documents |
| DocumentApi | get_latest_documents | GET /document | get latest updated documents |
| DocumentApi | search_documents | POST /document/search | search for documents |
All endpoints do not require authorization.