{% extends 'base.html' %} {% block title %}Tokeny API{% endblock %} {% block content %}
Administrator może utworzyć wiele tokenów, ograniczyć ich zakres i endpointy oraz w każdej chwili je wyłączyć albo usunąć.
Authorization: Bearer TWOJ_TOKEN lub X-API-Token. Endpoint i zakres muszą być jednocześnie dozwolone na tokenie. Parametr limit jest przycinany do wartości ustawionej w tokenie.| Metoda | Endpoint | Wymagany zakres | Opis |
|---|---|---|---|
{{ row.method }} |
{{ row.path }} |
{{ row.scope }} |
{{ row.description }} |
| Nazwa | Prefix | Status | Zakres | Endpointy | Max limit | Utworzono | Ostatnie użycie | Akcje |
|---|---|---|---|---|---|---|---|---|
|
{{ token.name }}
Autor: {{ token.creator.username if token.creator else '—' }}
|
{{ token.token_prefix }}… |
{% if token.is_active %}Aktywny{% else %}Wyłączony{% endif %} | {{ token.scopes or '—' }} |
{{ token.allowed_endpoints or '—' }} |
{{ token.max_limit or '—' }} | {{ token.created_at.strftime('%Y-%m-%d %H:%M') if token.created_at else '—' }} | {{ token.last_used_at.strftime('%Y-%m-%d %H:%M') if token.last_used_at else 'Jeszcze nie użyto' }} |
{% if token.is_active %}
{% else %}
{% endif %}
|
| Brak tokenów API. | ||||||||