mirror of
https://github.com/jlengrand/openapi-generator.git
synced 2026-05-16 15:54:31 +00:00
[JAVA][Rest-assured] reqSpec() method has been added into api.mustache for requests custom… (#7556)
* reqSpec() method has been added into api.mustache for requests customisation (group operations) * add - reqSpec() has been added to samples
This commit is contained in:
committed by
William Cheng
parent
ee561fcd63
commit
62a930223f
@@ -73,6 +73,14 @@ public class {{classname}} {
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Customise request specification
|
||||
*/
|
||||
public {{classname}} reqSpec(Consumer<RequestSpecBuilder> consumer) {
|
||||
consumer.accept(reqSpec);
|
||||
return this;
|
||||
}
|
||||
|
||||
{{#operations}}
|
||||
{{#operation}}
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user