Skip to content

Commit 0ec799b

Browse files
committed
Fix javadoc
1 parent 052fa74 commit 0ec799b

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

  • datamodel/openapi/openapi-core-apache/src/main/java/com/sap/cloud/sdk/services/openapi/apache/apiclient

datamodel/openapi/openapi-core-apache/src/main/java/com/sap/cloud/sdk/services/openapi/apache/apiclient/BaseApi.java

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121

2222
import com.fasterxml.jackson.core.type.TypeReference;
2323
import com.sap.cloud.sdk.cloudplatform.connectivity.Destination;
24+
import com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException;
2425

2526
/**
2627
* Base class for generated API classes, providing common functionality for API client management.
@@ -64,6 +65,37 @@ protected BaseApi( @Nonnull final ApiClient apiClient )
6465
this.apiClient = apiClient;
6566
}
6667

68+
/**
69+
* Invoke API by sending HTTP request with the given options.
70+
*
71+
* @param <T>
72+
* Type
73+
* @param path
74+
* The sub-path of the HTTP URL
75+
* @param method
76+
* The request method, one of "GET", "POST", "PUT", and "DELETE"
77+
* @param queryParams
78+
* The query parameters
79+
* @param collectionQueryParams
80+
* The collection query parameters
81+
* @param urlQueryDeepObject
82+
* A URL query string for deep object parameters
83+
* @param body
84+
* The request body object - if it is not binary, otherwise null
85+
* @param headerParams
86+
* The header parameters
87+
* @param formParams
88+
* The form parameters
89+
* @param accept
90+
* The request's Accept header
91+
* @param contentType
92+
* The request's Content-Type header
93+
* @param returnType
94+
* Return type
95+
* @return The response body in type of string
96+
* @throws OpenApiRequestException
97+
* API exception
98+
*/
6799
@Nonnull
68100
protected <T> T invokeAPI(
69101
@Nonnull final String path,

0 commit comments

Comments
 (0)