|
| 1 | +# DefaultApi |
| 2 | + |
| 3 | +All URIs are relative to *http://localhost* |
| 4 | + |
| 5 | +| Method | HTTP request | Description | |
| 6 | +|------------- | ------------- | -------------| |
| 7 | +| [**listCats**](DefaultApi.md#listCats) | **GET** /cats | List all cats | |
| 8 | +| [**listDogs**](DefaultApi.md#listDogs) | **GET** /dogs | List all dogs | |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | +## listCats |
| 13 | + |
| 14 | +> List<Cat> listCats() |
| 15 | +
|
| 16 | +List all cats |
| 17 | + |
| 18 | +### Example |
| 19 | + |
| 20 | +```java |
| 21 | +// Import classes: |
| 22 | +import org.openapitools.client.ApiClient; |
| 23 | +import org.openapitools.client.ApiException; |
| 24 | +import org.openapitools.client.Configuration; |
| 25 | +import org.openapitools.client.models.*; |
| 26 | +import org.openapitools.client.api.DefaultApi; |
| 27 | + |
| 28 | +public class Example { |
| 29 | + public static void main(String[] args) { |
| 30 | + ApiClient defaultClient = Configuration.getDefaultApiClient(); |
| 31 | + defaultClient.setBasePath("http://localhost"); |
| 32 | + |
| 33 | + DefaultApi apiInstance = new DefaultApi(defaultClient); |
| 34 | + try { |
| 35 | + List<Cat> result = apiInstance.listCats(); |
| 36 | + System.out.println(result); |
| 37 | + } catch (ApiException e) { |
| 38 | + System.err.println("Exception when calling DefaultApi#listCats"); |
| 39 | + System.err.println("Status code: " + e.getCode()); |
| 40 | + System.err.println("Reason: " + e.getResponseBody()); |
| 41 | + System.err.println("Response headers: " + e.getResponseHeaders()); |
| 42 | + e.printStackTrace(); |
| 43 | + } |
| 44 | + } |
| 45 | +} |
| 46 | +``` |
| 47 | + |
| 48 | +### Parameters |
| 49 | + |
| 50 | +This endpoint does not need any parameter. |
| 51 | + |
| 52 | +### Return type |
| 53 | + |
| 54 | +[**List<Cat>**](Cat.md) |
| 55 | + |
| 56 | +### Authorization |
| 57 | + |
| 58 | +No authorization required |
| 59 | + |
| 60 | +### HTTP request headers |
| 61 | + |
| 62 | +- **Content-Type**: Not defined |
| 63 | +- **Accept**: application/json |
| 64 | + |
| 65 | + |
| 66 | +### HTTP response details |
| 67 | +| Status code | Description | Response headers | |
| 68 | +|-------------|-------------|------------------| |
| 69 | +| **200** | A list of cats | - | |
| 70 | + |
| 71 | + |
| 72 | +## listDogs |
| 73 | + |
| 74 | +> List<Dog> listDogs() |
| 75 | +
|
| 76 | +List all dogs |
| 77 | + |
| 78 | +### Example |
| 79 | + |
| 80 | +```java |
| 81 | +// Import classes: |
| 82 | +import org.openapitools.client.ApiClient; |
| 83 | +import org.openapitools.client.ApiException; |
| 84 | +import org.openapitools.client.Configuration; |
| 85 | +import org.openapitools.client.models.*; |
| 86 | +import org.openapitools.client.api.DefaultApi; |
| 87 | + |
| 88 | +public class Example { |
| 89 | + public static void main(String[] args) { |
| 90 | + ApiClient defaultClient = Configuration.getDefaultApiClient(); |
| 91 | + defaultClient.setBasePath("http://localhost"); |
| 92 | + |
| 93 | + DefaultApi apiInstance = new DefaultApi(defaultClient); |
| 94 | + try { |
| 95 | + List<Dog> result = apiInstance.listDogs(); |
| 96 | + System.out.println(result); |
| 97 | + } catch (ApiException e) { |
| 98 | + System.err.println("Exception when calling DefaultApi#listDogs"); |
| 99 | + System.err.println("Status code: " + e.getCode()); |
| 100 | + System.err.println("Reason: " + e.getResponseBody()); |
| 101 | + System.err.println("Response headers: " + e.getResponseHeaders()); |
| 102 | + e.printStackTrace(); |
| 103 | + } |
| 104 | + } |
| 105 | +} |
| 106 | +``` |
| 107 | + |
| 108 | +### Parameters |
| 109 | + |
| 110 | +This endpoint does not need any parameter. |
| 111 | + |
| 112 | +### Return type |
| 113 | + |
| 114 | +[**List<Dog>**](Dog.md) |
| 115 | + |
| 116 | +### Authorization |
| 117 | + |
| 118 | +No authorization required |
| 119 | + |
| 120 | +### HTTP request headers |
| 121 | + |
| 122 | +- **Content-Type**: Not defined |
| 123 | +- **Accept**: application/json |
| 124 | + |
| 125 | + |
| 126 | +### HTTP response details |
| 127 | +| Status code | Description | Response headers | |
| 128 | +|-------------|-------------|------------------| |
| 129 | +| **200** | A list of dogs | - | |
| 130 | + |
0 commit comments