Przejdź do treści
Biblioteka skilli
Programowanie · Przegląd i audyt

502-frameworks-micronaut-rest

/502-frameworks-micronaut-rest

Pomaga projektować API REST w Micronaut: kontrolery, kody statusu, DTO, walidację, paginację, OpenAPI i bezpieczeństwo.

Repozytorium
plinth ↗
Licencja
Apache-2.0
Ostatnia zmiana repozytorium
21.10.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
2
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 21.10.2026, bez odwołań do wycofanych modeli i API.

Licencja

Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.

Co robi i kiedy

Pomaga projektować API REST w Micronaut: kontrolery, kody statusu, DTO, walidację, paginację, OpenAPI i bezpieczeństwo.

Oryginalny opis (EN)

Use when you need to design, review, or improve REST APIs with Micronaut — including @Controller routes, HTTP status codes, DTOs, Bean Validation, exception handlers, pagination, idempotency, ETag/If-Match, caching headers, versioning, contract-first OpenAPI (OpenAPI Generator), optional runtime OpenAPI via micronaut-openapi, and security annotations. This should trigger for requests such as Review or improve Micronaut @Controller REST APIs; Add validation, error handling, or align controllers with the OpenAPI contract on Micronaut HTTP layer; Design Micronaut controllers and DTO validation; A

Jak działa

  1. Constraints
  2. When to use this skill
  3. Workflow
  4. Reference
Sekcje z nagłówków SKILL.md, w oryginale · 62 linii, 347 słów
Podgląd SKILL.md
---
name: 502-frameworks-micronaut-rest
description: Use when you need to design, review, or improve REST APIs with Micronaut — including @Controller routes, HTTP status codes, DTOs, Bean Validation, exception handlers, pagination, idempotency, ETag/If-Match, caching headers, versioning, contract-first OpenAPI (OpenAPI Generator), optional runtime OpenAPI via micronaut-openapi, and security annotations. This should trigger for requests such as Review or improve Micronaut @Controller REST APIs; Add validation, error handling, or align controllers with the OpenAPI contract on Micronaut HTTP layer; Design Micronaut controllers and DTO validation; Add Micronaut exception handlers and Problem Details responses; Improve pagination filtering or OpenAPI alignment in Micronaut APIs. Part of Plinth Toolkit
license: Apache-2.0
metadata:
  author: Juan Antonio Breña Moral
  version: 0.19.0
---
# Micronaut REST API Guidelines

Apply REST design principles for Micronaut HTTP applications.

**What is covered in this Skill?**

- Semantic HTTP with @Get/@Post/@Put/@Patch/@Delete and HttpResponse status control
- Resource-oriented paths and stable DTO contracts
- @Valid on request bodies with Bean Validation
- Centralized error mapping (ExceptionHandler / problem JSON when applicable)
- Pagination with Pageable and bounded sizes
- OpenAPI contract file (API-first) and OpenAPI Generator for server stubs
- Security annotations (@Secured) on sensitive routes
- Idempotency-Key for retried writes
- ETag / If-Match for optimistic concurrency
- Cache-Control discipline
- API versioning patterns
- ISO-8601 time types in DTOs

**Scope:** Apply recommendations based on the reference rules and good/bad code examples.

## Constraints

Compile before REST refactors; verify after.

- **MANDATORY**: Run `./mvnw compile` or `mvn compile` before applying any change
- **SAFETY**: If compilation fails, stop immediately
- **VERIFY**: Run `./mvnw clean verify` or `mvn clean verify` after applying improvements
- **BEFORE APPLYING**: Read the reference for detailed rules and examples
- **EDGE CASE**: If request scope is ambiguous, stop and ask a clarifying question before applying changes
- **EDGE CASE**: If required inputs, files, or tooling are missing, report what is missing and ask whether to proceed with setup guidance

## When to use this skill

- Review or improve Micronaut @Controller REST APIs
- Add validation, error handling, or align controllers with the OpenAPI contract on Micronaut HTTP layer
- Design Micronaut controllers and DTO validation
- Add Micronaut exception handlers and Problem Details responses
- Improve pagination filtering or OpenAPI alignment in Micronaut APIs

## Workflow

1. **Read reference and assess project context**

Read `references/502-frameworks-micronaut-rest.md` and inspect the current project setup before proposing changes.

2. **Gather scope and decide target improvements**

Identify requested outcomes, constraints, and the minimum safe set of changes to apply.

3. **Apply framework-aligned changes**

Implement or refactor configuration/code following the reference patterns and project conventions.

4. **Run verification and report results**

Execute appropriate build/tests and summarize what changed, what was verified, and any follow-up actions.

## Reference

For detailed guidance, examples, and constraints, see [references/502-frameworks-micronaut-rest.md](references/502-frameworks-micronaut-rest.md).
Pliki w paczce (2)
  • SKILL.md 3 KB
  • references/502-frameworks-micronaut-rest.md 37 KB

Wersje

W bazie nie ma innych skilli o nazwie 502-frameworks-micronaut-rest.

Migawka bazy z 13.11.2026 · wersja paczki 97edcdb2ce9f (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100503-frameworks-micronaut-validation
    Projektuje i sprawdza walidację w Micronaut: Bean Validation w kontrolerach, parametry zapytań i mapowanie błędów.
  • 100302-frameworks-spring-boot-rest
    Projektuje i sprawdza REST API w Spring Boot: metody, kody statusu, DTO, wersjonowanie, stronicowanie, walidację i OpenAPI.
  • 100402-frameworks-quarkus-rest
    Pomaga projektować API REST w Quarkus: klasy zasobów, kody statusu, walidację, mapowanie wyjątków, paginację i wersjonowanie.
  • 100515-frameworks-micronaut-mongodb
    Pomaga wdrożyć trwałość danych MongoDB w Micronaut: repozytoria, modelowanie dokumentów, indeksy i wzorce zapytań.
  • 100common-api-design
    Stosuje konwencje REST API: semantykę HTTP, kody statusu, wersjonowanie, paginację i standardy OpenAPI, niezależnie od frameworka.
  • 100common-api-design
    Stosuje konwencje projektowania REST API: metody HTTP, kody statusu, wersjonowanie, stronicowanie i specyfikację OpenAPI.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.