Class FactsApi
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet a list of facts Returns a a list of factsGet a list of facts Returns a a list of factsgetRandomFact(Long maxLength) Get Random Fact Returns a random factgetRandomFact(Long maxLength, Map<String, String> additionalHeaders) Get Random Fact Returns a random factvoidsetApiClient(ApiClient apiClient)
-
Constructor Details
-
FactsApi
public FactsApi() -
FactsApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
getFacts
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 ApiExceptionGet 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
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 ApiExceptionGet 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
-