Create an instance of OpenApiRequestBuilder
.
HTTP method of the request to be built.
Path for the request containing path parameter references as in the OpenAPI specification.
Optional
parameters: OpenApiRequestParametersQuery parameters and or body to pass to the request.
Add custom headers to the request. If a header field with the given name already exists it is overwritten.
Key-value pairs denoting additional custom headers.
The request builder itself, to facilitate method chaining.
Add custom request configuration to the request. Typically, this is used when specifying response type for downloading files. If the custom request configuration contains keys in this list @sap-cloud-sdk/http-client!defaultDisallowedKeys, they will be removed.
Key-value pairs denoting additional custom request configuration options to be set in the request.
The request builder itself, to facilitate method chaining.
Execute request and get the response data. Use this to conveniently access the data of a service without technical information about the response.
Destination or DestinationFetchOptions to execute the request against.
A promise resolving to the requested return type.
Execute request and get a raw @sap-cloud-sdk/http-client!HttpResponse, including all information about the HTTP response. This especially comes in handy, when you need to access the headers or status code of the response.
Destination or DestinationFetchOptions to execute the request against.
A promise resolving to an @sap-cloud-sdk/http-client!HttpResponse.
Set middleware for requests towards the target system given in the destination.
Middlewares to be applied to the executeHttpRequest().
The request builder itself, to facilitate method chaining.
Rest
...middlewares: HttpMiddleware[]Protected
requestGet http request config.
Promise of http request config with origin.
Request builder for OpenAPI requests.