Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Provide a fluent API for snippet configuration

Aperta
#192 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
java, spring

Direzione di ricerca

Start by reviewing the existing varargs-based responseFields and requestFields APIs, then investigate the Spring MVC usage pattern mentioned in the issue. Done means providing a fluent builder API alongside the current approach with equivalent request and response field configuration.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

type: enhancement

Since REST assured is based on a fluent API it would be awesome if Spring REST docs could provide a fluent (builder) API in addition to the varargs based approach.

(haven't looked in the Spring MVC usage pattern yet).

For example, instead of

responseFields( 
            fieldWithPath("contact").description("The user's contact details"), 
            fieldWithPath("contact.email").description("The user's email address"))

maybe sth like

request()
    .param("id","User's id")
response()
    .field("contact","The user's contact details")
    .field("contact.email","The user's email address")

Just a minor enhancement but would probably better align the paradigms. Nothing serious ;-)

Lingua principale
Java
Stelle
1.2k
Fork
733
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di spring-projects/spring-restdocs

Tutte le issue di spring-projects/spring-restdocs

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.