This is a specification for openapi using
This Python package is automatically generated by the OpenAPI Generator project:
- API version: 1.0.0
- Package version: 0.0.1
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
Python 2.7 and 3.4+
If the python package is hosted on a repository, you can install directly using:
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 lib_agent
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 lib_agent
Please follow the installation procedure and then run the following:
from __future__ import print_function
import time
import lib_agent
from lib_agent.rest import ApiException
from pprint import pprint
# Defining host is optional and default to http://agentplatform.grs.uh.cu/api/v1
configuration.host = "http://agentplatform.grs.uh.cu/api/v1"
# Create an instance of the API class
api_instance = lib_agent.DefaultApi(lib_agent.ApiClient(configuration))
body = lib_agent.UpdaterAgent() # UpdaterAgent | Endpoints to add
try:
api_instance.add_endpoints(body)
except ApiException as e:
print("Exception when calling DefaultApi->add_endpoints: %s\n" % e)
All URIs are relative to http://agentplatform.grs.uh.cu/api/v1
Class | Method | HTTP request | Description |
---|---|---|---|
DefaultApi | add_endpoints | POST /addEndpoints | |
DefaultApi | edit_agent | POST /editAgent | |
DefaultApi | get_agent | GET /getAgent/{Name} | |
DefaultApi | get_agents_by_function | GET /getAgentsForFunction/{Name} | |
DefaultApi | get_agents_names | GET /getAllAgentsNames | |
DefaultApi | get_functions_names | GET /getAllFunctionsNames | |
DefaultApi | get_peers | GET /getPeers | |
DefaultApi | get_similar_agent | GET /getSimilarAgents/{Name} | |
DefaultApi | recover_agent | POST /recoverAgent | |
DefaultApi | register_agent | POST /registerAgent |
All endpoints do not require authorization.