Skip to content

Commit

Permalink
add support for update and delete schema field (#3)
Browse files Browse the repository at this point in the history
- bump to v5.1.0
  • Loading branch information
jkaho authored May 4, 2022
1 parent 7e92b56 commit ea1b760
Show file tree
Hide file tree
Showing 43 changed files with 1,821 additions and 285 deletions.
17 changes: 9 additions & 8 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ docs/BatchUpsertRecordsResponseError.md
docs/BatchUpsertRecordsResponseKey.md
docs/BatchUpsertRecordsResponseVariables.md
docs/Collection.md
docs/CollectionType.md
docs/CollectionsApi.md
docs/DeleteRecordRequest.md
docs/Error.md
Expand All @@ -27,10 +28,12 @@ docs/ExperimentRequestPipeline.md
docs/ExperimentResponse.md
docs/GeneratePipelinesRequest.md
docs/GeneratePipelinesResponse.md
docs/GetCollectionRequestView.md
docs/GetDefaultPipelineResponse.md
docs/GetDefaultVersionRequestView.md
docs/GetPipelineRequestView.md
docs/GetRecordRequest.md
docs/ListCollectionsRequestView.md
docs/ListCollectionsResponse.md
docs/ListPipelinesRequestView.md
docs/ListPipelinesResponse.md
Expand Down Expand Up @@ -138,6 +141,7 @@ src/main/java/com/sajari/client/model/BatchUpsertRecordsResponseError.java
src/main/java/com/sajari/client/model/BatchUpsertRecordsResponseKey.java
src/main/java/com/sajari/client/model/BatchUpsertRecordsResponseVariables.java
src/main/java/com/sajari/client/model/Collection.java
src/main/java/com/sajari/client/model/CollectionType.java
src/main/java/com/sajari/client/model/DeleteRecordRequest.java
src/main/java/com/sajari/client/model/Error.java
src/main/java/com/sajari/client/model/Event.java
Expand All @@ -146,10 +150,12 @@ src/main/java/com/sajari/client/model/ExperimentRequestPipeline.java
src/main/java/com/sajari/client/model/ExperimentResponse.java
src/main/java/com/sajari/client/model/GeneratePipelinesRequest.java
src/main/java/com/sajari/client/model/GeneratePipelinesResponse.java
src/main/java/com/sajari/client/model/GetCollectionRequestView.java
src/main/java/com/sajari/client/model/GetDefaultPipelineResponse.java
src/main/java/com/sajari/client/model/GetDefaultVersionRequestView.java
src/main/java/com/sajari/client/model/GetPipelineRequestView.java
src/main/java/com/sajari/client/model/GetRecordRequest.java
src/main/java/com/sajari/client/model/ListCollectionsRequestView.java
src/main/java/com/sajari/client/model/ListCollectionsResponse.java
src/main/java/com/sajari/client/model/ListPipelinesRequestView.java
src/main/java/com/sajari/client/model/ListPipelinesResponse.java
Expand Down Expand Up @@ -206,11 +212,6 @@ src/main/java/com/sajari/client/model/UpdateRecordRequest.java
src/main/java/com/sajari/client/model/UpsertRecordRequest.java
src/main/java/com/sajari/client/model/UpsertRecordRequestPipeline.java
src/main/java/com/sajari/client/model/UpsertRecordResponse.java
src/test/java/com/sajari/client/model/BannerTest.java
src/test/java/com/sajari/client/model/EventTest.java
src/test/java/com/sajari/client/model/ExperimentRequestPipelineTest.java
src/test/java/com/sajari/client/model/ExperimentRequestTest.java
src/test/java/com/sajari/client/model/ExperimentResponseTest.java
src/test/java/com/sajari/client/model/ListPromotionsRequestPromotionViewTest.java
src/test/java/com/sajari/client/model/PromotionPinModeTest.java
src/test/java/com/sajari/client/model/TextPositionTest.java
src/test/java/com/sajari/client/model/CollectionTypeTest.java
src/test/java/com/sajari/client/model/GetCollectionRequestViewTest.java
src/test/java/com/sajari/client/model/ListCollectionsRequestViewTest.java
14 changes: 10 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Add this dependency to your project's POM:
<dependency>
<groupId>com.sajari</groupId>
<artifactId>sdk-java-client</artifactId>
<version>5.0.0</version>
<version>5.1.0</version>
<scope>compile</scope>
</dependency>
```
Expand All @@ -51,7 +51,7 @@ Add this dependency to your project's POM:
Add this dependency to your project's build file:

```groovy
compile "com.sajari:sdk-java-client:5.0.0"
compile "com.sajari:sdk-java-client:5.1.0"
```

### Others
Expand All @@ -64,7 +64,7 @@ mvn clean package

Then manually install the following JARs:

- `target/sdk-java-client-5.0.0.jar`
- `target/sdk-java-client-5.1.0.jar`
- `target/lib/*.jar`

## Getting Started
Expand Down Expand Up @@ -93,9 +93,10 @@ Please follow the [installation](#installation) instruction and execute the foll
CollectionsApi apiInstance = new CollectionsApi(defaultClient);
String collectionId = "collectionId_example"; // String | The ID to use for the collection. This must start with an alphanumeric character followed by one or more alphanumeric or `-` characters. Strictly speaking, it must match the regular expression: `^[A-Za-z][A-Za-z0-9\\-]*$`.
Collection collection = new Collection(); // Collection | Details of the collection to create.
String accountId = "accountId_example"; // String | The account that owns the collection, e.g. `1618535966441231024`.

try {
Collection result = apiInstance.createCollection(collectionId, collection);
Collection result = apiInstance.createCollection(collectionId, collection, accountId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CollectionsApi#createCollection");
Expand Down Expand Up @@ -152,7 +153,9 @@ Class | Method | HTTP request | Description
*RedirectsApi* | [**updateRedirect**](docs/RedirectsApi.md#updateRedirect) | **PATCH** /v4/collections/{collection_id}/redirects/{redirect_id} | Update redirect
*SchemaApi* | [**batchCreateSchemaFields**](docs/SchemaApi.md#batchCreateSchemaFields) | **POST** /v4/collections/{collection_id}/schemaFields:batchCreate | Batch create schema fields
*SchemaApi* | [**createSchemaField**](docs/SchemaApi.md#createSchemaField) | **POST** /v4/collections/{collection_id}/schemaFields | Create schema field
*SchemaApi* | [**deleteSchemaField**](docs/SchemaApi.md#deleteSchemaField) | **DELETE** /v4/collections/{collection_id}/schemaFields/{schema_field_name} | Delete schema field
*SchemaApi* | [**listSchemaFields**](docs/SchemaApi.md#listSchemaFields) | **GET** /v4/collections/{collection_id}/schemaFields | List schema fields
*SchemaApi* | [**updateSchemaField**](docs/SchemaApi.md#updateSchemaField) | **PATCH** /v4/collections/{collection_id}/schemaFields/{schema_field_name} | Update schema field


## Documentation for Models
Expand All @@ -173,6 +176,7 @@ Class | Method | HTTP request | Description
- [BatchUpsertRecordsResponseKey](docs/BatchUpsertRecordsResponseKey.md)
- [BatchUpsertRecordsResponseVariables](docs/BatchUpsertRecordsResponseVariables.md)
- [Collection](docs/Collection.md)
- [CollectionType](docs/CollectionType.md)
- [DeleteRecordRequest](docs/DeleteRecordRequest.md)
- [Error](docs/Error.md)
- [Event](docs/Event.md)
Expand All @@ -181,10 +185,12 @@ Class | Method | HTTP request | Description
- [ExperimentResponse](docs/ExperimentResponse.md)
- [GeneratePipelinesRequest](docs/GeneratePipelinesRequest.md)
- [GeneratePipelinesResponse](docs/GeneratePipelinesResponse.md)
- [GetCollectionRequestView](docs/GetCollectionRequestView.md)
- [GetDefaultPipelineResponse](docs/GetDefaultPipelineResponse.md)
- [GetDefaultVersionRequestView](docs/GetDefaultVersionRequestView.md)
- [GetPipelineRequestView](docs/GetPipelineRequestView.md)
- [GetRecordRequest](docs/GetRecordRequest.md)
- [ListCollectionsRequestView](docs/ListCollectionsRequestView.md)
- [ListCollectionsResponse](docs/ListCollectionsResponse.md)
- [ListPipelinesRequestView](docs/ListPipelinesRequestView.md)
- [ListPipelinesResponse](docs/ListPipelinesResponse.md)
Expand Down
Loading

0 comments on commit ea1b760

Please sign in to comment.