Skip to main content

OpenAPI-generated Python client

Project description

mantium-spec

Mantium API Documentation

This Python package is automatically generated by the OpenAPI Generator project:

  • API version: 1.0.779
  • Package version: 1.0.0
  • Build package: org.openapitools.codegen.languages.PythonLegacyClientCodegen

Requirements.

Python 2.7 and 3.4+

Installation & Usage

pip install

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 mantium_spec

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 mantium_spec

Getting Started

Please follow the installation procedure and then run the following:

from __future__ import print_function

import time
import mantium_spec
from mantium_spec.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = mantium_spec.Configuration(
    host = "http://localhost"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure Bearer authorization: HTTPBearer
configuration = mantium_spec.Configuration(
    access_token = 'YOUR_BEARER_TOKEN'
)


# Enter a context with an instance of the API client
with mantium_spec.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = mantium_spec.ApplicationsApi(api_client)
    application_id = 'application_id_example' # str | 
body = None # object |  (optional)

    try:
        # Get application detail.
        api_response = api_instance.get_application_detail(application_id, body=body)
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling ApplicationsApi->get_application_detail: %s\n" % e)
    

Documentation for API Endpoints

All URIs are relative to http://localhost

Class Method HTTP request Description
ApplicationsApi get_application_detail GET /applications/{application_id} Get application detail.
ApplicationsApi list_applications GET /applications/ List applications.
ApplicationsApi query_application POST /applications/{application_id}/query Interact with an application.
ApplicationsApi query_chat_application POST /applications/{application_id}/chat Interact with a chat application.

Documentation For Models

Documentation For Authorization

HTTPBearer

  • Type: Bearer authentication

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

mantium_spec-1.0.779.tar.gz (39.5 kB view hashes)

Uploaded Source

Built Distribution

mantium_spec-1.0.779-py3-none-any.whl (84.3 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