java.lang.Object
nl.janboonen.oas.contractfirstdesign.cat.adapter.catfacts.FactsApi

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2023-12-14T17:23:58.166621048Z[Etc/UTC]") public class FactsApi extends Object
  • Constructor Details

    • FactsApi

      public FactsApi()
    • FactsApi

      public FactsApi(ApiClient apiClient)
  • Method Details

    • getApiClient

      public ApiClient getApiClient()
    • setApiClient

      public void setApiClient(ApiClient apiClient)
    • getFacts

      public List<CatFact> getFacts(Long maxLength, Long limit) throws ApiException
      Get a list of facts Returns a a list of facts
      Parameters:
      maxLength - maximum length of returned fact (optional)
      limit - limit the amount of results returned (optional)
      Returns:
      List<CatFact>
      Throws:
      ApiException - if fails to make API call
    • getFacts

      public List<CatFact> getFacts(Long maxLength, Long limit, Map<String,String> additionalHeaders) throws ApiException
      Get a list of facts Returns a a list of facts
      Parameters:
      maxLength - maximum length of returned fact (optional)
      limit - limit the amount of results returned (optional)
      additionalHeaders - additionalHeaders for this call
      Returns:
      List<CatFact>
      Throws:
      ApiException - if fails to make API call
    • getRandomFact

      public CatFact getRandomFact(Long maxLength) throws ApiException
      Get Random Fact Returns a random fact
      Parameters:
      maxLength - maximum length of returned fact (optional)
      Returns:
      CatFact
      Throws:
      ApiException - if fails to make API call
    • getRandomFact

      public CatFact getRandomFact(Long maxLength, Map<String,String> additionalHeaders) throws ApiException
      Get Random Fact Returns a random fact
      Parameters:
      maxLength - maximum length of returned fact (optional)
      additionalHeaders - additionalHeaders for this call
      Returns:
      CatFact
      Throws:
      ApiException - if fails to make API call