def METHOD_NAME(endpoint='literature', recid='42'):
    server = current_app.config['SERVER_NAME']
    if not server.startswith('http://'):
        server = 'http://{}'.format(server)
    return '{}/api/{}/{}'.format(server, endpoint, recid)