📡 API Documentation
Accede a toda la información de aplicaciones mediante nuestra API REST
🚀 Introducción
La Inled Open Store API proporciona acceso completo a todos los datos de aplicaciones en formato JSON.
Base URL:
http://localhost:4321/api Rápida
Respuestas optimizadas con cache
Abierta
Sin autenticación requerida
RESTful
Arquitectura REST estándar
🔌 Endpoints
GET
/api/apps.json Obtiene la lista completa de aplicaciones.
Ejemplo:
Ver ejemplo en vivo → curl http://localhost:4321/api/apps.json GET
/api/apps/[id].json Obtiene los detalles de una aplicación específica.
Parámetros:
id- ID único de la aplicación
Ejemplo:
Ver ejemplo en vivo → curl http://localhost:4321/api/apps/swiftinstall.json GET
/api/stats.json Obtiene estadísticas generales de la app store.
Ejemplo:
Ver ejemplo en vivo → curl http://localhost:4321/api/stats.json GET
/api/platforms/[platform].json Filtra aplicaciones por plataforma.
Plataformas válidas:
Windows macOS Linux Web Android iOS Chrome Firefox Safari Edge
Ejemplo:
Ver ejemplo en vivo → curl http://localhost:4321/api/platforms/Windows.json 📋 Modelo de Datos
{
"id": "string",
"title": "string",
"icon": "string",
"platform": ["Platform"],
"shortDescription": "string",
"description": "string (markdown)",
"screenshots": ["string"],
"video": "string | undefined",
"downloads": {
"github": "string | undefined",
"sourceforge": "string | undefined",
"sourceCode": "string"
}
} 💻 Ejemplos de Uso
JavaScript / Fetch
// Obtener todas las apps
fetch('http://localhost:4321/api/apps.json')
.then(res => res.json())
.then(apps => console.log(apps));
// Obtener app específica
fetch('http://localhost:4321/api/apps/photo-editor-pro.json')
.then(res => res.json())
.then(app => console.log(app));
// Filtrar por plataforma
fetch('http://localhost:4321/api/platforms/Windows.json')
.then(res => res.json())
.then(data => console.log(data.apps)); Python
import requests
# Obtener todas las apps
response = requests.get('http://localhost:4321/api/apps.json')
apps = response.json()
# Obtener estadísticas
stats = requests.get('http://localhost:4321/api/stats.json').json()
print(f"Total apps: {stats['totalApps']}") ⚙️ Configuración
Cache
Los endpoints están cacheados durante 1 hora (3600 segundos)
Cache-Control: public, max-age=3600 CORS
CORS está habilitado para todas las peticiones
Access-Control-Allow-Origin: * Formato
Todas las respuestas están en formato JSON
Content-Type: application/json