All URIs are relative to https://api.reveng.ai
| Method | HTTP request | Description |
|---|---|---|
| createCollection | POST /v2/collections | Creates new collection information |
| deleteCollection | DELETE /v2/collections/{collection_id} | Deletes a collection |
| getCollection | GET /v2/collections/{collection_id} | Returns a collection |
| listCollections | GET /v2/collections | Gets basic collections information |
| updateCollection | PATCH /v2/collections/{collection_id} | Updates a collection |
| updateCollectionBinaries | PATCH /v2/collections/{collection_id}/binaries | Updates a collection binaries |
| updateCollectionTags | PATCH /v2/collections/{collection_id}/tags | Updates a collection tags |
BaseResponseCollectionResponse createCollection(collectionCreateRequest)
Creates new collection information
A collection is a group of binaries that are related in some way. This endpoint creates a new collection and allows you to add tags and binaries to it. If you add tags or binaries to the collection, they will be returned in the response.
// 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.CollectionsApi;
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");
CollectionsApi apiInstance = new CollectionsApi(defaultClient);
CollectionCreateRequest collectionCreateRequest = new CollectionCreateRequest(); // CollectionCreateRequest |
try {
BaseResponseCollectionResponse result = apiInstance.createCollection(collectionCreateRequest);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CollectionsApi#createCollection");
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 |
|---|---|---|---|
| collectionCreateRequest | CollectionCreateRequest |
BaseResponseCollectionResponse
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Successful Response | - |
| 422 | Invalid request parameters | - |
BaseResponseBool deleteCollection(collectionId)
Deletes a collection
Deletes a collection
// 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.CollectionsApi;
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");
CollectionsApi apiInstance = new CollectionsApi(defaultClient);
Integer collectionId = 56; // Integer |
try {
BaseResponseBool result = apiInstance.deleteCollection(collectionId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CollectionsApi#deleteCollection");
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 |
|---|---|---|---|
| collectionId | Integer |
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Successful Response | - |
| 422 | Invalid request parameters | - |
BaseResponseCollectionResponse getCollection(collectionId, includeTags, includeBinaries, pageSize, pageNumber, binarySearchStr)
Returns a collection
Gets a single collection. The collection can include binaries and tags if requested. You can specify whether to include tags and binaries in the response by using the query string parameters defined.
// 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.CollectionsApi;
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");
CollectionsApi apiInstance = new CollectionsApi(defaultClient);
Integer collectionId = 56; // Integer |
Boolean includeTags = false; // Boolean |
Boolean includeBinaries = false; // Boolean |
Integer pageSize = 10; // Integer |
Integer pageNumber = 1; // Integer |
String binarySearchStr = "binarySearchStr_example"; // String |
try {
BaseResponseCollectionResponse result = apiInstance.getCollection(collectionId, includeTags, includeBinaries, pageSize, pageNumber, binarySearchStr);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CollectionsApi#getCollection");
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 |
|---|---|---|---|
| collectionId | Integer | ||
| includeTags | Boolean | [optional] [default to false] | |
| includeBinaries | Boolean | [optional] [default to false] | |
| pageSize | Integer | [optional] [default to 10] | |
| pageNumber | Integer | [optional] [default to 1] | |
| binarySearchStr | String | [optional] |
BaseResponseCollectionResponse
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Successful Response | - |
| 422 | Invalid request parameters | - |
BaseResponseListCollectionResults listCollections(searchTerm, filters, limit, offset, orderBy, order)
Gets basic collections information
Returns a list of collections
// 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.CollectionsApi;
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");
CollectionsApi apiInstance = new CollectionsApi(defaultClient);
String searchTerm = ""; // String |
List<Filters> filters = Arrays.asList(); // List<Filters> |
Integer limit = 20; // Integer |
Integer offset = 0; // Integer |
AppApiRestV2CollectionsEnumsOrderBy orderBy = AppApiRestV2CollectionsEnumsOrderBy.fromValue("created"); // AppApiRestV2CollectionsEnumsOrderBy |
Order order = Order.fromValue("ASC"); // Order |
try {
BaseResponseListCollectionResults result = apiInstance.listCollections(searchTerm, filters, limit, offset, orderBy, order);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CollectionsApi#listCollections");
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 |
|---|---|---|---|
| searchTerm | String | [optional] [default to ] | |
| filters | List<Filters> | [optional] | |
| limit | Integer | [optional] [default to 20] | |
| offset | Integer | [optional] [default to 0] | |
| orderBy | AppApiRestV2CollectionsEnumsOrderBy | [optional] [enum: created, collection, model, owner, collection_size, updated] | |
| order | Order | [optional] [enum: ASC, DESC] |
BaseResponseListCollectionResults
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Successful Response | - |
| 422 | Invalid request parameters | - |
BaseResponseCollectionResponse updateCollection(collectionId, collectionUpdateRequest)
Updates a collection
Updates a collection, you can update the collection name, description, and scope
// 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.CollectionsApi;
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");
CollectionsApi apiInstance = new CollectionsApi(defaultClient);
Integer collectionId = 56; // Integer |
CollectionUpdateRequest collectionUpdateRequest = new CollectionUpdateRequest(); // CollectionUpdateRequest |
try {
BaseResponseCollectionResponse result = apiInstance.updateCollection(collectionId, collectionUpdateRequest);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CollectionsApi#updateCollection");
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 |
|---|---|---|---|
| collectionId | Integer | ||
| collectionUpdateRequest | CollectionUpdateRequest |
BaseResponseCollectionResponse
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Successful Response | - |
| 422 | Invalid request parameters | - |
BaseResponseCollectionBinariesUpdateResponse updateCollectionBinaries(collectionId, collectionBinariesUpdateRequest)
Updates a collection binaries
Updates/changes a collection binaries to whatever is provided in the request. After this update the collection will only contain the binaries provided in the request.
// 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.CollectionsApi;
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");
CollectionsApi apiInstance = new CollectionsApi(defaultClient);
Integer collectionId = 56; // Integer |
CollectionBinariesUpdateRequest collectionBinariesUpdateRequest = new CollectionBinariesUpdateRequest(); // CollectionBinariesUpdateRequest |
try {
BaseResponseCollectionBinariesUpdateResponse result = apiInstance.updateCollectionBinaries(collectionId, collectionBinariesUpdateRequest);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CollectionsApi#updateCollectionBinaries");
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 |
|---|---|---|---|
| collectionId | Integer | ||
| collectionBinariesUpdateRequest | CollectionBinariesUpdateRequest |
BaseResponseCollectionBinariesUpdateResponse
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Successful Response | - |
| 422 | Invalid request parameters | - |
BaseResponseCollectionTagsUpdateResponse updateCollectionTags(collectionId, collectionTagsUpdateRequest)
Updates a collection tags
Updates/changes a collection tags to whatever is provided in the request. After this update the collection will only contain the tags provided in the request.
// 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.CollectionsApi;
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");
CollectionsApi apiInstance = new CollectionsApi(defaultClient);
Integer collectionId = 56; // Integer |
CollectionTagsUpdateRequest collectionTagsUpdateRequest = new CollectionTagsUpdateRequest(); // CollectionTagsUpdateRequest |
try {
BaseResponseCollectionTagsUpdateResponse result = apiInstance.updateCollectionTags(collectionId, collectionTagsUpdateRequest);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CollectionsApi#updateCollectionTags");
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 |
|---|---|---|---|
| collectionId | Integer | ||
| collectionTagsUpdateRequest | CollectionTagsUpdateRequest |
BaseResponseCollectionTagsUpdateResponse
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Successful Response | - |
| 422 | Invalid request parameters | - |