codeconsole opened a new pull request, #16271:
URL: https://github.com/apache/grails-core/pull/16271

   The guide documents seven mappings for `resources` and six for `single`. 
Both generate one more — `PATCH` has been generated since the action was added 
and was never documented, including in the "Explicit REST Mappings" equivalence 
list.
   
   ```groovy
   "/books"(resources: 'book')
   ```
   
   is equivalent to eight mappings, not seven:
   
   ```groovy
   get    "/books"(controller: "book", action: "index")
   get    "/books/create"(controller: "book", action: "create")
   post   "/books"(controller: "book", action: "save")
   get    "/books/$id"(controller: "book", action: "show")
   get    "/books/$id/edit"(controller: "book", action: "edit")
   put    "/books/$id"(controller: "book", action: "update")
   patch  "/books/$id"(controller: "book", action: "patch")   // undocumented
   delete "/books/$id"(controller: "book", action: "delete")
   ```
   
   Adds the missing row to the `resources`, `single` and nested-resources 
tables in the URL mappings guide, and to the two action-convention tables in 
the REST section.
   
   Also corrects the nested-resources table, which gave the edit URI as 
`/books/${bookId}/authors/edit/${id}`. The generated mapping appends `/edit` 
after the id, as asserted by `RestfulResourceMappingSpec`.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to