Skip to main content

FreeRadical CMS API

Project description

freeradical-client

Headless CMS API for FreeRadical

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

  • API version: 0.9.0
  • Package version: 1.0.0
  • Generator version: 7.18.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 freeradical_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 freeradical_client

Tests

Execute pytest to run the tests.

Getting Started

Please follow the installation procedure and then run the following:

import freeradical_client
from freeradical_client.rest import ApiException
from pprint import pprint

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

# 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 (JWT): bearerAuth
configuration = freeradical_client.Configuration(
    access_token = os.environ["BEARER_TOKEN"]
)


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

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

Documentation for API Endpoints

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

Class Method HTTP request Description
DefaultApi analytics_summary_get GET /analytics/summary Get analytics summary
DefaultApi auth_login_post POST /auth/login Authenticate user
DefaultApi pages_get GET /pages List pages
DefaultApi pages_post POST /pages Create a page
DefaultApi pages_uuid_get GET /pages/{uuid} Get page by UUID

Documentation For Models

Documentation For Authorization

Authentication schemes defined for the API:

bearerAuth

  • Type: Bearer authentication (JWT)

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

freeradical_client-1.0.0.tar.gz (25.4 kB view details)

Uploaded Source

Built Distribution

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

freeradical_client-1.0.0-py3-none-any.whl (30.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: freeradical_client-1.0.0.tar.gz
  • Upload date:
  • Size: 25.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.0

File hashes

Hashes for freeradical_client-1.0.0.tar.gz
Algorithm Hash digest
SHA256 cea6e8553f5c7624e3890e65a8982b5b9d08d2d7cfc436506ce94b0ab1f378e8
MD5 6880ff6482c4f5d7f6607852ead386f3
BLAKE2b-256 580e0b8c5212b45b75e3d12ebee2b24596ad2a9a32e72cb71bef011bd9e61782

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for freeradical_client-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ec2333adf0b1f9541bf013bdf5a058585136a377d803224a7e7482c34da58779
MD5 5cf1982cf3a768aed4874681d7a2bc37
BLAKE2b-256 fa32e04a81a3edb2a1d60d42d4d7b9ed3810a7a5aae76c2e2a70539b7ed0fd18

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