Skip to content

Commit

Permalink
#160 Fix Test
Browse files Browse the repository at this point in the history
  • Loading branch information
jemacineiras committed Jun 5, 2023
1 parent 6cde064 commit 80828bc
Show file tree
Hide file tree
Showing 62 changed files with 298 additions and 354 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,21 +90,21 @@ public class ${className?cap_first}Api {
<#list pathObjects as path>
<#list path.operationObjects as operation>
/**
* ${operation.operationType} ${path.pathName}<#if operation.summary?has_content>: ${operation.summary}</#if>
* ${operation.operationType} ${path.pathName}<#if operation.summary?has_content>: ${operation.summary}</#if>
<#if operation.responseObjects?has_content>
<#if operation.parameterObjects?has_content>
* <#list operation.parameterObjects as parameter>@param ${parameter.name} ${parameter.description} ${parameter.required?c}</#list>
* <#list operation.parameterObjects as parameter>@param ${parameter.name} ${parameter.description} ${parameter.required?c}</#list>
</#if>
<#if path.parameterObjects?has_content>
* <#list path.parameterObjects as parameter>@param ${parameter.name} ${parameter.description} ${parameter.required?c}</#list>
* <#list path.parameterObjects as parameter>@param ${parameter.name} ${parameter.description} ${parameter.required?c}</#list>
</#if>
<#if operation.requestObjects?has_content>
*<#list operation.requestObjects as request><#list request.contentObjects as content> @param ${content.dataType?api.getVariableNameString()}<#if content?has_next>, </#if></#list> ${request.description! ""} <#if request.required == true>(required)</#if></#list>
*<#list operation.requestObjects as request><#list request.contentObjects as content> @param ${content.dataType?api.getVariableNameString()}<#if content?has_next>, </#if></#list> ${request.description! ""} <#if request.required == true>(required)</#if></#list>
</#if>
* @return<#list operation.responseObjects as response><#if response.responseName != "default"> ${response.description}; (status code ${response.responseName})</#if></#list>
* @return<#list operation.responseObjects as response><#if response.responseName != "default"> ${response.description}; (status code ${response.responseName})</#if></#list>
</#if>
* @throws RestClientException if an error occurs while attempting to invoke the API
*/
* @throws RestClientException if an error occurs while attempting to invoke the API
*/
public <@compress single_line=true><#if operation.responseObjects[0].contentObjects[0]??>
${operation.responseObjects[0].contentObjects[0].dataType}
<#else>Void</#if></@compress> ${operation.operationId}<#compress>(<#if operation.parameterObjects?has_content><#list operation.parameterObjects as parameter>${parameter.dataType} ${parameter.name}<#if parameter?has_next || operation.requestObjects?has_content>, </#if></#list></#if><#if path.parameterObjects?has_content><#list path.parameterObjects as parameter>${parameter.dataType} ${parameter.name}<#if parameter?has_next || operation.requestObjects?has_content>, </#if></#list></#if><#if operation.requestObjects?has_content><#list operation.requestObjects as request><#list request.contentObjects as content>${content.dataType} ${content.dataType?api.getVariableNameString()} <#if content?has_next>, </#if></#list></#list></#if>)</#compress> throws RestClientException {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,21 +90,21 @@ public class ${className?cap_first}Api {
<#list pathObjects as path>
<#list path.operationObjects as operation>
/**
* ${operation.operationType} ${path.pathName} : <#if operation.summary?has_content>${operation.summary}<#else>""</#if>
* ${operation.operationType} ${path.pathName}: <#if operation.summary?has_content>${operation.summary}<#else>""</#if>
<#if operation.responseObjects?has_content>
<#if operation.parameterObjects?has_content>
* <#list operation.parameterObjects as parameter>@param ${parameter.name} ${parameter.description} ${parameter.required?c}</#list>
* <#list operation.parameterObjects as parameter>@param ${parameter.name} ${parameter.description} ${parameter.required?c}</#list>
</#if>
<#if path.parameterObjects?has_content>
* <#list path.parameterObjects as parameter>@param ${parameter.name} ${parameter.description} ${parameter.required?c}</#list>
* <#list path.parameterObjects as parameter>@param ${parameter.name} ${parameter.description} ${parameter.required?c}</#list>
</#if>
<#if operation.requestObjects?has_content>
* <#list operation.requestObjects as request><#list request.contentObjects as content>@param ${content.dataType?api.getVariableNameString()}<#if content?has_next>, </#if></#list>${request.description! ""}<#if request.required == true> (required)</#if></#list>
* <#list operation.requestObjects as request><#list request.contentObjects as content>@param ${content.dataType?api.getVariableNameString()}<#if content?has_next>, </#if></#list>${request.description! ""}<#if request.required == true> (required)</#if></#list>
</#if>
* @return<#list operation.responseObjects as response><#if response.responseName != "default"> ${response.description}; (status code ${response.responseName})</#if></#list>
* @return<#list operation.responseObjects as response><#if response.responseName != "default"> ${response.description}; (status code ${response.responseName})</#if></#list>
</#if>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec ${operation.operationId}RequestCreation(<@compress single_line=true>
<#if operation.parameterObjects?has_content><#list operation.parameterObjects as parameter> ${parameter.dataType} ${parameter.name}<#if parameter?has_next || operation.requestObjects?has_content>,</#if></#list></#if><#if path.parameterObjects?has_content><#list path.parameterObjects as parameter> ${parameter.dataType} ${parameter.name}<#if parameter?has_next || operation.requestObjects?has_content>,</#if></#list></#if>
<#if operation.requestObjects?has_content><#list operation.requestObjects as request><#list request.contentObjects as content>${content.dataType} ${content.dataType?api.getVariableNameString()}</#list></#list></#if></@compress>) throws WebClientResponseException {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,21 +61,21 @@ public interface ${className?cap_first}Api {
<#list pathObjects as path>
<#list path.operationObjects as operation>
/**
* ${operation.operationType} ${path.pathName} <#if operation.summary?has_content>: ${operation.summary}</#if>
* ${operation.operationType} ${path.pathName}<#if operation.summary?has_content>: ${operation.summary}</#if>
<#if operation.responseObjects?has_content>
<#if operation.parameterObjects?has_content>
* @param <#list operation.parameterObjects as parameter> ${parameter.name} ${parameter.description} ${parameter.required?c}</#list>
* @param <#list operation.parameterObjects as parameter> ${parameter.name} ${parameter.description} ${parameter.required?c}</#list>
</#if>
<#if path.parameterObjects?has_content>
* @param <#list path.parameterObjects as parameter> ${parameter.name} ${parameter.description} ${parameter.required?c}</#list>
* @param <#list path.parameterObjects as parameter> ${parameter.name} ${parameter.description} ${parameter.required?c}</#list>
</#if>
<#if operation.requestObjects?has_content>
*<#list operation.requestObjects as request> @param <#list request.contentObjects as content>${content.dataType?api.getVariableNameString()}<#if content?has_next>, </#if></#list>${request.description! ""}<#if request.required == true> (required)</#if></#list>
*<#list operation.requestObjects as request> @param <#list request.contentObjects as content>${content.dataType?api.getVariableNameString()}<#if content?has_next>, </#if></#list>${request.description! ""}<#if request.required == true> (required)</#if></#list>
</#if>
* @return<#list operation.responseObjects as response><#if response.responseName != "default"> ${response.description}; (status code ${response.responseName})</#if></#list>
* @return<#list operation.responseObjects as response><#if response.responseName != "default"> ${response.description}; (status code ${response.responseName})</#if></#list>
</#if>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
@Operation(
operationId = "${operation.operationId}",<#if operation.summary?has_content>
summary = "${operation.summary}",</#if>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
public interface TestApi {

/**
* GET /test : testAdditionalProperties
* @return An object with additional properties; (status code 200)
*/
* GET /test: testAdditionalProperties
* @return An object with additional properties; (status code 200)
*/

@Operation(
operationId = "testAdditionalProperties",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
public interface TestApi {

/**
* GET /test : testAdditionalProperties
* @return An object with additional properties; (status code 200)
*/
* GET /test: testAdditionalProperties
* @return An object with additional properties; (status code 200)
*/

@Operation(
operationId = "testAdditionalProperties",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
public interface TestApi {

/**
* GET /test : testAdditionalProperties
* @return An object with additional properties; (status code 200)
*/
* GET /test: testAdditionalProperties
* @return An object with additional properties; (status code 200)
*/

@Operation(
operationId = "testAdditionalProperties",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ paths:
schema:
$ref: "#/components/schemas/Error"
/test/{testId}:
summary: other available test
summary: other available test
get:
summary: Info for a specific test
operationId: showTestById
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@
public interface TestApi {

/**
* GET /test/{testId} : Info for a specific test
* @param testId The id of the test to retrieve true
* @return Expected response to a valid request; (status code 200)
*/
* GET /test/{testId}: Info for a specific test
* @param testId The id of the test to retrieve true
* @return Expected response to a valid request; (status code 200)
*/

@Operation(
operationId = "showTestById",
Expand All @@ -47,9 +47,9 @@ default ResponseEntity<ApiTestInfoDTO> showTestById(@Parameter(name = "testId",
return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
}
/**
* GET /test : List all available test
* @return A paged array of tests; (status code 200)
*/
* GET /test: List all available test
* @return A paged array of tests; (status code 200)
*/

@Operation(
operationId = "listTest",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@
public interface TestApi {

/**
* GET /test/{testId} : Info for a specific test
* @param testId The id of the test to retrieve true
* @return Expected response to a valid request; (status code 200)
*/
* GET /test/{testId}: Info for a specific test
* @param testId The id of the test to retrieve true
* @return Expected response to a valid request; (status code 200)
*/

@Operation(
operationId = "showTestById",
Expand All @@ -47,9 +47,9 @@ default ResponseEntity<ApiTestInfoDTO> showTestById(@Parameter(name = "testId",
return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
}
/**
* GET /test : List all available test
* @return A paged array of tests; (status code 200)
*/
* GET /test: List all available test
* @return A paged array of tests; (status code 200)
*/

@Operation(
operationId = "listTest",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
public interface GamesApi {

/**
* GET /games : List all available games
* @return A paged array of games; (status code 200)
*/
* GET /games: List all available games
* @return A paged array of games; (status code 200)
*/

@Operation(
operationId = "listGames",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ paths:
schema:
$ref: "#/components/schemas/Error"
/test/{testId}:
summary: other available test
summary: other available test
get:
summary: Info for a specific test
operationId: showTestById
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@
public interface TestApi {

/**
* GET /test/{testId} : Info for a specific test
* @param testId The id of the test to retrieve true
* @return Expected response to a valid request; (status code 200)
*/
* GET /test/{testId}: Info for a specific test
* @param testId The id of the test to retrieve true
* @return Expected response to a valid request; (status code 200)
*/

@Operation(
operationId = "showTestById",
Expand All @@ -47,9 +47,9 @@ default ResponseEntity<ApiTestInfoDTO> showTestById(@Parameter(name = "testId",
return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
}
/**
* GET /test : List all available test
* @return A paged array of tests; (status code 200)
*/
* GET /test: List all available test
* @return A paged array of tests; (status code 200)
*/

@Operation(
operationId = "listTest",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ paths:
schema:
$ref: "#/components/schemas/Error"
/test/{testId}:
summary: other available test
summary: other available test
get:
summary: Info for a specific test
operationId: showTestById
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@
public interface TestApi {

/**
* GET /test/{testId} : Info for a specific test
* @param testId The id of the test to retrieve true
* @return Expected response to a valid request; (status code 200)
*/
* GET /test/{testId}: Info for a specific test
* @param testId The id of the test to retrieve true
* @return Expected response to a valid request; (status code 200)
*/

@Operation(
operationId = "showTestById",
Expand All @@ -47,9 +47,9 @@ default ResponseEntity<ApiTestInfoDTO> showTestById(@Parameter(name = "testId",
return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
}
/**
* GET /test : List all available test
* @return A paged array of tests; (status code 200)
*/
* GET /test: List all available test
* @return A paged array of tests; (status code 200)
*/

@Operation(
operationId = "listTest",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ paths:
schema:
$ref: "#/components/schemas/Error"
/test/{testId}:
summary: other available test
summary: other available test
get:
summary: Info for a specific test
operationId: showTestById
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@
public interface TestApi {

/**
* GET /test/{testId} : Info for a specific test
* @param testId The id of the test to retrieve true
* @return Expected response to a valid request; (status code 200)
*/
* GET /test/{testId}: Info for a specific test
* @param testId The id of the test to retrieve true
* @return Expected response to a valid request; (status code 200)
*/

@Operation(
operationId = "showTestById",
Expand All @@ -47,9 +47,9 @@ default ResponseEntity<ApiTestInfoDTO> showTestById(@Parameter(name = "testId",
return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
}
/**
* GET /test : List all available test
* @return A paged array of tests; (status code 200)
*/
* GET /test: List all available test
* @return A paged array of tests; (status code 200)
*/

@Operation(
operationId = "listTest",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ paths:
properties:
email:
type: string
summary: other available test
summary: other available test
get:
summary: Info for a specific test
operationId: showTestById
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@
public interface TestApi {

/**
* GET /test/{testId} : Info for a specific test
* @param testId The id of the test to retrieve true
* @return Expected response to a valid request; (status code 200)
*/
* GET /test/{testId}: Info for a specific test
* @param testId The id of the test to retrieve true
* @return Expected response to a valid request; (status code 200)
*/

@Operation(
operationId = "showTestById",
Expand All @@ -48,9 +48,9 @@ default ResponseEntity<ApiTestInfoDTO> showTestById(@Parameter(name = "testId",
return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
}
/**
* GET /test : List all available test
* @return A paged array of tests; (status code 200)
*/
* GET /test: List all available test
* @return A paged array of tests; (status code 200)
*/

@Operation(
operationId = "listTest",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ paths:
schema:
type: integer
format: int32
summary: other available test
summary: other available test
get:
summary: Info for a specific test
operationId: showTestById
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@
public interface TestApi {

/**
* GET /test/{testId} : Info for a specific test
* @param testId The id of the test to retrieve true
* @return Expected response to a valid request; (status code 200)
*/
* GET /test/{testId}: Info for a specific test
* @param testId The id of the test to retrieve true
* @return Expected response to a valid request; (status code 200)
*/

@Operation(
operationId = "showTestById",
Expand All @@ -47,9 +47,9 @@ default ResponseEntity<TestInfoDTO> showTestById(@Parameter(name = "testId", des
return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
}
/**
* GET /test : List all available test
* @return A paged array of tests; (status code 200)
*/
* GET /test: List all available test
* @return A paged array of tests; (status code 200)
*/

@Operation(
operationId = "listTest",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ paths:
schema:
type: integer
format: int32
summary: other available test
summary: other available test
get:
summary: Info for a specific test
operationId: showTestById
Expand Down
Loading

0 comments on commit 80828bc

Please sign in to comment.