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.
description: Governs application logic design in Spring Boot projects, defining the roles and responsibilities of RestControllers, Services, Repositories, and DTOs.
Instruction file imported from ethantrent/ibcmarketplace (.cursor/rules/rules/java-springboot-jpa-cursorrules-prompt-file/spring-boot-configuration.mdc). Copyright stays with the author.
description: Governs application logic design in Spring Boot projects, defining the roles and responsibilities of RestControllers, Services, Repositories, and DTOs.
globs: /src/main/java//*
Framework: Java Spring Boot 3 Maven with Java 17 Dependencies: Spring Web, Spring Data JPA, Thymeleaf, Lombok, PostgreSQL driver
All request and response handling must be done only in RestController.
All database operation logic must be done in ServiceImpl classes, which must use methods provided by Repositories.
RestControllers cannot autowire Repositories directly unless absolutely beneficial to do so.
ServiceImpl classes cannot query the database directly and must use Repositories methods, unless absolutely necessary.
Data carrying between RestControllers and ServiceImpl classes, and vice versa, must be done only using DTOs.
Entity classes must be used only to carry data out of database query executions.
Use it
Copy one of these into your project. Installing also returns the manifest and these snippets.
# after Install: the listing is in your workspace's routing pool - a plan picks it for its slot
curl -s -X POST https://api.opensmartroute.ai/api/v1/route -H 'Authorization: Bearer $OSR_API_KEY' -H 'Content-Type: application/json' -d '{"text": "...", "plan": true}'
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": "ethantrent-ibcmarketplace-spring-boot-configuration-rule",
"kind": "skill",
"name": "spring-boot-configuration",
"description": "description: Governs application logic design in Spring Boot projects, defining the roles and responsibilities of RestControllers, Services, Repositories, and DTOs. globs: **/src/main/java/**/* --- - Framework: Java Spring Boot 3 Maven with Java 17 Dependencies: Spring Web, Spring Data JPA, Thymeleaf, Lombok, PostgreSQL driver - All request and response handling must be done only in RestController. - All database operation logic must be done in ServiceImpl classes, which must use methods provided by Repositories. - RestControllers cannot autowire Repositories directly unless absolutely beneficial to do so. - ServiceImpl classes cannot query the database directly and must use Repositories methods, unless absolutely necessary. - Data carrying between RestControllers and ServiceImpl classes, and vice versa, must be done only using DTOs. - Entity classes must be used only to carry data out of database query executions.",
"publisher": "ethantrent",
"version": "1.0.0",
"capabilities": {
"domains": [
"coding",
"data_analysis"
],
"tags": [
"skill-md",
"github-cursor-rules"
],
"languages": [
"en"
]
},
"quality_prior": 0.6,
"examples": [
"description: Governs application logic design in Spring Boot projects, defining the roles and responsibilities of RestControllers, Services, Repositories, and DTOs. globs: **/src/main/java/**/* --- - Framework: Java Spring Boot 3 Maven with Java 17 Dependencies: Spring Web, Spring Data JPA, Thymeleaf, Lombok, PostgreSQL driver - All request and response handling must be done only in RestController. - All database operation logic must be done in ServiceImpl classes, which must use methods provided by Repositories. - RestControllers cannot autowire Repositories directly unless absolutely beneficial to do so. - ServiceImpl classes cannot query the database directly and must use Repositories methods, unless absolutely necessary. - Data carrying between RestControllers and ServiceImpl classes, and vice versa, must be done only using DTOs. - Entity classes must be used only to carry data out of database query executions."
],
"primary": false,
"metadata": {
"source": {
"provider": "github-cursor-rules",
"repository": "https://github.com/ethantrent/ibcmarketplace",
"path": ".cursor/rules/rules/java-springboot-jpa-cursorrules-prompt-file/spring-boot-configuration.mdc",
"ref": "ff1f278e981f830714a421c142dee12afa20312d",
"url": "https://github.com/ethantrent/ibcmarketplace/blob/ff1f278e981f830714a421c142dee12afa20312d/.cursor/rules/rules/java-springboot-jpa-cursorrules-prompt-file/spring-boot-configuration.mdc",
"key": "ethantrent/ibcmarketplace/.cursor/rules/rules/java-springboot-jpa-cursorrules-prompt-file/spring-boot-configuration.mdc"
}
},
"instructions": "---\ndescription: Governs application logic design in Spring Boot projects, defining the roles and responsibilities of RestControllers, Services, Repositories, and DTOs.\nglobs: **/src/main/java/**/*\n---\n- Framework: Java Spring Boot 3 Maven with Java 17 Dependencies: Spring Web, Spring Data JPA, Thymeleaf, Lombok, PostgreSQL driver\n- All request and response handling must be done only in RestController.\n- All database operation logic must be done in ServiceImpl classes, which must use methods provided by Repositories.\n- RestControllers cannot autowire Repositories directly unless absolutely ben",
"cost": {
"context_tokens": 233
}
}
Fetch it by URL: GET /api/v1/registry/ethantrent-ibcmarketplace-spring-boot-configuration-rule/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.