Manager API: fix doc

This commit is contained in:
Maxime Besson 2020-06-17 20:55:32 +02:00
parent 4699a1accb
commit 220852b83f
2 changed files with 8 additions and 12 deletions

View File

@ -2283,7 +2283,7 @@ public class CasappApiExample {
CasappApi apiInstance = new CasappApi(); CasappApi apiInstance = new CasappApi();
String serviceUrl = serviceUrl_example; // String | Service URL to search String serviceUrl = serviceUrl_example; // String | Service URL to search
try { try {
array[CasApp] result = apiInstance.findCasAppsByServiceUrl(serviceUrl); CasApp result = apiInstance.findCasAppsByServiceUrl(serviceUrl);
System.out.println(result); System.out.println(result);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling CasappApi#findCasAppsByServiceUrl"); System.err.println("Exception when calling CasappApi#findCasAppsByServiceUrl");
@ -2302,7 +2302,7 @@ public class CasappApiExample {
CasappApi apiInstance = new CasappApi(); CasappApi apiInstance = new CasappApi();
String serviceUrl = serviceUrl_example; // String | Service URL to search String serviceUrl = serviceUrl_example; // String | Service URL to search
try { try {
array[CasApp] result = apiInstance.findCasAppsByServiceUrl(serviceUrl); CasApp result = apiInstance.findCasAppsByServiceUrl(serviceUrl);
System.out.println(result); System.out.println(result);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling CasappApi#findCasAppsByServiceUrl"); System.err.println("Exception when calling CasappApi#findCasAppsByServiceUrl");
@ -2322,7 +2322,7 @@ CasappApi *apiInstance = [[CasappApi alloc] init];
// Finds CAS applications by Service URL // Finds CAS applications by Service URL
[apiInstance findCasAppsByServiceUrlWith:serviceUrl [apiInstance findCasAppsByServiceUrlWith:serviceUrl
completionHandler: ^(array[CasApp] output, NSError* error) { completionHandler: ^(CasApp output, NSError* error) {
if (output) { if (output) {
NSLog(@"%@", output); NSLog(@"%@", output);
} }
@ -2373,7 +2373,7 @@ namespace Example
try try
{ {
// Finds CAS applications by Service URL // Finds CAS applications by Service URL
array[CasApp] result = apiInstance.findCasAppsByServiceUrl(serviceUrl); CasApp result = apiInstance.findCasAppsByServiceUrl(serviceUrl);
Debug.WriteLine(result); Debug.WriteLine(result);
} }
catch (Exception e) catch (Exception e)
@ -2476,7 +2476,7 @@ except ApiException as e:
</table> </table>
<h2>Responses</h2> <h2>Responses</h2>
<h3> Status: 200 - Return a list of CAS Providers </h3> <h3> Status: 200 - Return a CAS Provider </h3>
<ul class="nav nav-tabs nav-tabs-examples" > <ul class="nav nav-tabs nav-tabs-examples" >
<li class="active"> <li class="active">
@ -2491,15 +2491,11 @@ except ApiException as e:
<script> <script>
$(document).ready(function() { $(document).ready(function() {
var schemaWrapper = { var schemaWrapper = {
"description" : "Return a list of CAS Providers", "description" : "Return a CAS Provider",
"content" : { "content" : {
"application/json" : { "application/json" : {
"schema" : { "schema" : {
"type" : "array", "$ref" : "#/components/schemas/CasApp"
"items" : {
"$ref" : "#/components/schemas/CasApp"
},
"x-content-type" : "application/json"
} }
} }
} }

View File

@ -415,7 +415,7 @@ paths:
example: http://mycasapp.example.com/ example: http://mycasapp.example.com/
responses: responses:
200: 200:
$ref: '#/components/responses/ManyCasApp' $ref: '#/components/responses/OneCasApp'
400: 400:
$ref: '#/components/responses/Error' $ref: '#/components/responses/Error'