Skip to content

endpoints

Information and helper functions for URL endpoints to horde APIs.

RATING_API_BASE_URL module-attribute

RATING_API_BASE_URL = 'https://ratings.aihorde.net/api/'

RATING_API_ENDPOINT_SUBPATH

Bases: GENERIC_API_ENDPOINT_SUBPATH

The URL actions 'paths' to the endpoints. Includes find/replace strings for path (non-query) variables.

Source code in horde_sdk/ratings_api/endpoints.py
class RATING_API_ENDPOINT_SUBPATH(GENERIC_API_ENDPOINT_SUBPATH):
    """The URL actions 'paths' to the endpoints. Includes find/replace strings for path (non-query) variables."""

    v1_user_check = "/v1/user/check/{user_id}"
    v1_image_ratings = "/v1/image/ratings/{image_id}"
    v1_user_validate = "/v1/user/validate/{user_id}"
    v1_user_ratings = "/v1/user/ratings/"

v1_user_check class-attribute instance-attribute

v1_user_check = '/v1/user/check/{user_id}'

v1_image_ratings class-attribute instance-attribute

v1_image_ratings = '/v1/image/ratings/{image_id}'

v1_user_validate class-attribute instance-attribute

v1_user_validate = '/v1/user/validate/{user_id}'

v1_user_ratings class-attribute instance-attribute

v1_user_ratings = '/v1/user/ratings/'