from lib.services.servicemap.service_resource_client import ServiceResourceClientInterface
from lib.api_schema.response.flava_services.servicemap.v1_0 import (
    service_resource as schema,
)


class FlavaServiceResourceClient(ServiceResourceClientInterface):
    """Service client for the Flava ServiceMap ServiceResource API.

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

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

    def get_service_resource_path(self, project):
        """Provide the API endpoint path for ServiceResource API."""
        return f"/api/v1/reg/service_resource"