{% extends "base.html.j2" %}
{% import "components.html.j2" as ui %}
{% block content %}
Documentación técnica del servicio RESTlet.RESTlet · {{ doc.metadata.description or doc.metadata.script_type }}
No se pudo interpretar la definición de este endpoint.
{% continue %} {% endif %}{{ definition.description }}
{% endif %} {# ---------------------- INPUTS ---------------------- #} {% set inputs = definition.inputs or {} %} {% if inputs is mapping %} {% if inputs.url_params %} {{ ui.table_block("URL params", inputs.url_params, [ {"field": "name", "title": "Nombre"}, {"field": "description", "title": "Descripción"}, {"field": "type", "title": "Tipo"} ]) }} {% endif %} {% if inputs.query_string %} {{ ui.table_block("Query string", inputs.query_string, [ {"field": "name", "title": "Nombre"}, {"field": "description", "title": "Descripción"}, {"field": "type", "title": "Tipo"} ]) }} {% endif %} {% if inputs.body_fields %} {{ ui.table_block("Body", inputs.body_fields, [ {"field": "name", "title": "Nombre"}, {"field": "description", "title": "Descripción"}, {"field": "type", "title": "Tipo"} ]) }} {% endif %} {% else %}Inputs no estructurados o no disponibles.
{% endif %} {# ---------------------- LÓGICA ---------------------- #} {% if definition.logic %} {{ ui.logic_block("Lógica", definition.logic) }} {% endif %} {# ---------------------- OPERACIONES ---------------------- #} {% if definition.record_operations %} {{ ui.table_block("Operaciones sobre registros", definition.record_operations, [ {"field": "type", "title": "Operación"}, {"field": "recordType", "title": "Record"}, {"field": "details", "title": "Detalles"} ]) }} {% endif %} {% if definition.searches %} {{ ui.table_block("Búsquedas", definition.searches, [ {"field": "id", "title": "ID"}, {"field": "filters", "title": "Filtros"}, {"field": "columns", "title": "Columnas"} ]) }} {% endif %} {# ---------------------- OUTPUT ---------------------- #} {% if definition.output %} {{ ui.logic_block("Salida", definition.output) }} {% endif %} {# ---------------------- VALIDACIONES ---------------------- #} {% if definition.validations %} {{ ui.list_block("Validaciones", definition.validations) }} {% endif %} {# ---------------------- SIDE EFFECTS ---------------------- #} {% if definition.side_effects %} {{ ui.list_block("Side effects", definition.side_effects) }} {% endif %} {% endfor %}