OpServ-Monitoring/opserv-backend

View on GitHub
app/server/restful_api/data/v1/endpoints/networks.py

Summary

Maintainability
A
0 mins
Test Coverage
from .root__general_child import RootGeneralChildEndpoint
from ....general.endpoint import Endpoint


class NetworksEndpoint(RootGeneralChildEndpoint):
    @classmethod
    def get_paths(cls):
        return [
            "/networks"
        ]

    @classmethod
    def get_name(cls):
        return "network entities"

    @classmethod
    def _get_component_type(cls) -> str:
        return "network"

    @classmethod
    def _get_children_endpoint_type(cls) -> Endpoint:
        from .networks_network import NetworksNetworkEndpoint

        return NetworksNetworkEndpoint