djangid / rest-assured

Automatically exported from code.google.com/p/rest-assured
0 stars 0 forks source link

Maintain parameter ordering #372

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Now parameters are added in the following order for GET:
requestParams < queryParams < formParam

This regardless of whether the user added a query param before a request param 
etc. Instead RA should maintain a list of params without type. For example:

def allParams = []

queryParam(x) {
 allParams << new QueryParam(x)
}

requestParam(x) {
 allParams << new RequestParam(x)
}

etc. This way ordering would be maintained (and logging should not be handled 
separately). 

Original issue reported on code.google.com by johan.ha...@gmail.com on 14 Nov 2014 at 10:55