{% extends "rest_framework/base.html" %} {% load i18n %} {% load static %} {% load rest_framework %} {% block style %} {{ block.super }} {% endblock %} {% block content %}
{% block request_forms %} {% if 'GET' in allowed_methods %}
GET
{% endif %} {% endblock request_forms %}

Microservice to take webpage screenshots powered by Puppeteer & Chromium.

{# 1. SCREENSHOT RESULT (if image captured) #} {% if image_base64 %}
{% trans "Captured Screenshot" %}
Captured screenshot
{% endif %} {# 2. CAPTURE ERRORS (if any) #} {% if capture_errors %} {% endif %} {# 3. SCREENSHOT FORM (generated from serializer) #}
{% trans "Take a Screenshot" %}
{% if post_form %}
{% csrf_token %} {% if post_form.non_field_errors %}
{{ post_form.non_field_errors }}
{% endif %} {{ post_form }}
{% endif %}
{# 4. TECHNICAL DETAILS (collapsible) #}

{{ request.method }} {{ request.get_full_path }}
HTTP {{ response.status_code }} {{ response.status_text }}{% for key, val in response_headers.items %}
{{ key }}: {{ val|urlize }}{% endfor %}

{{ content|urlize }}
{% endblock content %} {% block script %} {{ block.super }} {% endblock %}