forked from loafle/openapi-generator-original
added array support
This commit is contained in:
parent
50f20ad836
commit
64604124c9
@ -45,8 +45,8 @@ class {{classname}} {
|
|||||||
$method = "{{httpMethod}}";
|
$method = "{{httpMethod}}";
|
||||||
$queryParams = array();
|
$queryParams = array();
|
||||||
$headerParams = array();
|
$headerParams = array();
|
||||||
$headerParams['Accept'] = '{{produces}}';
|
$headerParams['Accept'] = '{{#produces}}{{mediaType}}{{#hasMore}},{{/hasMore}}{{/produces}}';
|
||||||
$headerParams['Content-Type'] = '{{consume}}';
|
$headerParams['Content-Type'] = '{{#consumes}}{{mediaType}}{{#hasMore}},{{/hasMore}}{{/consumes}}';
|
||||||
|
|
||||||
{{#queryParams}}
|
{{#queryParams}}
|
||||||
if(${{paramName}} != null) {
|
if(${{paramName}} != null) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user