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

Delete API Endpoint Confirmation Required

Confirm Endpoint Deletion

Warning

You are about to delete this API endpoint. This action cannot be undone and will affect system integrations and data synchronization.

Endpoint Details:
Name: {{ object.name }}
External System: {{ object.external_system.name }}
URL: {{ object.url|truncatechars:50 }}
Method: {{ object.method }}
Status: {{ object.get_status_display }}
Usage Statistics:
Total Calls: {{ object.total_calls|default:0 }}
Successful Calls: {{ object.successful_calls|default:0 }}
Failed Calls: {{ object.failed_calls|default:0 }}
Success Rate: {{ object.success_rate|floatformat:1|default:0 }}%
Last Used: {{ object.last_called|date:"M d, Y H:i"|default:"Never" }}
Impact Assessment
  • Data Mappings: {{ object.data_mappings_count }} data mappings will be affected
  • Sync Jobs: {{ object.sync_jobs_count }} synchronization jobs will be disabled
  • Integration Logs: Historical logs will remain but endpoint reference will be lost
  • Monitoring: Health monitoring and alerts will be disabled
  • Dependencies: Other endpoints may depend on this one for data flow
{% if object.status == 'ACTIVE' %}
Active Endpoint Warning

This is an active endpoint currently in use. Deleting it will:

  • Immediately stop all data synchronization using this endpoint
  • Break integration workflows that depend on this endpoint
  • Potentially cause data inconsistencies
  • Trigger system alerts and monitoring notifications
{% endif %} {% if object.data_mappings_count > 0 %}
Data Mappings Warning

This endpoint has {{ object.data_mappings_count }} associated data mappings. These mappings will become inactive and may affect:

  • Automated data synchronization processes
  • Real-time data updates
  • Reporting and analytics accuracy
{% endif %} {% if dependent_endpoints %}
Dependency Warning

The following endpoints depend on this one:

    {% for dep in dependent_endpoints %}
  • {{ dep.name }} ({{ dep.external_system.name }}) {{ dep.get_status_display }}
  • {% endfor %}
{% endif %}
{{ object.total_calls|default:0 }}
Total API Calls
{{ object.data_mappings_count }}
Data Mappings
{{ object.sync_jobs_count }}
Sync Jobs
{{ dependent_endpoints|length }}
Dependencies
Alternative Actions

Consider these alternatives instead of deletion:

{% csrf_token %}
Deletion Confirmation
{% if object.status == 'ACTIVE' %}
{% endif %} {% if object.data_mappings_count > 0 %}
{% endif %} {% if dependent_endpoints %}
{% endif %}
{% endblock %} {% block js %} {% endblock %}