{% extends "base.html" %} {% load static %} {% block title %}{% if object %}Edit{% else %}Add{% endif %} API Endpoint - Integration{% endblock %} {% block content %}

{% if object %}Edit API Endpoint{% else %}Add API Endpoint{% endif %} {% if object %}{{ object.name }}{% else %}External System Integration{% endif %}

Endpoint Configuration

{% csrf_token %}
{{ form.name }} {% if form.name.help_text %}
{{ form.name.help_text }}
{% endif %} {% if form.name.errors %}
{{ form.name.errors.0 }}
{% endif %}
{{ form.external_system }} {% if form.external_system.errors %}
{{ form.external_system.errors.0 }}
{% endif %}
{{ form.description }} {% if form.description.help_text %}
{{ form.description.help_text }}
{% endif %} {% if form.description.errors %}
{{ form.description.errors.0 }}
{% endif %}
Request Configuration
{{ form.url }} {% if form.url.help_text %}
{{ form.url.help_text }}
{% endif %} {% if form.url.errors %}
{{ form.url.errors.0 }}
{% endif %}
{{ form.method }} {% if form.method.errors %}
{{ form.method.errors.0 }}
{% endif %}
{{ form.timeout }} {% if form.timeout.errors %}
{{ form.timeout.errors.0 }}
{% endif %}
{{ form.retry_count }} {% if form.retry_count.errors %}
{{ form.retry_count.errors.0 }}
{% endif %}
{{ form.content_type }} {% if form.content_type.errors %}
{{ form.content_type.errors.0 }}
{% endif %}
Authentication
{{ form.auth_type }} {% if form.auth_type.errors %}
{{ form.auth_type.errors.0 }}
{% endif %}
Headers
Parameters
Response Configuration
{{ form.expected_status_code }} {% if form.expected_status_code.errors %}
{{ form.expected_status_code.errors.0 }}
{% endif %}
{{ form.response_format }} {% if form.response_format.errors %}
{{ form.response_format.errors.0 }}
{% endif %}
{{ form.status }} {% if form.status.errors %}
{{ form.status.errors.0 }}
{% endif %}
Options
{{ form.validate_response }}
{{ form.log_requests }}
{{ form.enable_monitoring }}

Help & Tips

Configuration Tips
  • Use descriptive names for easy identification
  • Test the endpoint before saving
  • Set appropriate timeout values
  • Enable logging for debugging
  • Use authentication when required
URL Variables

You can use these variables in your URL:

  • {base_url} - System base URL
  • {api_version} - API version
  • {tenant_id} - Current tenant ID
  • {user_id} - Current user ID
Security Notes

Important security considerations:

  • Credentials are encrypted at rest
  • Use HTTPS for sensitive data
  • Validate all responses
  • Monitor for unusual activity
{% if object %}

Current Status

Status: {{ object.get_status_display }}
Health: {% if object.health_status %} {{ object.health_status }} {% else %} Not tested {% endif %}
Last Test: {{ object.last_tested|date:"M d, H:i"|default:"Never" }}
Success Rate: {{ object.success_rate|floatformat:1 }}%
{% endif %}
{% endblock %} {% block js %} {% endblock %}