# Cheminee::DefaultApi All URIs are relative to *http://localhost:3000/api* | Method | HTTP request | Description | | ------ | ------------ | ----------- | | [**v1_indexes_get**](DefaultApi.md#v1_indexes_get) | **GET** /v1/indexes | List indexes | | [**v1_indexes_index_bulk_index_post**](DefaultApi.md#v1_indexes_index_bulk_index_post) | **POST** /v1/indexes/{index}/bulk_index | Index a list of SMILES and associated, free-form JSON attributes which are indexed and searchable | | [**v1_indexes_index_get**](DefaultApi.md#v1_indexes_index_get) | **GET** /v1/indexes/{index} | Get extended information about an index | | [**v1_indexes_index_post**](DefaultApi.md#v1_indexes_index_post) | **POST** /v1/indexes/{index} | Create an index | | [**v1_indexes_index_search_substructure_get**](DefaultApi.md#v1_indexes_index_search_substructure_get) | **GET** /v1/indexes/{index}/search/substructure | Perform substructure search against index | | [**v1_schemas_get**](DefaultApi.md#v1_schemas_get) | **GET** /v1/schemas | List schemas available for creating indexes | | [**v1_standardize_post**](DefaultApi.md#v1_standardize_post) | **POST** /v1/standardize | Pass a list of SMILES through fragment_parent, uncharger, and canonicalization routines | ## v1_indexes_get > > v1_indexes_get List indexes ### Examples ```ruby require 'time' require 'cheminee' api_instance = Cheminee::DefaultApi.new begin # List indexes result = api_instance.v1_indexes_get p result rescue Cheminee::ApiError => e puts "Error when calling DefaultApi->v1_indexes_get: #{e}" end ``` #### Using the v1_indexes_get_with_http_info variant This returns an Array which contains the response data, status code and headers. > >, Integer, Hash)> v1_indexes_get_with_http_info ```ruby begin # List indexes data, status_code, headers = api_instance.v1_indexes_get_with_http_info p status_code # => 2xx p headers # => { ... } p data # => > rescue Cheminee::ApiError => e puts "Error when calling DefaultApi->v1_indexes_get_with_http_info: #{e}" end ``` ### Parameters This endpoint does not need any parameter. ### Return type [**Array<IndexMeta>**](IndexMeta.md) ### Authorization No authorization required ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json; charset=utf-8 ## v1_indexes_index_bulk_index_post > v1_indexes_index_bulk_index_post(index, bulk_request) Index a list of SMILES and associated, free-form JSON attributes which are indexed and searchable ### Examples ```ruby require 'time' require 'cheminee' api_instance = Cheminee::DefaultApi.new index = 'index_example' # String | bulk_request = Cheminee::BulkRequest.new({docs: [Cheminee::BulkRequestDoc.new({smile: 'smile_example'})]}) # BulkRequest | begin # Index a list of SMILES and associated, free-form JSON attributes which are indexed and searchable result = api_instance.v1_indexes_index_bulk_index_post(index, bulk_request) p result rescue Cheminee::ApiError => e puts "Error when calling DefaultApi->v1_indexes_index_bulk_index_post: #{e}" end ``` #### Using the v1_indexes_index_bulk_index_post_with_http_info variant This returns an Array which contains the response data, status code and headers. > , Integer, Hash)> v1_indexes_index_bulk_index_post_with_http_info(index, bulk_request) ```ruby begin # Index a list of SMILES and associated, free-form JSON attributes which are indexed and searchable data, status_code, headers = api_instance.v1_indexes_index_bulk_index_post_with_http_info(index, bulk_request) p status_code # => 2xx p headers # => { ... } p data # => rescue Cheminee::ApiError => e puts "Error when calling DefaultApi->v1_indexes_index_bulk_index_post_with_http_info: #{e}" end ``` ### Parameters | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **index** | **String** | | | | **bulk_request** | [**BulkRequest**](BulkRequest.md) | | | ### Return type [**PostIndexBulkResponseOk**](PostIndexBulkResponseOk.md) ### Authorization No authorization required ### HTTP request headers - **Content-Type**: application/json; charset=utf-8 - **Accept**: application/json; charset=utf-8 ## v1_indexes_index_get > > v1_indexes_index_get(index) Get extended information about an index ### Examples ```ruby require 'time' require 'cheminee' api_instance = Cheminee::DefaultApi.new index = 'index_example' # String | begin # Get extended information about an index result = api_instance.v1_indexes_index_get(index) p result rescue Cheminee::ApiError => e puts "Error when calling DefaultApi->v1_indexes_index_get: #{e}" end ``` #### Using the v1_indexes_index_get_with_http_info variant This returns an Array which contains the response data, status code and headers. > >, Integer, Hash)> v1_indexes_index_get_with_http_info(index) ```ruby begin # Get extended information about an index data, status_code, headers = api_instance.v1_indexes_index_get_with_http_info(index) p status_code # => 2xx p headers # => { ... } p data # => > rescue Cheminee::ApiError => e puts "Error when calling DefaultApi->v1_indexes_index_get_with_http_info: #{e}" end ``` ### Parameters | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **index** | **String** | | | ### Return type [**Array<IndexMeta>**](IndexMeta.md) ### Authorization No authorization required ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json; charset=utf-8 ## v1_indexes_index_post > v1_indexes_index_post(index, schema, opts) Create an index ### Examples ```ruby require 'time' require 'cheminee' api_instance = Cheminee::DefaultApi.new index = 'index_example' # String | schema = 'schema_example' # String | opts = { sort_by: 'sort_by_example' # String | } begin # Create an index result = api_instance.v1_indexes_index_post(index, schema, opts) p result rescue Cheminee::ApiError => e puts "Error when calling DefaultApi->v1_indexes_index_post: #{e}" end ``` #### Using the v1_indexes_index_post_with_http_info variant This returns an Array which contains the response data, status code and headers. > , Integer, Hash)> v1_indexes_index_post_with_http_info(index, schema, opts) ```ruby begin # Create an index data, status_code, headers = api_instance.v1_indexes_index_post_with_http_info(index, schema, opts) p status_code # => 2xx p headers # => { ... } p data # => rescue Cheminee::ApiError => e puts "Error when calling DefaultApi->v1_indexes_index_post_with_http_info: #{e}" end ``` ### Parameters | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **index** | **String** | | | | **schema** | **String** | | | | **sort_by** | **String** | | [optional] | ### Return type [**IndexMeta**](IndexMeta.md) ### Authorization No authorization required ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json; charset=utf-8 ## v1_indexes_index_search_substructure_get > > v1_indexes_index_search_substructure_get(index, smile, opts) Perform substructure search against index ### Examples ```ruby require 'time' require 'cheminee' api_instance = Cheminee::DefaultApi.new index = 'index_example' # String | smile = 'smile_example' # String | opts = { limit: 'limit_example' # String | } begin # Perform substructure search against index result = api_instance.v1_indexes_index_search_substructure_get(index, smile, opts) p result rescue Cheminee::ApiError => e puts "Error when calling DefaultApi->v1_indexes_index_search_substructure_get: #{e}" end ``` #### Using the v1_indexes_index_search_substructure_get_with_http_info variant This returns an Array which contains the response data, status code and headers. > >, Integer, Hash)> v1_indexes_index_search_substructure_get_with_http_info(index, smile, opts) ```ruby begin # Perform substructure search against index data, status_code, headers = api_instance.v1_indexes_index_search_substructure_get_with_http_info(index, smile, opts) p status_code # => 2xx p headers # => { ... } p data # => > rescue Cheminee::ApiError => e puts "Error when calling DefaultApi->v1_indexes_index_search_substructure_get_with_http_info: #{e}" end ``` ### Parameters | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **index** | **String** | | | | **smile** | **String** | | | | **limit** | **String** | | [optional] | ### Return type [**Array<StructureSearchHit>**](StructureSearchHit.md) ### Authorization No authorization required ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json; charset=utf-8 ## v1_schemas_get > > v1_schemas_get List schemas available for creating indexes ### Examples ```ruby require 'time' require 'cheminee' api_instance = Cheminee::DefaultApi.new begin # List schemas available for creating indexes result = api_instance.v1_schemas_get p result rescue Cheminee::ApiError => e puts "Error when calling DefaultApi->v1_schemas_get: #{e}" end ``` #### Using the v1_schemas_get_with_http_info variant This returns an Array which contains the response data, status code and headers. > >, Integer, Hash)> v1_schemas_get_with_http_info ```ruby begin # List schemas available for creating indexes data, status_code, headers = api_instance.v1_schemas_get_with_http_info p status_code # => 2xx p headers # => { ... } p data # => > rescue Cheminee::ApiError => e puts "Error when calling DefaultApi->v1_schemas_get_with_http_info: #{e}" end ``` ### Parameters This endpoint does not need any parameter. ### Return type [**Array<Schema>**](Schema.md) ### Authorization No authorization required ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json; charset=utf-8 ## v1_standardize_post > > v1_standardize_post(smile) Pass a list of SMILES through fragment_parent, uncharger, and canonicalization routines ### Examples ```ruby require 'time' require 'cheminee' api_instance = Cheminee::DefaultApi.new smile = [Cheminee::Smile.new({smile: 'smile_example'})] # Array | begin # Pass a list of SMILES through fragment_parent, uncharger, and canonicalization routines result = api_instance.v1_standardize_post(smile) p result rescue Cheminee::ApiError => e puts "Error when calling DefaultApi->v1_standardize_post: #{e}" end ``` #### Using the v1_standardize_post_with_http_info variant This returns an Array which contains the response data, status code and headers. > >, Integer, Hash)> v1_standardize_post_with_http_info(smile) ```ruby begin # Pass a list of SMILES through fragment_parent, uncharger, and canonicalization routines data, status_code, headers = api_instance.v1_standardize_post_with_http_info(smile) p status_code # => 2xx p headers # => { ... } p data # => > rescue Cheminee::ApiError => e puts "Error when calling DefaultApi->v1_standardize_post_with_http_info: #{e}" end ``` ### Parameters | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **smile** | [**Array<Smile>**](Smile.md) | | | ### Return type [**Array<StandardizedSmile>**](StandardizedSmile.md) ### Authorization No authorization required ### HTTP request headers - **Content-Type**: application/json; charset=utf-8 - **Accept**: application/json; charset=utf-8