{% extends "admin-base-auth.html" %} {% load i18n %} {% load static %} {% block content %}

{% blocktranslate trimmed %} Galería includes a very simple API REST to query and modify the online gallery; in general, querying operations do not require authentication; while all the oprations that modify the gallery does, using the user token in Django, which is automatically shown in the Information entry of the menu. {% endblocktranslate %}

{% translate "List albums" %}

{% blocktranslate trimmed %} Returns a list of all the albums and their properties in the gallery, in JSON format. {% endblocktranslate %}

{% translate "List photographs" %}

{% blocktranslate trimmed %} Returns a list of all the photos and their properties in the gallery, in JSON format, in pages of 100 photos. {% endblocktranslate %}

{% translate "Random photograph" %}

{% blocktranslate trimmed %} Returns enough information of a random photo in the gallery so it can be shown in another site. {% endblocktranslate %}

{% translate "Upload photographs" %}

{% blocktranslate trimmed %} Uploads one or more photographs to the gallery. {% endblocktranslate %}

{% translate "Delete item" %}

{% blocktranslate trimmed %} Deletes an item from the gallery; if the item is an album, all its subalbums and photographs inside it are eliminated too. {% endblocktranslate %}

{% blocktranslate trimmed %} Warning: This operation is destructive; once a photograph has been eliminated, the only way to bring it back is to upload it again. {% endblocktranslate %}

{% translate "Reset covers" %}

{% blocktranslate trimmed %} Resets the covers in the gallery. When resetting the covers, the first photograph of an event becomes its cover; and the first album of a month or year becomes the cover of the containing album. {% endblocktranslate %}

{% translate "Download covers" %}

{% blocktranslate trimmed %} Downloads the covers of the gallery, in a JSON formated file. {% endblocktranslate %}

{% translate "Upload covers" %}

{% blocktranslate trimmed %} Uploads the covers to the gallery, from a JSON formated file. {% endblocktranslate %}

{% endblock %}