{% extends "base.html" %} {% load static %} {% block title %}API Endpoint Details - Integration{% endblock %} {% block content %}

{{ object.name }} API Endpoint Details

Endpoint Information

Edit
Name: {{ object.name }}
External System: {{ object.external_system.name }}
URL: {{ object.url }}
Method: {{ object.method }}
Status: {{ object.get_status_display }}
Health Status: {% if object.health_status %} {{ object.health_status }} {% else %} Not tested {% endif %}
Last Tested: {{ object.last_tested|date:"M d, Y H:i"|default:"Never" }}
Response Time: {{ object.last_response_time|default:"--" }}ms
Success Rate: {{ object.success_rate|floatformat:1 }}%
Created: {{ object.created_at|date:"M d, Y H:i" }}
{% if object.description %}
Description
{{ object.description|linebreaks }}
{% endif %}

Configuration

Request Configuration
Timeout: {{ object.timeout|default:"30" }} seconds
Retry Count: {{ object.retry_count|default:"3" }}
Content Type: {{ object.content_type|default:"application/json" }}
Authentication: {{ object.auth_type|default:"None" }}
Response Configuration
Expected Status: {{ object.expected_status_code|default:"200" }}
Response Format: {{ object.response_format|default:"JSON" }}
Validation: {{ object.validate_response|yesno:"Enabled,Disabled" }}
Logging: {{ object.log_requests|yesno:"Enabled,Disabled" }}
{% if object.headers %}
Headers
{% for header, value in object.headers.items %} {% endfor %}
Header Value
{{ header }} {{ value }}
{% endif %} {% if object.parameters %}
Parameters
{% for param in object.parameters %} {% endfor %}
Parameter Type Required Default Value
{{ param.name }} {{ param.type }} {{ param.required|yesno:"Yes,No" }} {{ param.default_value|default:"--" }}
{% endif %}

Recent Test Results

{% if recent_tests %}
{% for test in recent_tests %} {% endfor %}
Test Date Status Response Time Status Code Result Actions
{{ test.tested_at|date:"M d, Y H:i" }} {{ test.success|yesno:"Success,Failed" }} {{ test.response_time }}ms {{ test.status_code }} {% if test.error_message %} {{ test.error_message|truncatechars:50 }} {% else %} OK {% endif %}
{% else %}
No test results available
{% endif %}

Quick Actions

Edit Configuration {% if object.status == 'INACTIVE' %} {% else %} {% endif %}
Delete Endpoint

Statistics

{{ object.total_calls }}
Total Calls
{{ object.successful_calls }}
Successful

{{ object.failed_calls }}
Failed
{{ object.avg_response_time }}ms
Avg Response

{{ object.success_rate|floatformat:1 }}%
Success Rate

External System

{{ object.external_system.name }}
{{ object.external_system.system_type }}
Status: {{ object.external_system.get_status_display }}
Version: {{ object.external_system.version|default:"Unknown" }}
Base URL: {{ object.external_system.base_url }}
{% endblock %} {% block js %} {% endblock %}