{% extends "base.html" %}

{% block title %}Réponse API brute - Debug{% endblock %}

{% block content %}
<div class="container-fluid">
    <div class="row mb-4">
        <div class="col">
            <h1><i class="fas fa-code"></i> Réponse API brute</h1>
            <p class="text-muted">Relevé de l'API Microsoft Graph /v2.0/me/messages</p>
        </div>
        <div class="col-auto">
            <a href="{{ url_for('outlook_test.index') }}" class="btn btn-secondary">
                <i class="fas fa-arrow-left"></i> Retour
            </a>
        </div>
    </div>

    <div class="row">
        <div class="col-12">
            <div class="card">
                <div class="card-header">
                    <h5 class="mb-0">Status HTTP: {{ status }}</h5>
                </div>
                <div class="card-body">
                    <pre style="font-size: 0.8em; max-height: 600px; overflow: auto;">{{ data | tojson(indent=2) }}</pre>
                </div>
            </div>
        </div>
    </div>
</div>
{% endblock %}