Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Won't Fix
-
Affects Version/s: HTTPBuilder-0.5.0
-
Fix Version/s: None
-
Component/s: HttpBuilder
-
Labels:None
-
Number of attachments :
Description
Currently request content is specified by a 'body' named parameter. Proposal: put and post method that take a closure for the request body:
def resp = rest.post( path : 'books/1' ) {
book {
id 1
title 'Atlas Shrugged'
author 'Ayn Rand'
}
}
Changed my mind; I'm not going to fix this since XML is the only common use of a closure body.