__find_api_end_point_for_viewset.py 250 Bytes
Newer Older
1
from shared import load_api_config
2
3
4
5


def find_api_end_point_for_viewset(viewset_name):

6
    api_config = load_api_config()
7
    for obj in api_config:
8
9
        if obj["viewset"] == viewset_name:
            return obj["api_end_point"]
10
11

    return None