{% extends "base.html" %} {% block title %}API Client: {{ client.client_name }} - LSMC Atlas{% endblock %} {% block content %}
← Back to API Clients

{{ client.client_name }}

{% if revision.is_active %} {% if revision.expires_at and revision.expires_at < now %} Expired {% else %} Active {% endif %} {% else %} Inactive {% endif %}
Edit

Client ID

{{ client.euid }}

Created

{{ client.created_at | format_dt(user_preferences) }}

Rate Limit

{{ revision.rate_limit_per_minute or 'None' }} {% if revision.rate_limit_per_minute %} requests/minute{% endif %}

Expires At

{% if revision.expires_at %} {{ revision.expires_at | format_dt(user_preferences) }} {% else %} Never {% endif %}

Permissions

{% for perm in revision.permissions %} {{ perm }} {% endfor %}
{% if revision.allowed_endpoints %}

Allowed Endpoints

    {% for endpoint in revision.allowed_endpoints %}
  • {{ endpoint }}
  • {% endfor %}
{% endif %} {% if revision.ip_allowed_list %}

IP Allowed List

{% for ip in revision.ip_allowed_list %} {{ ip }} {% endfor %}
{% endif %} {% if revision.note %}

Note

{{ revision.note }}

{% endif %}

Recent API Usage

{% if usage_logs %}
{% for log in usage_logs %} {% endfor %}
Endpoint Method Status Duration IP Address Accessed At
{{ log.endpoint }} {{ log.method }} {% if log.status_code >= 200 and log.status_code < 300 %} {{ log.status_code }} {% elif log.status_code >= 400 %} {{ log.status_code }} {% else %} {{ log.status_code }} {% endif %} {{ log.duration_ms or '-' }}{% if log.duration_ms %}ms{% endif %} {{ log.ip_address or '-' }} {{ log.accessed_at | format_dt(user_preferences) }}
{% else %}

No API usage yet.

{% endif %}
{% endblock %}