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
- Build package: io.swagger.codegen.v3.generators.python.PythonClientCodegen
Requirements.
Python 3.9+
Installation & Usage
pip install
If the python package is hosted on PyPi
pip install sysnet-taxonomy
Then import the package:
import taxonomy
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 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 (optional)
try:
# přidá nový taxon
api_instance.add_taxon(body=body)
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))
identifier = 'identifier_example' # str | PID nebo celý vědecký název taxonu
body = taxonomy.TaxonType() # TaxonType | Taxon item to add (optional)
try:
# upraví existující taxon
api_instance.put_taxon(identifier, body=body)
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
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.tar.gz
(21.4 kB
view hashes)
Built Distribution
Close
Hashes for sysnet_taxonomy-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 69d29c0b5892e0df2aba2f8a8c0f409a90384c9d1724c9e5da01a3571297da19 |
|
MD5 | 04d25bec4f3082bb4a3e1472aec4b3eb |
|
BLAKE2b-256 | 55ddceca604bb316ee40ff5e7af9986ab60a2bff9bb0c4e64d0d477384431800 |