2025-05-08 20:49:15 -04:00
|
|
|
{% extends "layout.html" %}
|
|
|
|
|
|
|
|
|
|
{% block title %}Home - KCAP Demo Server{% endblock %}
|
|
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
|
<div class="row mt-4">
|
|
|
|
|
<div class="col-md-12">
|
|
|
|
|
<div class="jumbotron">
|
2025-06-19 14:25:42 -04:00
|
|
|
<h1 class="display-4">KCAP Demo Server{% if tenant %} - {{ tenant.name }}{% endif %}</h1>
|
2025-05-08 20:49:15 -04:00
|
|
|
<p class="lead">A simple Flask API for demonstrating AR content retrieval for barcode scanning applications.</p>
|
|
|
|
|
<hr class="my-4">
|
|
|
|
|
<p>This server simulates the Knox Capture API for AR overlays and includes endpoints for managing product attributes.</p>
|
|
|
|
|
<div class="mt-4">
|
|
|
|
|
<h2>API Endpoints</h2>
|
|
|
|
|
<ul class="list-group">
|
|
|
|
|
<li class="list-group-item">
|
2025-06-19 14:25:42 -04:00
|
|
|
<strong>Login:</strong> <code>GET {% if tenant %}/{{ tenant.id }}{% endif %}/login</code>
|
|
|
|
|
<p>Authenticates using Basic Auth with tenant-specific credentials.</p>
|
2025-05-08 20:49:15 -04:00
|
|
|
</li>
|
|
|
|
|
<li class="list-group-item">
|
2025-06-19 14:25:42 -04:00
|
|
|
<strong>Content Fields:</strong> <code>GET {% if tenant %}/{{ tenant.id }}{% endif %}/arcontentfields</code>
|
2025-05-08 20:49:15 -04:00
|
|
|
<p>Returns a list of available attributes (e.g., item ID, price, image URI).</p>
|
|
|
|
|
</li>
|
|
|
|
|
<li class="list-group-item">
|
2025-06-19 14:25:42 -04:00
|
|
|
<strong>AR Info:</strong> <code>GET {% if tenant %}/{{ tenant.id }}{% endif %}/arinfo?barcode=123456</code>
|
2025-05-08 20:49:15 -04:00
|
|
|
<p>Returns product details for a given barcode, including image URLs.</p>
|
|
|
|
|
</li>
|
|
|
|
|
<li class="list-group-item">
|
2025-06-19 14:25:42 -04:00
|
|
|
<strong>Static Image Server:</strong> <code>GET {% if tenant %}/{{ tenant.id }}{% endif %}/images/123456.png</code>
|
|
|
|
|
<p>Serves product images stored in the database.</p>
|
2025-05-08 20:49:15 -04:00
|
|
|
</li>
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="mt-4">
|
2025-06-19 14:25:42 -04:00
|
|
|
{% if tenant %}
|
|
|
|
|
<a href="/{{ tenant.id }}/admin/" class="btn btn-primary btn-lg">Go to Admin Interface</a>
|
|
|
|
|
{% else %}
|
2025-05-08 20:49:15 -04:00
|
|
|
<a href="/admin" class="btn btn-primary btn-lg">Go to Admin Interface</a>
|
2025-06-19 14:25:42 -04:00
|
|
|
{% endif %}
|
2025-05-08 20:49:15 -04:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
{% endblock %}
|