def METHOD_NAME(app: Flask):
    """This can be used to register this blueprint together with other api-related things"""
    # handle API specific errors
    app.register_error_handler(FMValidationError, validation_error_handler)
    app.register_error_handler(IntegrityError, catch_timed_belief_replacements)
    app.unauthorized_handler_api = invalid_sender
    app.register_blueprint(
        flexmeasures_api, url_prefix="/api"
    )  # now registering the blueprint will affect all endpoints
    # Load API endpoints for internal operations
    from flexmeasures.api.common import METHOD_NAME as ops_register_at
    ops_register_at(app)
    # Load API endpoints for play mode
    if app.config.get("FLEXMEASURES_MODE", "") == "play":
        from flexmeasures.api.play import METHOD_NAME as play_register_at
        play_register_at(app)
    # Load all versions of the API functionality
    from flexmeasures.api.v3_0 import METHOD_NAME as v3_0_register_at
    from flexmeasures.api.dev import METHOD_NAME as dev_register_at
    from flexmeasures.api.sunset import METHOD_NAME as sunset_register_at
    v3_0_register_at(app)
    dev_register_at(app)
    sunset_register_at(app)