Skip to main content

CITES Documents data connector REST API 1.0.0

Project description

citesdoc

Toto je API pro Domino konektor ostatních dokumentů CITES

This Python package is automatically generated by the Swagger Codegen project:

  • API version: 1.0.0
  • Package version: 1.0.0.002
  • Build package: io.swagger.codegen.v3.generators.python.PythonClientCodegen

Requirements.

Python 3.9+

Installation & Usage

pip install

If the python package is hosted on Github, you can install directly from Github

pip install sysnet-citesdoc

Then import the package:

import citesdoc 

Getting Started

Please follow the installation procedure and then run the following:

from __future__ import print_function
import time
import citesdoc
from citesdoc.rest import ApiException
from pprint import pprint

# Configure API key authorization: apiKey
configuration = citesdoc.Configuration()
configuration.api_key['X-API-KEY'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-API-KEY'] = 'Bearer'

# create an instance of the API class
api_instance = citesdoc.AdminsApi(citesdoc.ApiClient(configuration))
doc_code = citesdoc.DocumentCode() # DocumentCode | 

try:
    # Odstraní položku šablony PDF (cruD)
    api_instance.delete_template(doc_code)
except ApiException as e:
    print("Exception when calling AdminsApi->delete_template: %s\n" % e)

# Configure API key authorization: apiKey
configuration = citesdoc.Configuration()
configuration.api_key['X-API-KEY'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-API-KEY'] = 'Bearer'

# create an instance of the API class
api_instance = citesdoc.AdminsApi(citesdoc.ApiClient(configuration))
doc_code = citesdoc.DocumentCode() # DocumentCode | 

try:
    # Vrátí šablonu PDF (cRud)
    api_response = api_instance.get_template(doc_code)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AdminsApi->get_template: %s\n" % e)

# Configure API key authorization: apiKey
configuration = citesdoc.Configuration()
configuration.api_key['X-API-KEY'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-API-KEY'] = 'Bearer'

# create an instance of the API class
api_instance = citesdoc.AdminsApi(citesdoc.ApiClient(configuration))

try:
    # Vrací seznam šablon
    api_response = api_instance.get_template_list()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AdminsApi->get_template_list: %s\n" % e)

# Configure API key authorization: apiKey
configuration = citesdoc.Configuration()
configuration.api_key['X-API-KEY'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-API-KEY'] = 'Bearer'

# create an instance of the API class
api_instance = citesdoc.AdminsApi(citesdoc.ApiClient(configuration))
body = citesdoc.TemplateType() # TemplateType | Definice šablony (optional)

try:
    # Zavede novou položku šablony (Crud)
    api_instance.post_template_item(body=body)
except ApiException as e:
    print("Exception when calling AdminsApi->post_template_item: %s\n" % e)

# Configure API key authorization: apiKey
configuration = citesdoc.Configuration()
configuration.api_key['X-API-KEY'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-API-KEY'] = 'Bearer'

# create an instance of the API class
api_instance = citesdoc.AdminsApi(citesdoc.ApiClient(configuration))
doc_code = citesdoc.DocumentCode() # DocumentCode | 
body = citesdoc.Object() # Object | Upload soubor PDF nebo JRXML, případně ZIP u vícesouborové šablony (optional)
enclosure = false # bool | Indikátor, zda se jedná o šablonu přílohy nebo první stránky (optional) (default to false)
filename = 'filename_example' # str | Nový název souboru. Pokud není zadáno, použije se název uložený v systému (optional)

try:
    # Nahraje soubor se šablonou PDF nebo změní definici šablony (crUd)
    api_instance.put_template(doc_code, body=body, enclosure=enclosure, filename=filename)
except ApiException as e:
    print("Exception when calling AdminsApi->put_template: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to https://valpha.sysnet.cz/SYSNET/CITES_other_doc/1.0.0

Class Method HTTP request Description
AdminsApi delete_template DELETE /template/{docCode} Odstraní položku šablony PDF (cruD)
AdminsApi get_template GET /template/{docCode} Vrátí šablonu PDF (cRud)
AdminsApi get_template_list GET /template Vrací seznam šablon
AdminsApi post_template_item POST /template Zavede novou položku šablony (Crud)
AdminsApi put_template PUT /template/{docCode} Nahraje soubor se šablonou PDF nebo změní definici šablony (crUd)
DevelopersApi info_api GET /info vrací servisní informace
DevelopersApi info_api_head HEAD /info vrací informaci o dostupnosti služby
PublicApi delete_document DELETE /doc/{identifier} Odstraní dokument (cruD)
PublicApi get_document GET /doc/{identifier} Vrací konkrétní dokument (cRud)
PublicApi get_document_list GET /doc Vrací seznam dokumentů podle klíče nebo kódu
PublicApi get_pdf_file GET /pdf/{identifier} Vrací PDF dokument
PublicApi get_xfdf GET /xfdf/{identifier} Vrací XFDF data dokumentu
PublicApi post_document POST /doc Vytvoří nový dokument (Crud)
PublicApi put_document PUT /doc/{identifier} Aktualizuje dokument (crUd)

Documentation For Models

Documentation For Authorization

apiKey

  • Type: API key
  • API key parameter name: X-API-KEY
  • Location: HTTP header

Author

info@sysnet.cz

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

sysnet-citesdoc-1.0.0.3.tar.gz (44.5 kB view details)

Uploaded Source

Built Distribution

sysnet_citesdoc-1.0.0.3-py3-none-any.whl (79.1 kB view details)

Uploaded Python 3

File details

Details for the file sysnet-citesdoc-1.0.0.3.tar.gz.

File metadata

  • Download URL: sysnet-citesdoc-1.0.0.3.tar.gz
  • Upload date:
  • Size: 44.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for sysnet-citesdoc-1.0.0.3.tar.gz
Algorithm Hash digest
SHA256 f6561de7b9f81a12ab8ea8a8f619631a047e53df3451c19abc2f8e6c0eea40c3
MD5 0ab82f39d84dce6501c3612f4b9ddcf3
BLAKE2b-256 33f49c0dc5d662018a37ff627914f445d8b6f2b42b974544b56d006fb805c818

See more details on using hashes here.

File details

Details for the file sysnet_citesdoc-1.0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for sysnet_citesdoc-1.0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 7a76cf6d731783902116970e4ce5419606c7614f8b454db087a1df87690127cf
MD5 ed6dd274bad3027d6c9086d8b13f69bc
BLAKE2b-256 ab6486af40eb168319c16b6fa2288549b5b89cb5e02da729636157393584f538

See more details on using hashes here.

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