Skip to main content

SYSNET Persons Registry REST API client

Project description

persons

This is a API to Persons Registry

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 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_USER_ID/GIT_REPO_ID.git

(you may need to run pip with root permission: sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git)

Then import the package:

import persons 

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 persons

Getting Started

Please follow the installation procedure and then run the following:

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

# Configure API key authorization: apiKey
configuration = persons.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 = persons.AdminsApi(persons.ApiClient(configuration))
name = 'name_example' # str | Název tagu

try:
    # odstraní definici tagu  (cruD)
    api_response = api_instance.delete_tag(name)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AdminsApi->delete_tag: %s\n" % e)

# Configure API key authorization: apiKey
configuration = persons.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 = persons.AdminsApi(persons.ApiClient(configuration))

try:
    # získá konfiguraci konektoru
    api_response = api_instance.get_config()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AdminsApi->get_config: %s\n" % e)

# Configure API key authorization: apiKey
configuration = persons.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 = persons.AdminsApi(persons.ApiClient(configuration))
name = 'name_example' # str | Název tagu

try:
    # vrací definici tagu (cRud)
    api_response = api_instance.get_tag(name)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AdminsApi->get_tag: %s\n" % e)

# Configure API key authorization: apiKey
configuration = persons.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 = persons.AdminsApi(persons.ApiClient(configuration))
tag = 'tag_example' # str | Vyhledání podle tagu (optional)
search = 'search_example' # str | Textové vyhledávání (optional)
start = 56 # int | První dokument na stránce (optional)
page_size = 56 # int | Velikost stránky při stránkovaném výstupu (optional)
page = 56 # int | Číslo stránky výstupu (optional)

try:
    # vrací seznam tagů v systému (autocomplete)
    api_response = api_instance.get_tag_list(tag=tag, search=search, start=start, page_size=page_size, page=page)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AdminsApi->get_tag_list: %s\n" % e)

# Configure API key authorization: apiKey
configuration = persons.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 = persons.AdminsApi(persons.ApiClient(configuration))
body = persons.TagItemType() # TagItemType |  (optional)

try:
    # vytvoří nový tag (Crud)
    api_response = api_instance.post_tag(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AdminsApi->post_tag: %s\n" % e)

# Configure API key authorization: apiKey
configuration = persons.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 = persons.AdminsApi(persons.ApiClient(configuration))
body = persons.ConfigBody() # ConfigBody |  (optional)

try:
    # aktualizuje hlavní konfiguraci konektoru
    api_response = api_instance.put_config(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AdminsApi->put_config: %s\n" % e)

# Configure API key authorization: apiKey
configuration = persons.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 = persons.AdminsApi(persons.ApiClient(configuration))
name = 'name_example' # str | Název tagu
body = persons.TagItemType() # TagItemType |  (optional)

try:
    # aktualizuje definici tagu (crUd)
    api_response = api_instance.put_tag(name, body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AdminsApi->put_tag: %s\n" % e)

Documentation for API Endpoints

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

Class Method HTTP request Description
AdminsApi delete_tag DELETE /tag/{name} odstraní definici tagu (cruD)
AdminsApi get_config GET /config získá konfiguraci konektoru
AdminsApi get_tag GET /tag/{name} vrací definici tagu (cRud)
AdminsApi get_tag_list GET /tag vrací seznam tagů v systému (autocomplete)
AdminsApi post_tag POST /tag vytvoří nový tag (Crud)
AdminsApi put_config PUT /config aktualizuje hlavní konfiguraci konektoru
AdminsApi put_tag PUT /tag/{name} aktualizuje definici tagu (crUd)
DevelopersApi info_api GET /info vrací servisní informace
PublicApi delete_individual DELETE /individual/{identifier} odstraní registrační dokument jednotlivce s daným identifikátorem (cruD)
PublicApi delete_person DELETE /person/{identifier} odstraní registrační dokument subjektu s daným identifikátorem (cruD)
PublicApi delete_role DELETE /role/{identifier} odstraní roli s daným identifikátorem (cruD)
PublicApi get_context GET /context/{identifier} vrací kontext jednotlivce
PublicApi get_individual GET /individual/{identifier} vrací registrační dokument jednotlivce s daným identifikátorem (cRud)
PublicApi get_individual_list GET /individual vrací seznam jednotlivců (autocomplete)
PublicApi get_person GET /person/{identifier} vrací registrační dokument subjektu s daným identifikátorem (cRud)
PublicApi get_person_list GET /person vrací seznam subjektů (autocomplete)
PublicApi get_role GET /role/{identifier} vrací roli s daným identifikátorem (cRud)
PublicApi get_role_list GET /role vrací seznam rolí (autocomplete)
PublicApi get_tag_list GET /tag vrací seznam tagů v systému (autocomplete)
PublicApi post_individual POST /individual vytvoří nový egistrační záznam jednotlivého uživatele (Crud)
PublicApi post_person POST /person vytvoří nový registrační záznam subjektu (Crud)
PublicApi post_role POST /role vytvoří novou roli (Crud)
PublicApi put_individual PUT /individual/{identifier} aktualizuje registrační dokument jednotlivce s daným identifikátorem (crUd)
PublicApi put_person PUT /person/{identifier} aktualizuje registrační dokument subjektu s daným identifikátorem (crUd)
PublicApi put_role PUT /role/{identifier} aktualizuje roli s daným identifikátorem (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-persons-1.0.0.tar.gz (50.6 kB view hashes)

Uploaded Source

Built Distribution

sysnet_persons-1.0.0-py3-none-any.whl (95.4 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