from app.api.insee_ref.facade import InseeRefFacade
from app.models import InseeRef


def register_insee_ref_api_urls(app):
    registrar = app.api_url_registrar
    registrar.register_get_routes(InseeRef, InseeRefFacade)
    registrar.register_relationship_get_route(InseeRefFacade, 'parent')
    registrar.register_relationship_get_route(InseeRefFacade, 'children')

4c1e6ffbec66fb6cf99f096fd52d9a10d14aeebe
<mask token>

<mask token>


def register_insee_ref_api_urls(app):
    registrar = app.api_url_registrar
    registrar.register_get_routes(InseeRef, InseeRefFacade)
    registrar.register_relationship_get_route(InseeRefFacade, 'parent')
    registrar.register_relationship_get_route(InseeRefFacade, 'children')

from app.api.insee_ref.facade import InseeRefFacade
from app.models import InseeRef


def register_insee_ref_api_urls(app):
    registrar = app.api_url_registrar
    registrar.register_get_routes(InseeRef, InseeRefFacade)
    registrar.register_relationship_get_route(InseeRefFacade, 'parent')
    registrar.register_relationship_get_route(InseeRefFacade, 'children')
