Skip to main content

Shared type definitions and API contracts for FiftyTen microservices

Project description

fiftyten-service-contracts

Common API contracts for FiftyTen microservices

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

  • API version: 1.0.0
  • Package version: 0.0.4
  • Generator version: 7.13.0
  • 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/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 fiftyten_service_contracts

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 fiftyten_service_contracts

Tests

Execute pytest to run the tests.

Getting Started

Please follow the installation procedure and then run the following:

import fiftyten_service_contracts
from fiftyten_service_contracts.rest import ApiException
from pprint import pprint

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



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

    try:
        # Health check
        api_response = api_instance.api_health_get()
        print("The response of DefaultApi->api_health_get:\n")
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling DefaultApi->api_health_get: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to http://localhost:3030

Class Method HTTP request Description
DefaultApi api_health_get GET /api/health Health check
DefaultApi api_tasks_post POST /api/tasks Submit tasks (single or batch)
DefaultApi api_workers_heartbeat_post POST /api/workers/heartbeat Send worker heartbeat
DefaultApi api_workers_register_post POST /api/workers/register Register a worker
DefaultApi api_workers_task_result_post POST /api/workers/task-result Submit task result

Documentation For Models

Documentation For Authorization

Endpoints do not require authorization.

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

fiftyten_service_contracts-0.0.4.tar.gz (31.8 kB view details)

Uploaded Source

Built Distribution

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

fiftyten_service_contracts-0.0.4-py3-none-any.whl (65.0 kB view details)

Uploaded Python 3

File details

Details for the file fiftyten_service_contracts-0.0.4.tar.gz.

File metadata

File hashes

Hashes for fiftyten_service_contracts-0.0.4.tar.gz
Algorithm Hash digest
SHA256 526e1ffdafcc88d226b15dd7fffc677a27666dd844462781a6d3d420c0d63f18
MD5 49425590ae388aabe345cf2dbbe195c9
BLAKE2b-256 881fcd641915b3bde551a31d82bb8171550d2907e611b1131036a9bb4357df9c

See more details on using hashes here.

File details

Details for the file fiftyten_service_contracts-0.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for fiftyten_service_contracts-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 8a8cccf6b028fdbdc18a6a6e6e0a7f7e4311bcc8dc507f6061543fe304b79ac5
MD5 855726290d156972796ae1b0027d3b38
BLAKE2b-256 df8edd787046c3ff958ca7ae20aceded6b3f6a0419ed3cb9ef95d7a52333aa9e

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