-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add support for update and delete schema field (#51)
- bump to v5.1.0
- Loading branch information
Showing
37 changed files
with
2,635 additions
and
371 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: ", | ||
|
@@ -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 | ||
|
||
|
@@ -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) | ||
|
@@ -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) | ||
|
@@ -244,5 +254,5 @@ [email protected] | |
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` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.