No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
This Python package is automatically generated by the Swagger Codegen project:
- API version: v0
- Package version: 1.0.0
- Build package: io.swagger.codegen.v3.generators.python.PythonClientCodegen
Python 2.7 and 3.4+
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 swagger_client
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 swagger_client
Please follow the installation procedure and then run the following:
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure OAuth2 access token for authorization: kapi auth
configuration = swagger_client.Configuration()
configuration.access_token = 'YOUR_ACCESS_TOKEN'
# create an instance of the API class
api_instance = swagger_client.BaseControllerApi(swagger_client.ApiClient(configuration))
try:
# get root person
api_response = api_instance.get_person_root()
pprint(api_response)
except ApiException as e:
print("Exception when calling BaseControllerApi->get_person_root: %s\n" % e)
# Configure OAuth2 access token for authorization: kapi auth
configuration = swagger_client.Configuration()
configuration.access_token = 'YOUR_ACCESS_TOKEN'
# create an instance of the API class
api_instance = swagger_client.BaseControllerApi(swagger_client.ApiClient(configuration))
try:
# get root subject
api_response = api_instance.get_subject_root()
pprint(api_response)
except ApiException as e:
print("Exception when calling BaseControllerApi->get_subject_root: %s\n" % e)
# Configure OAuth2 access token for authorization: kapi auth
configuration = swagger_client.Configuration()
configuration.access_token = 'YOUR_ACCESS_TOKEN'
# create an instance of the API class
api_instance = swagger_client.BaseControllerApi(swagger_client.ApiClient(configuration))
try:
# get root work
api_response = api_instance.get_work_root()
pprint(api_response)
except ApiException as e:
print("Exception when calling BaseControllerApi->get_work_root: %s\n" % e)
# create an instance of the API class
api_instance = swagger_client.BaseControllerApi(swagger_client.ApiClient(configuration))
try:
api_response = api_instance.healthcheck()
pprint(api_response)
except ApiException as e:
print("Exception when calling BaseControllerApi->healthcheck: %s\n" % e)
All URIs are relative to http://api.iyengarlabs.org
Class | Method | HTTP request | Description |
---|---|---|---|
BaseControllerApi | get_person_root | GET /v1/rootperson | get root person |
BaseControllerApi | get_subject_root | GET /v1/rootsubject | get root subject |
BaseControllerApi | get_work_root | GET /v1/rootwork | get root work |
BaseControllerApi | healthcheck | GET /v1/health | |
HealthControllerApi | get_app_configs | GET /config | |
HealthControllerApi | healthcheck1 | GET /health | |
LinkControllerApi | get_person_root1 | GET /v1/linker/rootperson | get root person |
LinkControllerApi | get_subject_root1 | GET /v1/linker/rootsubject | get root subject |
LinkControllerApi | get_work_root1 | GET /v1/linker/rootwork | get root work |
LinkControllerApi | healthcheck2 | GET /v1/linker/health | |
LinkControllerApi | persontopersonlink | PUT /v1/linker/persontoperson/addlink | |
LinkControllerApi | persontoworklink | PUT /v1/linker/persontowork/addlink | |
LinkControllerApi | persontoworklink1 | PUT /v1/linker/subjecttowork/addlink | |
LinkControllerApi | removepersontopersonlink | DELETE /v1/linker/persontoperson/removelink | |
LinkControllerApi | removepersontoworklink | DELETE /v1/linker/persontowork/removelink | |
LinkControllerApi | removesubjecttopersonlink | DELETE /v1/linker/subjecttowork/removelink | |
LinkControllerApi | removesubjecttosubjectlink | DELETE /v1/linker/subjecttosubject/removelink | |
LinkControllerApi | removeworktoworklink | DELETE /v1/linker/worktowork/removelink | |
LinkControllerApi | subjecttosubjectlink | PUT /v1/linker/subjecttosubject/addlink | |
LinkControllerApi | subjecttosubjectlink1 | PUT /v1/linker/worktowork/addlink | |
PersonControllerApi | add_person | POST /v1/person/add | |
PersonControllerApi | addwork | PATCH /v1/person/update/{id} | |
PersonControllerApi | findby_legacyid | GET /v1/person/findbylegacyid/{id} | |
PersonControllerApi | get_person_by_id | GET /v1/person/{id} | get root work |
PersonControllerApi | get_person_root2 | GET /v1/person/rootperson | get root person |
PersonControllerApi | get_subject_root2 | GET /v1/person/rootsubject | get root subject |
PersonControllerApi | get_work_root2 | GET /v1/person/rootwork | get root work |
PersonControllerApi | healthcheck3 | GET /v1/person/health | |
PersonControllerApi | remove_person | DELETE /v1/person/remove/{id} | |
SubjectControllerApi | addsubject | POST /v1/subject/add | |
SubjectControllerApi | addwork1 | PATCH /v1/subject/update/{id} | |
SubjectControllerApi | get_person_root3 | GET /v1/subject/rootperson | get root person |
SubjectControllerApi | get_subject_root3 | GET /v1/subject/rootsubject | get root subject |
SubjectControllerApi | get_work_root3 | GET /v1/subject/rootwork | get root work |
SubjectControllerApi | getsubjectbyid | GET /v1/subject/{id} | |
SubjectControllerApi | getsubjectbylegacyid | GET /v1/subject/findbylegacyid/{id} | |
SubjectControllerApi | healthcheck4 | GET /v1/subject/health | |
SubjectControllerApi | removefromlist | DELETE /v1/subject/remove/{id} | |
WorkControllerApi | addwork2 | PATCH /v1/work/update/{id} | |
WorkControllerApi | addwork3 | POST /v1/work/add | |
WorkControllerApi | get_person_root4 | GET /v1/work/rootperson | get root person |
WorkControllerApi | get_subject_root4 | GET /v1/work/rootsubject | get root subject |
WorkControllerApi | get_work_root4 | GET /v1/work/rootwork | get root work |
WorkControllerApi | getworkbyid | GET /v1/work/{id} | |
WorkControllerApi | getworkbymysqlid | GET /v1/work/findbylegacyid/{id} | |
WorkControllerApi | healthcheck5 | GET /v1/work/health | |
WorkControllerApi | removefromlist1 | DELETE /v1/work/remove/{id} |
- Address
- BuildProperties
- Link
- LinkRequest
- Person
- PersonRequest
- PersonResource
- Problem
- Subject
- SubjectRequest
- SubjectResource
- Work
- WorkComponent
- WorkRequest
- WorkResource
- Type: OAuth
- Flow: implicit
- Authorization URL: https://knowledgetreesecure.auth0.com/authorize
- Scopes:
- ****: