Skip to main content

BMLT

Project description

bmlt-server-client

BMLT Admin API Documentation

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

  • API version: 1.0.0
  • Package version: 1.0.0
  • Generator version: 7.14.0-SNAPSHOT
  • Build package: org.openapitools.codegen.languages.PythonClientCodegen

Requirements.

Python 3.9+

Installation & Usage

pip install

If the python package is hosted on a repository, you can install directly using:

pip install git+https://github.com/bmlt-enabled/bmlt-server-python-client.git

(you may need to run pip with root permission: sudo pip install git+https://github.com/bmlt-enabled/bmlt-server-python-client.git)

Then import the package:

import bmlt_client

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 bmlt_client

Tests

Execute pytest to run the tests.

Getting Started

Please follow the installation procedure and then run the following:

import bmlt_client
from bmlt_client.rest import ApiException
from pprint import pprint

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

# 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.

configuration.access_token = os.environ["ACCESS_TOKEN"]


# Enter a context with an instance of the API client
with bmlt_client.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = bmlt_client.RootServerApi(api_client)

    try:
        # Revokes a token
        api_instance.auth_logout()
    except ApiException as e:
        print("Exception when calling RootServerApi->auth_logout: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to http://localhost:8000/main_server

Class Method HTTP request Description
RootServerApi auth_logout POST /api/v1/auth/logout Revokes a token
RootServerApi auth_refresh POST /api/v1/auth/refresh Revokes and issues a new token
RootServerApi auth_token POST /api/v1/auth/token Creates a token
RootServerApi create_error_test POST /api/v1/errortest Tests some errors
RootServerApi create_format POST /api/v1/formats Creates a format
RootServerApi create_meeting POST /api/v1/meetings Creates a meeting
RootServerApi create_service_body POST /api/v1/servicebodies Creates a service body
RootServerApi create_user POST /api/v1/users Creates a user
RootServerApi delete_format DELETE /api/v1/formats/{formatId} Deletes a format
RootServerApi delete_meeting DELETE /api/v1/meetings/{meetingId} Deletes a meeting
RootServerApi delete_service_body DELETE /api/v1/servicebodies/{serviceBodyId} Deletes a service body
RootServerApi delete_user DELETE /api/v1/users/{userId} Deletes a user
RootServerApi get_format GET /api/v1/formats/{formatId} Retrieves a format
RootServerApi get_formats GET /api/v1/formats Retrieves formats
RootServerApi get_laravel_log GET /api/v1/logs/laravel Retrieves laravel log
RootServerApi get_meeting GET /api/v1/meetings/{meetingId} Retrieves a meeting
RootServerApi get_meeting_changes GET /api/v1/meetings/{meetingId}/changes Retrieve changes for a meeting
RootServerApi get_meetings GET /api/v1/meetings Retrieves meetings
RootServerApi get_root_server GET /api/v1/rootservers/{rootServerId} Retrieves a root server
RootServerApi get_root_servers GET /api/v1/rootservers Retrieves root servers
RootServerApi get_service_bodies GET /api/v1/servicebodies Retrieves service bodies
RootServerApi get_service_body GET /api/v1/servicebodies/{serviceBodyId} Retrieves a service body
RootServerApi get_user GET /api/v1/users/{userId} Retrieves a single user
RootServerApi get_users GET /api/v1/users Retrieves users
RootServerApi partial_update_user PATCH /api/v1/users/{userId} Patches a user
RootServerApi patch_format PATCH /api/v1/formats/{formatId} Patches a format
RootServerApi patch_meeting PATCH /api/v1/meetings/{meetingId} Patches a meeting
RootServerApi patch_service_body PATCH /api/v1/servicebodies/{serviceBodyId} Patches a service body
RootServerApi update_format PUT /api/v1/formats/{formatId} Updates a format
RootServerApi update_meeting PUT /api/v1/meetings/{meetingId} Updates a meeting
RootServerApi update_service_body PUT /api/v1/servicebodies/{serviceBodyId} Updates a Service Body
RootServerApi update_user PUT /api/v1/users/{userId} Update single user

Documentation For Models

Documentation For Authorization

Authentication schemes defined for the API:

bmltToken

  • Type: OAuth
  • Flow: password
  • Authorization URL:
  • Scopes: N/A

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

bmlt_client-1.0.0.tar.gz (43.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bmlt_client-1.0.0-py3-none-any.whl (82.2 kB view details)

Uploaded Python 3

File details

Details for the file bmlt_client-1.0.0.tar.gz.

File metadata

  • Download URL: bmlt_client-1.0.0.tar.gz
  • Upload date:
  • Size: 43.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for bmlt_client-1.0.0.tar.gz
Algorithm Hash digest
SHA256 6f23c2f44ba09353dfbb4bd90b9206666ef2ca3caa49220e621d52b74c0664aa
MD5 9e229d4f285a764a88a9287b632f4a7b
BLAKE2b-256 567f6e700c2abbd58a50a8d5d819cb5742e43c1a3799ec35405f8a5e77903a88

See more details on using hashes here.

File details

Details for the file bmlt_client-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: bmlt_client-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 82.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for bmlt_client-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7fdb943db3e6c32ce57cd6f795d98dc1a91bcb3323c64eee8a5d81ab96a5cace
MD5 7e52c12d875178c1fd72d632a330f3ef
BLAKE2b-256 057f68a730a3705c505491104141fd72f2ebe222e78e09294974d68cd89232d8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page