All URIs are relative to https://api.reveng.ai
| Method | HTTP request | Description |
|---|---|---|
| generateBlockCommentsForBlockInFunction | POST /v2/functions/{function_id}/block-comments/single | Generate block comments for a specific block in a function |
| generateBlockCommentsForFunction | POST /v2/functions/{function_id}/block-comments | Generate block comments for a function |
| generateOverviewCommentForFunction | POST /v2/functions/{function_id}/block-comments/overview | Generate overview comment for a function |
BaseResponseBlockCommentsGenerationForFunctionResponse generateBlockCommentsForBlockInFunction(functionId, block)
Generate block comments for a specific block in a function
// Import classes:
import ai.reveng.invoker.ApiClient;
import ai.reveng.invoker.ApiException;
import ai.reveng.invoker.Configuration;
import ai.reveng.invoker.auth.*;
import ai.reveng.invoker.models.*;
import ai.reveng.api.FunctionsBlockCommentsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.reveng.ai");
// Configure API key authorization: APIKey
ApiKeyAuth APIKey = (ApiKeyAuth) defaultClient.getAuthentication("APIKey");
APIKey.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//APIKey.setApiKeyPrefix("Token");
FunctionsBlockCommentsApi apiInstance = new FunctionsBlockCommentsApi(defaultClient);
Integer functionId = 56; // Integer |
Block block = new Block(); // Block |
try {
BaseResponseBlockCommentsGenerationForFunctionResponse result = apiInstance.generateBlockCommentsForBlockInFunction(functionId, block);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling FunctionsBlockCommentsApi#generateBlockCommentsForBlockInFunction");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| functionId | Integer | ||
| block | Block |
BaseResponseBlockCommentsGenerationForFunctionResponse
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Successful Response | - |
| 422 | Invalid request parameters | - |
BaseResponseBlockCommentsGenerationForFunctionResponse generateBlockCommentsForFunction(functionId)
Generate block comments for a function
// Import classes:
import ai.reveng.invoker.ApiClient;
import ai.reveng.invoker.ApiException;
import ai.reveng.invoker.Configuration;
import ai.reveng.invoker.auth.*;
import ai.reveng.invoker.models.*;
import ai.reveng.api.FunctionsBlockCommentsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.reveng.ai");
// Configure API key authorization: APIKey
ApiKeyAuth APIKey = (ApiKeyAuth) defaultClient.getAuthentication("APIKey");
APIKey.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//APIKey.setApiKeyPrefix("Token");
FunctionsBlockCommentsApi apiInstance = new FunctionsBlockCommentsApi(defaultClient);
Integer functionId = 56; // Integer |
try {
BaseResponseBlockCommentsGenerationForFunctionResponse result = apiInstance.generateBlockCommentsForFunction(functionId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling FunctionsBlockCommentsApi#generateBlockCommentsForFunction");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| functionId | Integer |
BaseResponseBlockCommentsGenerationForFunctionResponse
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Successful Response | - |
| 422 | Invalid request parameters | - |
BaseResponseBlockCommentsOverviewGenerationResponse generateOverviewCommentForFunction(functionId)
Generate overview comment for a function
// Import classes:
import ai.reveng.invoker.ApiClient;
import ai.reveng.invoker.ApiException;
import ai.reveng.invoker.Configuration;
import ai.reveng.invoker.auth.*;
import ai.reveng.invoker.models.*;
import ai.reveng.api.FunctionsBlockCommentsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.reveng.ai");
// Configure API key authorization: APIKey
ApiKeyAuth APIKey = (ApiKeyAuth) defaultClient.getAuthentication("APIKey");
APIKey.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//APIKey.setApiKeyPrefix("Token");
FunctionsBlockCommentsApi apiInstance = new FunctionsBlockCommentsApi(defaultClient);
Integer functionId = 56; // Integer |
try {
BaseResponseBlockCommentsOverviewGenerationResponse result = apiInstance.generateOverviewCommentForFunction(functionId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling FunctionsBlockCommentsApi#generateOverviewCommentForFunction");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| functionId | Integer |
BaseResponseBlockCommentsOverviewGenerationResponse
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Successful Response | - |
| 422 | Invalid request parameters | - |