postCodeAskWithHttpInfo method
Is askGet with the question in the request BODY, for a question too long or too awkward to put in a URL.
Is askGet with the question in the request BODY, for a question too long or too awkward to put in a URL. query and repo in the body take precedence over ?q= and ?repo=; either source works alone.
Note: This method returns the HTTP Response.
Parameters:
- AskPostIn askPostIn (required):
Implementation
Future<Response> postCodeAskWithHttpInfo(AskPostIn askPostIn,) async {
// ignore: prefer_const_declarations
final path = r'/v1/code/ask';
// ignore: prefer_final_locals
Object? postBody = askPostIn;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>['application/json'];
return apiClient.invokeAPI(
path,
'POST',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}