IBM Domino Data API
Project description
dda
The data API provides access to any database for which it is enabled. The API represents databases, views, view entries, and documents in JSON format. Important: This version of the OpenAPI spec (data.yaml) includes data API changes from the XPages Extension Library release 9.0.1.v09_02. This includes new operations on attachments, agents and forms. If you are using a version before 9.0.1.v09_02, consider using an earlier version of the spec.
This Python package is automatically generated by the Swagger Codegen project:
- API version: 9.0.1
- Package version: 1.0.0
- Build package: io.swagger.codegen.languages.PythonClientCodegen
Requirements.
Python 2.7 and 3.4+
Installation & Usage
pip install
If the python package is hosted on Github, you can install directly from Github
pip install git+https://github.com//.git
(you may need to run pip
with root permission: sudo pip install git+https://github.com//.git
)
Then import the package:
import dda
Setuptools
Install 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 dda
Getting Started
Please follow the installation procedure and then run the following:
from __future__ import print_function
import time
import dda
from dda.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basic
configuration = dda.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = dda.AgentApi(dda.ApiClient(configuration))
folder = 'folder_example' # str | Database folder name relative to the Domino data directory. If the database is not in a folder, use `.` to specify the data directory itself.
database = 'database_example' # str | Database file name.
agent_job = dda.AgentJob() # AgentJob | The agent job to execute.
try:
# Executes an agent.
api_instance.folder_database_api_data_agentjobs_post(folder, database, agent_job)
except ApiException as e:
print("Exception when calling AgentApi->folder_database_api_data_agentjobs_post: %s\n" % e)
Documentation for API Endpoints
All URIs are relative to https://localhost
Class | Method | HTTP request | Description |
---|---|---|---|
AgentApi | folder_database_api_data_agentjobs_post | POST /{folder}/{database}/api/data/agentjobs | Executes an agent. |
AgentApi | folder_database_api_data_agents_agent_name_get | GET /{folder}/{database}/api/data/agents/{agentName} | Reads a list of agents. |
AgentListApi | folder_database_api_data_agents_get | GET /{folder}/{database}/api/data/agents | Reads a list of agents. |
AttachmentApi | folder_database_api_data_documents_unid_doc_unid_item_name_file_name_delete | DELETE /{folder}/{database}/api/data/documents/unid/{docUnid}/{itemName}/{fileName} | Deletes an attachment. |
AttachmentApi | folder_database_api_data_documents_unid_doc_unid_item_name_file_name_get | GET /{folder}/{database}/api/data/documents/unid/{docUnid}/{itemName}/{fileName} | Reads an attachment. |
AttachmentApi | folder_database_api_data_documents_unid_doc_unid_item_name_file_name_put | PUT /{folder}/{database}/api/data/documents/unid/{docUnid}/{itemName}/{fileName} | Updates an attachment. |
AttachmentApi | folder_database_api_data_documents_unid_doc_unid_item_name_post | POST /{folder}/{database}/api/data/documents/unid/{docUnid}/{itemName} | Adds an attachment to an item in a document. |
DatabaseListApi | api_data_get | GET /api/data | Gets a list of databases. |
DocumentApi | folder_database_api_data_documents_post | POST /{folder}/{database}/api/data/documents | Creates a new document. |
DocumentApi | folder_database_api_data_documents_unid_doc_unid_delete | DELETE /{folder}/{database}/api/data/documents/unid/{docUnid} | Deletes a document. |
DocumentApi | folder_database_api_data_documents_unid_doc_unid_get | GET /{folder}/{database}/api/data/documents/unid/{docUnid} | Reads a document. |
DocumentApi | folder_database_api_data_documents_unid_doc_unid_patch | PATCH /{folder}/{database}/api/data/documents/unid/{docUnid} | Updates selected items in a document. |
DocumentApi | folder_database_api_data_documents_unid_doc_unid_put | PUT /{folder}/{database}/api/data/documents/unid/{docUnid} | Replaces all items in a document. |
DocumentListApi | folder_database_api_data_documents_get | GET /{folder}/{database}/api/data/documents | Gets a list of documents. |
FolderApi | folder_database_api_data_collections_name_view_name_put | PUT /{folder}/{database}/api/data/collections/name/{viewName} | Updates the contents of a folder by folder name. |
FolderApi | folder_database_api_data_collections_unid_view_unid_put | PUT /{folder}/{database}/api/data/collections/unid/{viewUnid} | Updates the contents of a folder by folder UNID. |
FormListApi | folder_database_api_data_forms_get | GET /{folder}/{database}/api/data/forms | Reads a list of forms. |
ViewDesignApi | folder_database_api_data_collections_name_view_name_design_get | GET /{folder}/{database}/api/data/collections/name/{viewName}/design | Gets information on the columns in a view or folder. |
ViewDesignApi | folder_database_api_data_collections_unid_view_unid_design_get | GET /{folder}/{database}/api/data/collections/unid/{viewUnid}/design | Gets information on the columns in a view or folder. |
ViewEntryListApi | folder_database_api_data_collections_name_view_name_get | GET /{folder}/{database}/api/data/collections/name/{viewName} | Gets a list of view entries by view name. |
ViewEntryListApi | folder_database_api_data_collections_unid_view_unid_get | GET /{folder}/{database}/api/data/collections/unid/{viewUnid} | Gets a list of view entries by view UNID. |
ViewListApi | folder_database_api_data_collections_get | GET /{folder}/{database}/api/data/collections | Gets a list of views and folders in a database. |
Documentation For Models
- Agent
- AgentJob
- AgentListResponse
- Database
- DatabaseListResponse
- Document
- DocumentListEntry
- DocumentListResponse
- FolderOperations
- Form
- FormListResponse
- Link
- View
- ViewColumnDesign
- ViewDesignResponse
- ViewEntry
- ViewEntryListResponse
- ViewListResponse
Documentation For Authorization
basic
- Type: HTTP basic authentication
Author
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
Built Distribution
File details
Details for the file dda-1.0.0.tar.gz
.
File metadata
- Download URL: dda-1.0.0.tar.gz
- Upload date:
- Size: 44.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | eaec0dbb99843031b9a761dc43b077c77e024271d11f8e2afed3898be52aaa6b |
|
MD5 | 49df0c7cc8d93d1220832c1e1eb246e3 |
|
BLAKE2b-256 | 4e918316e32ef99eddb51b7d24683616d12785f59385fed7ce08fc39b6ebfd74 |
File details
Details for the file dda-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: dda-1.0.0-py3-none-any.whl
- Upload date:
- Size: 103.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8c27d791ea707003596c2c22676600f176c1f85718fdf2606253257abfdef0cb |
|
MD5 | 604f7aef6c01ccc5241c0996a468335c |
|
BLAKE2b-256 | 651471ce0841efd3b6beb70624e3b6a83b176451ea094821967bbef699e83f1a |