Skip to main content

SYSNET CITES Taxonomy REST API client

Project description

sysnet-taxonomy

Toto je API pro taxonomii CITES

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

  • API version: 1.0.0
  • Package version: 1.0.0.004
  • 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-taxonomy

Then import the package:

import taxonomy 

Getting Started

Please follow the installation procedure and then run the following:

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

# Configure API key authorization: apiKey
configuration = taxonomy.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 = taxonomy.AdminsApi(taxonomy.ApiClient(configuration))
body = taxonomy.TaxonType() # TaxonType | Taxon item to add or update

try:
    # přidá nový taxon
    api_response = api_instance.add_taxon(body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AdminsApi->add_taxon: %s\n" % e)

# Configure API key authorization: apiKey
configuration = taxonomy.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 = taxonomy.AdminsApi(taxonomy.ApiClient(configuration))
identifier = 'identifier_example' # str | PID nebo celý vědecký název taxonu

try:
    # odstraní existující taxon
    api_instance.delete_taxon(identifier)
except ApiException as e:
    print("Exception when calling AdminsApi->delete_taxon: %s\n" % e)

# Configure API key authorization: apiKey
configuration = taxonomy.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 = taxonomy.AdminsApi(taxonomy.ApiClient(configuration))
body = taxonomy.TaxonType() # TaxonType | Taxon item to add or update
identifier = 'identifier_example' # str | PID nebo celý vědecký název taxonu

try:
    # upraví existující taxon
    api_instance.put_taxon(body, identifier)
except ApiException as e:
    print("Exception when calling AdminsApi->put_taxon: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to https://service.sysnet.cz/taxonomy/1.0.0

Class Method HTTP request Description
AdminsApi add_taxon POST /taxon přidá nový taxon
AdminsApi delete_taxon DELETE /taxon/{identifier} odstraní existující taxon
AdminsApi put_taxon PUT /taxon/{identifier} upraví existující taxon
DevelopersApi info_api GET /info vrací servisní informace
DevelopersApi info_api_head HEAD /info vrací informaci o dostupnosti služby
PublicApi get_taxon GET /taxon/{identifier} Vrátí konkrétní taxon
PublicApi search_taxons GET /taxon Vrátí seznam taxonů pro pohled nebo výběr

Documentation For Models

Documentation For Authorization

apiKey

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

Author

rjaeger@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-taxonomy-1.0.0.4.tar.gz (23.2 kB view hashes)

Uploaded Source

Built Distribution

sysnet_taxonomy-1.0.0.4-py3-none-any.whl (38.0 kB view hashes)

Uploaded Python 3

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