File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
modules/swagger-codegen/src/main/resources/scala
samples/client/petstore/scala/src/main/scala/io/swagger/client/api Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ class {{classname}}(val defBasePath: String = "{{basePath}}",
30
30
{ {#allParams} } * @param { {paramName} } { {description} }
31
31
{ {/allParams} } * @return { {#returnType} }{ {{returnType} }}{ {/returnType} }{ {^returnType} }void{ {/returnType} }
32
32
*/
33
- def { {nickname} } ({ {#allParams} }{ {paramName} }: { {dataType} }{ {#defaultValue} } = { {{defaultValue} }}{ {/defaultValue} }{ {#hasMore} }, { {/hasMore} }{ {/allParams} }) { {#returnType} }: Option[{ {returnType} }]{ {/returnType} } = {
33
+ def { {nickname} } ({ {#allParams} }{ {paramName} }: { {dataType} }{ {#defaultValue} } /* = { {{defaultValue} }} */ { {/defaultValue} }{ {#hasMore} }, { {/hasMore} }{ {/allParams} }) { {#returnType} }: Option[{ {returnType} }]{ {/returnType} } = {
34
34
// create path and map variables
35
35
val path = " {{path}}" .replaceAll(" \\ {format\\ }" ," json" ){{#pathParams} }.replaceAll("\\{ " + " {{baseName} }" + "\\}",apiInvoker.escape({ {paramName} }))
36
36
Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ class PetApi(val defBasePath: String = "http://petstore.swagger.io/v2",
123
123
* @param status Status values that need to be considered for filter
124
124
* @return List[Pet]
125
125
*/
126
- def findPetsByStatus (status : List [String ] = available) : Option [List [Pet ]] = {
126
+ def findPetsByStatus (status : List [String ] /* = available */ ) : Option [List [Pet ]] = {
127
127
// create path and map variables
128
128
val path = " /pet/findByStatus" .replaceAll(" \\ {format\\ }" ," json" )
129
129
@@ -325,11 +325,11 @@ class PetApi(val defBasePath: String = "http://petstore.swagger.io/v2",
325
325
/**
326
326
* Deletes a pet
327
327
*
328
- * @param api_key
328
+ * @param apiKey
329
329
* @param petId Pet id to delete
330
330
* @return void
331
331
*/
332
- def deletePet (api_key : String , petId : Long ) = {
332
+ def deletePet (apiKey : String , petId : Long ) = {
333
333
// create path and map variables
334
334
val path = " /pet/{petId}" .replaceAll(" \\ {format\\ }" ," json" ).replaceAll(" \\ {" + " petId" + " \\ }" ,apiInvoker.escape(petId))
335
335
@@ -347,7 +347,7 @@ class PetApi(val defBasePath: String = "http://petstore.swagger.io/v2",
347
347
348
348
349
349
350
- headerParams += " api_key" -> api_key
350
+ headerParams += " api_key" -> apiKey
351
351
352
352
353
353
var postBody : AnyRef = null
You can’t perform that action at this time.
0 commit comments