from lib.services.faas.templates_client import TemplatesClientInterface
from lib.api_schema.response.flava_services.faas.v1_0 import templates as schema


class FlavaTemplatesClient(TemplatesClientInterface):
    """Service client for the templates API of Flava FaaS.

    This client provides the schema and path to each API endpoint for dependency
    injection.

    For a full list of available parameters and endpoints, please refer to the
    official API reference:
    https://faas-core-api-mdev.linecorp-dev.com/swagger/index.html#/Templates
    """

    def get_schema(self):
        """Provide the response schema of the templates API."""
        return schema

    def get_templates_path(self):
        """Provide the API endpoint path for templates API."""
        return "/templates"
