All URIs are relative to https://api.reveng.ai
| Method | HTTP request | Description |
|---|---|---|
| createAiDecompilationComment | POST /v2/functions/{function_id}/ai-decompilation/comments | Create a comment for this function |
| createAiDecompilationTask | POST /v2/functions/{function_id}/ai-decompilation | Begins AI Decompilation Process |
| deleteAiDecompilationComment | DELETE /v2/functions/{function_id}/ai-decompilation/comments/{comment_id} | Delete a comment |
| getAiDecompilationComments | GET /v2/functions/{function_id}/ai-decompilation/comments | Get comments for this function |
| getAiDecompilationRating | GET /v2/functions/{function_id}/ai-decompilation/rating | Get rating for AI decompilation |
| getAiDecompilationTaskResult | GET /v2/functions/{function_id}/ai-decompilation | Polls AI Decompilation Process |
| getAiDecompilationTaskStatus | GET /v2/functions/{function_id}/ai-decompilation/status | Check the status of a function ai decompilation |
| updateAiDecompilationComment | PATCH /v2/functions/{function_id}/ai-decompilation/comments/{comment_id} | Update a comment |
| upsertAiDecompilationRating | PATCH /v2/functions/{function_id}/ai-decompilation/rating | Upsert rating for AI decompilation |
BaseResponseCommentResponse createAiDecompilationComment(functionId, functionCommentCreateRequest)
Create a comment for this function
Creates a comment associated with a specified 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.FunctionsAiDecompilationApi;
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");
FunctionsAiDecompilationApi apiInstance = new FunctionsAiDecompilationApi(defaultClient);
Integer functionId = 56; // Integer |
FunctionCommentCreateRequest functionCommentCreateRequest = new FunctionCommentCreateRequest(); // FunctionCommentCreateRequest |
try {
BaseResponseCommentResponse result = apiInstance.createAiDecompilationComment(functionId, functionCommentCreateRequest);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling FunctionsAiDecompilationApi#createAiDecompilationComment");
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 | ||
| functionCommentCreateRequest | FunctionCommentCreateRequest |
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 201 | Successful Response | - |
| 422 | Invalid request parameters | - |
| 400 | Bad Request | - |
BaseResponse createAiDecompilationTask(functionId)
Begins AI Decompilation Process
Begins the AI Decompilation Process
// 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.FunctionsAiDecompilationApi;
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");
FunctionsAiDecompilationApi apiInstance = new FunctionsAiDecompilationApi(defaultClient);
Long functionId = 56L; // Long | The ID of the function for which we are creating the decompilation task
try {
BaseResponse result = apiInstance.createAiDecompilationTask(functionId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling FunctionsAiDecompilationApi#createAiDecompilationTask");
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 | Long | The ID of the function for which we are creating the decompilation task |
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 201 | Successful Response | - |
| 422 | Invalid request parameters | - |
| 403 | Forbidden | - |
| 402 | Payment Required | - |
| 409 | Conflict | - |
| 400 | Bad Request | - |
BaseResponseBool deleteAiDecompilationComment(commentId, functionId)
Delete a comment
Deletes an existing comment. Users can only delete their own comments.
// 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.FunctionsAiDecompilationApi;
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");
FunctionsAiDecompilationApi apiInstance = new FunctionsAiDecompilationApi(defaultClient);
Integer commentId = 56; // Integer |
Integer functionId = 56; // Integer |
try {
BaseResponseBool result = apiInstance.deleteAiDecompilationComment(commentId, functionId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling FunctionsAiDecompilationApi#deleteAiDecompilationComment");
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 |
|---|---|---|---|
| commentId | Integer | ||
| functionId | Integer |
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Successful Response | - |
| 422 | Invalid request parameters | - |
| 403 | You can only delete your own comments | - |
| 400 | Bad Request | - |
BaseResponseListCommentResponse getAiDecompilationComments(functionId)
Get comments for this function
Retrieves all comments created for a specific function. Only returns comments for resources the requesting user has access to.
// 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.FunctionsAiDecompilationApi;
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");
FunctionsAiDecompilationApi apiInstance = new FunctionsAiDecompilationApi(defaultClient);
Integer functionId = 56; // Integer |
try {
BaseResponseListCommentResponse result = apiInstance.getAiDecompilationComments(functionId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling FunctionsAiDecompilationApi#getAiDecompilationComments");
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 |
BaseResponseListCommentResponse
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Successful Response | - |
| 422 | Invalid request parameters | - |
BaseResponseGetAiDecompilationRatingResponse getAiDecompilationRating(functionId)
Get rating for AI decompilation
// 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.FunctionsAiDecompilationApi;
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");
FunctionsAiDecompilationApi apiInstance = new FunctionsAiDecompilationApi(defaultClient);
Long functionId = 56L; // Long | The ID of the function for which to get the rating
try {
BaseResponseGetAiDecompilationRatingResponse result = apiInstance.getAiDecompilationRating(functionId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling FunctionsAiDecompilationApi#getAiDecompilationRating");
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 | Long | The ID of the function for which to get the rating |
BaseResponseGetAiDecompilationRatingResponse
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Successful Response | - |
| 422 | Invalid request parameters | - |
BaseResponseGetAiDecompilationTask getAiDecompilationTaskResult(functionId, summarise, generateInlineComments)
Polls AI Decompilation Process
Polls the AI Decompilation Process
// 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.FunctionsAiDecompilationApi;
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");
FunctionsAiDecompilationApi apiInstance = new FunctionsAiDecompilationApi(defaultClient);
Long functionId = 56L; // Long | The ID of the function being decompiled
Boolean summarise = true; // Boolean | Generate a summary for the decompilation
Boolean generateInlineComments = true; // Boolean | Generate inline comments for the decompilation
try {
BaseResponseGetAiDecompilationTask result = apiInstance.getAiDecompilationTaskResult(functionId, summarise, generateInlineComments);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling FunctionsAiDecompilationApi#getAiDecompilationTaskResult");
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 | Long | The ID of the function being decompiled | |
| summarise | Boolean | Generate a summary for the decompilation | [optional] [default to true] |
| generateInlineComments | Boolean | Generate inline comments for the decompilation | [optional] [default to true] |
BaseResponseGetAiDecompilationTask
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Successful Response | - |
| 422 | Invalid request parameters | - |
| 403 | Forbidden | - |
BaseResponseFunctionTaskResponse getAiDecompilationTaskStatus(functionId)
Check the status of a function ai decompilation
// 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.FunctionsAiDecompilationApi;
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");
FunctionsAiDecompilationApi apiInstance = new FunctionsAiDecompilationApi(defaultClient);
Long functionId = 56L; // Long | The ID of the function being checked
try {
BaseResponseFunctionTaskResponse result = apiInstance.getAiDecompilationTaskStatus(functionId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling FunctionsAiDecompilationApi#getAiDecompilationTaskStatus");
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 | Long | The ID of the function being checked |
BaseResponseFunctionTaskResponse
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Successful Response | - |
| 422 | Invalid request parameters | - |
BaseResponseCommentResponse updateAiDecompilationComment(commentId, functionId, commentUpdateRequest)
Update a comment
Updates the content of an existing comment. Users can only update their own comments.
// 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.FunctionsAiDecompilationApi;
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");
FunctionsAiDecompilationApi apiInstance = new FunctionsAiDecompilationApi(defaultClient);
Integer commentId = 56; // Integer |
Integer functionId = 56; // Integer |
CommentUpdateRequest commentUpdateRequest = new CommentUpdateRequest(); // CommentUpdateRequest |
try {
BaseResponseCommentResponse result = apiInstance.updateAiDecompilationComment(commentId, functionId, commentUpdateRequest);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling FunctionsAiDecompilationApi#updateAiDecompilationComment");
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 |
|---|---|---|---|
| commentId | Integer | ||
| functionId | Integer | ||
| commentUpdateRequest | CommentUpdateRequest |
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Successful Response | - |
| 422 | Invalid request parameters | - |
| 403 | You can only update your own comments | - |
| 400 | Bad Request | - |
BaseResponse upsertAiDecompilationRating(functionId, upsertAiDecomplationRatingRequest)
Upsert rating for AI decompilation
// 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.FunctionsAiDecompilationApi;
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");
FunctionsAiDecompilationApi apiInstance = new FunctionsAiDecompilationApi(defaultClient);
Long functionId = 56L; // Long | The ID of the function being rated
UpsertAiDecomplationRatingRequest upsertAiDecomplationRatingRequest = new UpsertAiDecomplationRatingRequest(); // UpsertAiDecomplationRatingRequest |
try {
BaseResponse result = apiInstance.upsertAiDecompilationRating(functionId, upsertAiDecomplationRatingRequest);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling FunctionsAiDecompilationApi#upsertAiDecompilationRating");
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 | Long | The ID of the function being rated | |
| upsertAiDecomplationRatingRequest | UpsertAiDecomplationRatingRequest |
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 201 | Successful Response | - |
| 422 | Invalid request parameters | - |