Hi - I answer from the OpenSmartRoute documentation: routing, the API, plans and quotas, self-hosting. Ask away, or open a support ticket if you need a person.
Grounded in the docs - follow a source before acting on it.
api-architecture - Skill - OpenSmartRoute
Skillv1.0.0
api-architecture
Arquitectura de Tres Capas - **Controllers:** Debe ser delgado. Solo maneja la solicitud (req), llama al Servicio y gestiona la respuesta (res). Prohibida la lógica de negocio y el acceso directo a la
Instruction file imported from DVVID-G/MercApp-Backend (.github/instructions/backend/api-architecture.instructions.md). Copyright stays with the author.
Arquitectura de Tres Capas
Controllers: Debe ser delgado. Solo maneja la solicitud (req), llama al Servicio y gestiona la respuesta (res). Prohibida la lógica de negocio y el acceso directo a la DB.
Services: Contiene la lógica de negocio principal (validaciones complejas, transacciones) y es la única capa que puede llamar a Prisma.
Errores: Implementar un middleware centralizado para capturar y tipificar errores. Las funciones deben lanzar (throw) excepciones tipadas que el middleware maneje.
Use it
Copy one of these into your project. Installing also returns the manifest and these snippets.
yaml
targets:
- https://api.opensmartroute.ai/api/v1/registry/dvvid-g-mercapp-backend-api-architecture-instructions/manifest # or paste the manifest below
Manifest
An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.
{
"ocm": "1",
"id": "dvvid-g-mercapp-backend-api-architecture-instructions",
"kind": "skill",
"name": "api-architecture",
"description": "Arquitectura de Tres Capas - **Controllers:** Debe ser delgado. Solo maneja la solicitud (req), llama al Servicio y gestiona la respuesta (res). Prohibida la lógica de negocio y el acceso directo a la DB. - **Services:** Contiene la **lógica de negocio** principal (validaciones complejas, transacciones) y es la única capa que puede llamar a Prisma. - **Errores:** Implementar un *middleware* centralizado para capturar y tipificar errores. Las funciones deben lanzar (throw) excepciones tipadas que el *middleware* maneje.",
"publisher": "DVVID-G",
"version": "1.0.0",
"capabilities": {
"domains": [
"coding"
],
"tags": [
"skill-md",
"github-instructions"
],
"languages": [
"en"
]
},
"quality_prior": 0.6,
"examples": [
"Arquitectura de Tres Capas - **Controllers:** Debe ser delgado. Solo maneja la solicitud (req), llama al Servicio y gestiona la respuesta (res). Prohibida la lógica de negocio y el acceso directo a la DB. - **Services:** Contiene la **lógica de negocio** principal (validaciones complejas, transacciones) y es la única capa que puede llamar a Prisma. - **Errores:** Implementar un *middleware* centralizado para capturar y tipificar errores. Las funciones deben lanzar (throw) excepciones tipadas que el *middleware* maneje."
],
"primary": false,
"metadata": {
"source": {
"provider": "github-instructions",
"repository": "https://github.com/DVVID-G/MercApp-Backend",
"path": ".github/instructions/backend/api-architecture.instructions.md",
"ref": "51132d34fbef23628480124f0461778b4435ece5",
"url": "https://github.com/DVVID-G/MercApp-Backend/blob/51132d34fbef23628480124f0461778b4435ece5/.github/instructions/backend/api-architecture.instructions.md",
"key": "DVVID-G/MercApp-Backend/.github/instructions/backend/api-architecture.instructions.md"
},
"applies_to": "**"
},
"instructions": "# Arquitectura de Tres Capas\n- **Controllers:** Debe ser delgado. Solo maneja la solicitud (req), llama al Servicio y gestiona la respuesta (res). Prohibida la lógica de negocio y el acceso directo a la DB.\n- **Services:** Contiene la **lógica de negocio** principal (validaciones complejas, transacciones) y es la única capa que puede llamar a Prisma.\n- **Errores:** Implementar un *middleware* centralizado para capturar y tipificar errores. Las funciones deben lanzar (throw) excepciones tipadas que el *middleware* maneje.",
"cost": {
"context_tokens": 131
}
}
Fetch it by URL: GET /api/v1/registry/dvvid-g-mercapp-backend-api-architecture-instructions/manifest?version=1.0.0
Reviews
Star ratings from people who tried it. One review per account; edit yours any time.
No reviews yet. Install it, try it, and be the first to rate it.