Skip to content

Commit

Permalink
add support for update and delete schema field (#51)
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 1a7949e commit 929f2f5
Show file tree
Hide file tree
Showing 37 changed files with 2,635 additions and 371 deletions.
9 changes: 9 additions & 0 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ docs/Model/BatchUpsertRecordsResponseError.md
docs/Model/BatchUpsertRecordsResponseKey.md
docs/Model/BatchUpsertRecordsResponseVariables.md
docs/Model/Collection.md
docs/Model/CollectionType.md
docs/Model/DeleteRecordRequest.md
docs/Model/Error.md
docs/Model/Event.md
Expand All @@ -32,10 +33,12 @@ docs/Model/ExperimentRequestPipeline.md
docs/Model/ExperimentResponse.md
docs/Model/GeneratePipelinesRequest.md
docs/Model/GeneratePipelinesResponse.md
docs/Model/GetCollectionRequestView.md
docs/Model/GetDefaultPipelineResponse.md
docs/Model/GetDefaultVersionRequestView.md
docs/Model/GetPipelineRequestView.md
docs/Model/GetRecordRequest.md
docs/Model/ListCollectionsRequestView.md
docs/Model/ListCollectionsResponse.md
docs/Model/ListPipelinesRequestView.md
docs/Model/ListPipelinesResponse.md
Expand Down Expand Up @@ -118,6 +121,7 @@ lib/Model/BatchUpsertRecordsResponseError.php
lib/Model/BatchUpsertRecordsResponseKey.php
lib/Model/BatchUpsertRecordsResponseVariables.php
lib/Model/Collection.php
lib/Model/CollectionType.php
lib/Model/DeleteRecordRequest.php
lib/Model/Error.php
lib/Model/Event.php
Expand All @@ -126,10 +130,12 @@ lib/Model/ExperimentRequestPipeline.php
lib/Model/ExperimentResponse.php
lib/Model/GeneratePipelinesRequest.php
lib/Model/GeneratePipelinesResponse.php
lib/Model/GetCollectionRequestView.php
lib/Model/GetDefaultPipelineResponse.php
lib/Model/GetDefaultVersionRequestView.php
lib/Model/GetPipelineRequestView.php
lib/Model/GetRecordRequest.php
lib/Model/ListCollectionsRequestView.php
lib/Model/ListCollectionsResponse.php
lib/Model/ListPipelinesRequestView.php
lib/Model/ListPipelinesResponse.php
Expand Down Expand Up @@ -211,6 +217,7 @@ test/Model/BatchUpsertRecordsResponseKeyTest.php
test/Model/BatchUpsertRecordsResponseTest.php
test/Model/BatchUpsertRecordsResponseVariablesTest.php
test/Model/CollectionTest.php
test/Model/CollectionTypeTest.php
test/Model/DeleteRecordRequestTest.php
test/Model/ErrorTest.php
test/Model/EventTest.php
Expand All @@ -219,10 +226,12 @@ test/Model/ExperimentRequestTest.php
test/Model/ExperimentResponseTest.php
test/Model/GeneratePipelinesRequestTest.php
test/Model/GeneratePipelinesResponseTest.php
test/Model/GetCollectionRequestViewTest.php
test/Model/GetDefaultPipelineResponseTest.php
test/Model/GetDefaultVersionRequestViewTest.php
test/Model/GetPipelineRequestViewTest.php
test/Model/GetRecordRequestTest.php
test/Model/ListCollectionsRequestViewTest.php
test/Model/ListCollectionsResponseTest.php
test/Model/ListPipelinesRequestViewTest.php
test/Model/ListPipelinesResponseTest.php
Expand Down
14 changes: 12 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,14 @@ $apiInstance = new Sajari\Api\CollectionsApi(
);
$collection_id = "collection_id_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 = new \Sajari\Model\Collection(); // \Sajari\Model\Collection | Details of the collection to create.
$account_id = "account_id_example"; // string | The account that owns the collection, e.g. `1618535966441231024`.

try {
$result = $apiInstance->createCollection($collection_id, $collection);
$result = $apiInstance->createCollection(
$collection_id,
$collection,
$account_id
);
print_r($result);
} catch (Exception $e) {
echo "Exception when calling CollectionsApi->createCollection: ",
Expand Down Expand Up @@ -131,7 +136,9 @@ All URIs are relative to *https://api.search.io*
| RedirectsApi | [**updateRedirect**](docs/Api/RedirectsApi.md#updateredirect) | **PATCH** /v4/collections/{collection_id}/redirects/{redirect_id} | Update redirect |
| SchemaApi | [**batchCreateSchemaFields**](docs/Api/SchemaApi.md#batchcreateschemafields) | **POST** /v4/collections/{collection_id}/schemaFields:batchCreate | Batch create schema fields |
| SchemaApi | [**createSchemaField**](docs/Api/SchemaApi.md#createschemafield) | **POST** /v4/collections/{collection_id}/schemaFields | Create schema field |
| SchemaApi | [**deleteSchemaField**](docs/Api/SchemaApi.md#deleteschemafield) | **DELETE** /v4/collections/{collection_id}/schemaFields/{schema_field_name} | Delete schema field |
| SchemaApi | [**listSchemaFields**](docs/Api/SchemaApi.md#listschemafields) | **GET** /v4/collections/{collection_id}/schemaFields | List schema fields |
| SchemaApi | [**updateSchemaField**](docs/Api/SchemaApi.md#updateschemafield) | **PATCH** /v4/collections/{collection_id}/schemaFields/{schema_field_name} | Update schema field |

## Models

Expand All @@ -151,6 +158,7 @@ All URIs are relative to *https://api.search.io*
- [BatchUpsertRecordsResponseKey](docs/Model/BatchUpsertRecordsResponseKey.md)
- [BatchUpsertRecordsResponseVariables](docs/Model/BatchUpsertRecordsResponseVariables.md)
- [Collection](docs/Model/Collection.md)
- [CollectionType](docs/Model/CollectionType.md)
- [DeleteRecordRequest](docs/Model/DeleteRecordRequest.md)
- [Error](docs/Model/Error.md)
- [Event](docs/Model/Event.md)
Expand All @@ -159,10 +167,12 @@ All URIs are relative to *https://api.search.io*
- [ExperimentResponse](docs/Model/ExperimentResponse.md)
- [GeneratePipelinesRequest](docs/Model/GeneratePipelinesRequest.md)
- [GeneratePipelinesResponse](docs/Model/GeneratePipelinesResponse.md)
- [GetCollectionRequestView](docs/Model/GetCollectionRequestView.md)
- [GetDefaultPipelineResponse](docs/Model/GetDefaultPipelineResponse.md)
- [GetDefaultVersionRequestView](docs/Model/GetDefaultVersionRequestView.md)
- [GetPipelineRequestView](docs/Model/GetPipelineRequestView.md)
- [GetRecordRequest](docs/Model/GetRecordRequest.md)
- [ListCollectionsRequestView](docs/Model/ListCollectionsRequestView.md)
- [ListCollectionsResponse](docs/Model/ListCollectionsResponse.md)
- [ListPipelinesRequestView](docs/Model/ListPipelinesRequestView.md)
- [ListPipelinesResponse](docs/Model/ListPipelinesResponse.md)
Expand Down Expand Up @@ -244,5 +254,5 @@ support@search.io
This PHP package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:

- API version: `v4`
- Package version: `5.0.0`
- Package version: `5.1.0`
- Build package: `org.openapitools.codegen.languages.PhpClientCodegen`
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sajari/sdk-php",
"version": "5.0.0",
"version": "5.1.0",
"description": "Search.io offers a search and discovery service with Neuralsearch®, the world's first instant AI search technology. Businesses of all sizes use Search.io to build site search and discovery solutions that maximize e-commerce revenue, optimize on-site customer experience, and scale their online presence.",
"keywords": [
"sajari",
Expand Down
Loading

0 comments on commit 929f2f5

Please sign in to comment.