def METHOD_NAME(request):
    try:
        exp = int(request.GET.get("exp", "3"))
    except Exception:
        exp = 3
    if exp > 7:
        exp = 7
    return render(
        request,
        "rest_framework/index.html",
        context={
            "exp": exp,
            "request": request,
            "title": _("REST API Help"),
            "token": getWebserviceAuthorization(
                user=request.user.username, exp=exp * 86400, database=request.database
            ),
        },
    )