cheminee 0.0.15 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +4 -4
  3. data/README.md +25 -9
  4. data/cheminee.gemspec +1 -1
  5. data/docs/BulkRequest.md +18 -0
  6. data/docs/BulkRequestDoc.md +20 -0
  7. data/docs/CreateIndexError.md +18 -0
  8. data/docs/DefaultApi.md +392 -10
  9. data/docs/GetIndexesResponseError.md +18 -0
  10. data/docs/IndexMeta.md +20 -0
  11. data/docs/ListIndexResponseErr.md +18 -0
  12. data/docs/PostIndexBulkResponseError.md +18 -0
  13. data/docs/PostIndexBulkResponseOk.md +18 -0
  14. data/docs/PostIndexBulkResponseOkStatus.md +20 -0
  15. data/docs/Schema.md +20 -0
  16. data/docs/SubstructureSearchHit.md +24 -0
  17. data/lib/cheminee/api/default_api.rb +379 -9
  18. data/lib/cheminee/api_client.rb +3 -2
  19. data/lib/cheminee/api_error.rb +1 -1
  20. data/lib/cheminee/configuration.rb +6 -5
  21. data/lib/cheminee/models/bulk_request.rb +223 -0
  22. data/lib/cheminee/models/bulk_request_doc.rb +231 -0
  23. data/lib/cheminee/models/create_index_error.rb +221 -0
  24. data/lib/cheminee/models/get_indexes_response_error.rb +221 -0
  25. data/lib/cheminee/models/index_meta.rb +237 -0
  26. data/lib/cheminee/models/list_index_response_err.rb +221 -0
  27. data/lib/cheminee/models/post_index_bulk_response_error.rb +221 -0
  28. data/lib/cheminee/models/post_index_bulk_response_ok.rb +223 -0
  29. data/lib/cheminee/models/post_index_bulk_response_ok_status.rb +223 -0
  30. data/lib/cheminee/models/schema.rb +233 -0
  31. data/lib/cheminee/models/smile.rb +1 -1
  32. data/lib/cheminee/models/standardized_smile.rb +1 -1
  33. data/lib/cheminee/models/substructure_search_hit.rb +265 -0
  34. data/lib/cheminee/version.rb +2 -2
  35. data/lib/cheminee.rb +12 -1
  36. data/pkg/cheminee-0.1.6.gem +0 -0
  37. data/spec/api_client_spec.rb +1 -1
  38. data/spec/configuration_spec.rb +4 -4
  39. data/spec/models/bulk_request_doc_spec.rb +42 -0
  40. data/spec/models/bulk_request_spec.rb +36 -0
  41. data/spec/models/create_index_error_spec.rb +36 -0
  42. data/spec/models/get_indexes_response_error_spec.rb +36 -0
  43. data/spec/models/index_meta_spec.rb +42 -0
  44. data/spec/models/list_index_response_err_spec.rb +36 -0
  45. data/spec/models/post_index_bulk_response_error_spec.rb +36 -0
  46. data/spec/models/post_index_bulk_response_ok_spec.rb +36 -0
  47. data/spec/models/post_index_bulk_response_ok_status_spec.rb +42 -0
  48. data/spec/models/schema_spec.rb +42 -0
  49. data/spec/models/substructure_search_hit_spec.rb +54 -0
  50. data/spec/spec_helper.rb +1 -1
  51. metadata +47 -3
  52. data/pkg/cheminee-0.0.15.gem +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 706c2ab9f2aa12e134bd1abd45903bc875cae5395c5807440df94eef33bf5d9f
4
- data.tar.gz: '079fbe772ea29abf9d042a439e0a38d26b0d5c5192897e8d07e8a08c9280563f'
3
+ metadata.gz: a65121f7843c1764ac85077b8ceaa08a05c0a5f71978ea8d6f96881bada945b1
4
+ data.tar.gz: 5ae188e4b9b0567db00612372c3fe9f1e57ce379560a35eca2cfd83805c2d4bb
5
5
  SHA512:
6
- metadata.gz: bc6a0005d9bc67f6a9a8224e1a293e615fada51873b3a3d2ca06bfabe906538051e0d3c09530dcb0727cdad7cf27bdd25655ebe6e3791ab64c89c5171bcc34f4
7
- data.tar.gz: ecfcf0007f6521245c975d92000e5736f456d3ad16e57d165cd729fd94cd3e93f64819092fc662fef4b019d8f4e308c12a0432140577dc13b2568e74a7c4743f
6
+ metadata.gz: b414dae786b782a47511dfe8d13f96fda7d30b9d890de210b4ee4ab2c17372e39d03dd63e6848cae0ea49c8b7d58695ce35b81b058ddd94864f80c371d3d7e78
7
+ data.tar.gz: 62129b1704d60fb0038c369ff861ff82bfb68b31684904e9dfe5dc470eff1345e40b8b8e9331cf2bfc0aad91531c58dd8b115d6724577f0ce4ee7843122fe9d8
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cheminee (0.0.15)
4
+ cheminee (0.1.6)
5
5
  typhoeus (~> 1.0, >= 1.0.1)
6
6
 
7
7
  GEM
@@ -13,11 +13,11 @@ GEM
13
13
  diff-lcs (1.5.0)
14
14
  ethon (0.16.0)
15
15
  ffi (>= 1.15.0)
16
- ffi (1.15.5)
16
+ ffi (1.16.3)
17
17
  jaro_winkler (1.5.6)
18
18
  method_source (1.0.0)
19
19
  parallel (1.23.0)
20
- parser (3.2.2.3)
20
+ parser (3.2.2.4)
21
21
  ast (~> 2.4.1)
22
22
  racc
23
23
  pry (0.14.2)
@@ -26,7 +26,7 @@ GEM
26
26
  pry-byebug (3.10.1)
27
27
  byebug (~> 11.0)
28
28
  pry (>= 0.13, < 0.15)
29
- psych (5.1.0)
29
+ psych (5.1.1.1)
30
30
  stringio
31
31
  racc (1.7.1)
32
32
  rainbow (3.1.1)
data/README.md CHANGED
@@ -7,7 +7,7 @@ Cheminée: The Chemical Structure Search Engine
7
7
  This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
8
8
 
9
9
  - API version: 1.0
10
- - Package version: 0.0.15
10
+ - Package version: 0.1.6
11
11
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
12
12
  For more information, please visit [https://github.com/rdkit-rs/cheminee](https://github.com/rdkit-rs/cheminee)
13
13
 
@@ -24,16 +24,16 @@ gem build cheminee.gemspec
24
24
  Then either install the gem locally:
25
25
 
26
26
  ```shell
27
- gem install ./cheminee-0.0.15.gem
27
+ gem install ./cheminee-0.1.6.gem
28
28
  ```
29
29
 
30
- (for development, run `gem install --dev ./cheminee-0.0.15.gem` to install the development dependencies)
30
+ (for development, run `gem install --dev ./cheminee-0.1.6.gem` to install the development dependencies)
31
31
 
32
32
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
33
33
 
34
34
  Finally add this to the Gemfile:
35
35
 
36
- gem 'cheminee', '~> 0.0.15'
36
+ gem 'cheminee', '~> 0.1.6'
37
37
 
38
38
  ### Install from Git
39
39
 
@@ -58,30 +58,46 @@ Please follow the [installation](#installation) procedure and then run the follo
58
58
  require 'cheminee'
59
59
 
60
60
  api_instance = Cheminee::DefaultApi.new
61
- smile = [Cheminee::Smile.new({smile: 'smile_example'})] # Array<Smile> |
62
61
 
63
62
  begin
64
- result = api_instance.standardize_post(smile)
63
+ result = api_instance.v1_indexes_get
65
64
  p result
66
65
  rescue Cheminee::ApiError => e
67
- puts "Exception when calling DefaultApi->standardize_post: #{e}"
66
+ puts "Exception when calling DefaultApi->v1_indexes_get: #{e}"
68
67
  end
69
68
 
70
69
  ```
71
70
 
72
71
  ## Documentation for API Endpoints
73
72
 
74
- All URIs are relative to *http://localhost:3000/api/v1*
73
+ All URIs are relative to *http://localhost:3000/api*
75
74
 
76
75
  Class | Method | HTTP request | Description
77
76
  ------------ | ------------- | ------------- | -------------
78
- *Cheminee::DefaultApi* | [**standardize_post**](docs/DefaultApi.md#standardize_post) | **POST** /standardize |
77
+ *Cheminee::DefaultApi* | [**v1_indexes_get**](docs/DefaultApi.md#v1_indexes_get) | **GET** /v1/indexes |
78
+ *Cheminee::DefaultApi* | [**v1_indexes_index_bulk_index_post**](docs/DefaultApi.md#v1_indexes_index_bulk_index_post) | **POST** /v1/indexes/{index}/bulk_index |
79
+ *Cheminee::DefaultApi* | [**v1_indexes_index_get**](docs/DefaultApi.md#v1_indexes_index_get) | **GET** /v1/indexes/{index} |
80
+ *Cheminee::DefaultApi* | [**v1_indexes_index_post**](docs/DefaultApi.md#v1_indexes_index_post) | **POST** /v1/indexes/{index} |
81
+ *Cheminee::DefaultApi* | [**v1_indexes_index_search_substructure_get**](docs/DefaultApi.md#v1_indexes_index_search_substructure_get) | **GET** /v1/indexes/{index}/search/substructure |
82
+ *Cheminee::DefaultApi* | [**v1_schemas_get**](docs/DefaultApi.md#v1_schemas_get) | **GET** /v1/schemas |
83
+ *Cheminee::DefaultApi* | [**v1_standardize_post**](docs/DefaultApi.md#v1_standardize_post) | **POST** /v1/standardize |
79
84
 
80
85
 
81
86
  ## Documentation for Models
82
87
 
88
+ - [Cheminee::BulkRequest](docs/BulkRequest.md)
89
+ - [Cheminee::BulkRequestDoc](docs/BulkRequestDoc.md)
90
+ - [Cheminee::CreateIndexError](docs/CreateIndexError.md)
91
+ - [Cheminee::GetIndexesResponseError](docs/GetIndexesResponseError.md)
92
+ - [Cheminee::IndexMeta](docs/IndexMeta.md)
93
+ - [Cheminee::ListIndexResponseErr](docs/ListIndexResponseErr.md)
94
+ - [Cheminee::PostIndexBulkResponseError](docs/PostIndexBulkResponseError.md)
95
+ - [Cheminee::PostIndexBulkResponseOk](docs/PostIndexBulkResponseOk.md)
96
+ - [Cheminee::PostIndexBulkResponseOkStatus](docs/PostIndexBulkResponseOkStatus.md)
97
+ - [Cheminee::Schema](docs/Schema.md)
83
98
  - [Cheminee::Smile](docs/Smile.md)
84
99
  - [Cheminee::StandardizedSmile](docs/StandardizedSmile.md)
100
+ - [Cheminee::SubstructureSearchHit](docs/SubstructureSearchHit.md)
85
101
 
86
102
 
87
103
  ## Documentation for Authorization
data/cheminee.gemspec CHANGED
@@ -8,7 +8,7 @@
8
8
  The version of the OpenAPI document: 1.0
9
9
 
10
10
  Generated by: https://openapi-generator.tech
11
- OpenAPI Generator version: 7.0.0-SNAPSHOT
11
+ OpenAPI Generator version: 7.1.0-SNAPSHOT
12
12
 
13
13
  =end
14
14
 
@@ -0,0 +1,18 @@
1
+ # Cheminee::BulkRequest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **docs** | [**Array&lt;BulkRequestDoc&gt;**](BulkRequestDoc.md) | | |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'cheminee'
13
+
14
+ instance = Cheminee::BulkRequest.new(
15
+ docs: null
16
+ )
17
+ ```
18
+
@@ -0,0 +1,20 @@
1
+ # Cheminee::BulkRequestDoc
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **smile** | **String** | | |
8
+ | **extra_data** | **Object** | | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'cheminee'
14
+
15
+ instance = Cheminee::BulkRequestDoc.new(
16
+ smile: null,
17
+ extra_data: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,18 @@
1
+ # Cheminee::CreateIndexError
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **error** | **String** | | |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'cheminee'
13
+
14
+ instance = Cheminee::CreateIndexError.new(
15
+ error: null
16
+ )
17
+ ```
18
+
data/docs/DefaultApi.md CHANGED
@@ -1,15 +1,397 @@
1
1
  # Cheminee::DefaultApi
2
2
 
3
- All URIs are relative to *http://localhost:3000/api/v1*
3
+ All URIs are relative to *http://localhost:3000/api*
4
4
 
5
5
  | Method | HTTP request | Description |
6
6
  | ------ | ------------ | ----------- |
7
- | [**standardize_post**](DefaultApi.md#standardize_post) | **POST** /standardize | |
7
+ | [**v1_indexes_get**](DefaultApi.md#v1_indexes_get) | **GET** /v1/indexes | |
8
+ | [**v1_indexes_index_bulk_index_post**](DefaultApi.md#v1_indexes_index_bulk_index_post) | **POST** /v1/indexes/{index}/bulk_index | |
9
+ | [**v1_indexes_index_get**](DefaultApi.md#v1_indexes_index_get) | **GET** /v1/indexes/{index} | |
10
+ | [**v1_indexes_index_post**](DefaultApi.md#v1_indexes_index_post) | **POST** /v1/indexes/{index} | |
11
+ | [**v1_indexes_index_search_substructure_get**](DefaultApi.md#v1_indexes_index_search_substructure_get) | **GET** /v1/indexes/{index}/search/substructure | |
12
+ | [**v1_schemas_get**](DefaultApi.md#v1_schemas_get) | **GET** /v1/schemas | |
13
+ | [**v1_standardize_post**](DefaultApi.md#v1_standardize_post) | **POST** /v1/standardize | |
8
14
 
9
15
 
10
- ## standardize_post
16
+ ## v1_indexes_get
11
17
 
12
- > <Array<StandardizedSmile>> standardize_post(smile)
18
+ > <Array<IndexMeta>> v1_indexes_get
19
+
20
+
21
+
22
+ ### Examples
23
+
24
+ ```ruby
25
+ require 'time'
26
+ require 'cheminee'
27
+
28
+ api_instance = Cheminee::DefaultApi.new
29
+
30
+ begin
31
+
32
+ result = api_instance.v1_indexes_get
33
+ p result
34
+ rescue Cheminee::ApiError => e
35
+ puts "Error when calling DefaultApi->v1_indexes_get: #{e}"
36
+ end
37
+ ```
38
+
39
+ #### Using the v1_indexes_get_with_http_info variant
40
+
41
+ This returns an Array which contains the response data, status code and headers.
42
+
43
+ > <Array(<Array<IndexMeta>>, Integer, Hash)> v1_indexes_get_with_http_info
44
+
45
+ ```ruby
46
+ begin
47
+
48
+ data, status_code, headers = api_instance.v1_indexes_get_with_http_info
49
+ p status_code # => 2xx
50
+ p headers # => { ... }
51
+ p data # => <Array<IndexMeta>>
52
+ rescue Cheminee::ApiError => e
53
+ puts "Error when calling DefaultApi->v1_indexes_get_with_http_info: #{e}"
54
+ end
55
+ ```
56
+
57
+ ### Parameters
58
+
59
+ This endpoint does not need any parameter.
60
+
61
+ ### Return type
62
+
63
+ [**Array&lt;IndexMeta&gt;**](IndexMeta.md)
64
+
65
+ ### Authorization
66
+
67
+ No authorization required
68
+
69
+ ### HTTP request headers
70
+
71
+ - **Content-Type**: Not defined
72
+ - **Accept**: application/json; charset=utf-8
73
+
74
+
75
+ ## v1_indexes_index_bulk_index_post
76
+
77
+ > <PostIndexBulkResponseOk> v1_indexes_index_bulk_index_post(index, bulk_request)
78
+
79
+
80
+
81
+ ### Examples
82
+
83
+ ```ruby
84
+ require 'time'
85
+ require 'cheminee'
86
+
87
+ api_instance = Cheminee::DefaultApi.new
88
+ index = 'index_example' # String |
89
+ bulk_request = Cheminee::BulkRequest.new({docs: [Cheminee::BulkRequestDoc.new({smile: 'smile_example'})]}) # BulkRequest |
90
+
91
+ begin
92
+
93
+ result = api_instance.v1_indexes_index_bulk_index_post(index, bulk_request)
94
+ p result
95
+ rescue Cheminee::ApiError => e
96
+ puts "Error when calling DefaultApi->v1_indexes_index_bulk_index_post: #{e}"
97
+ end
98
+ ```
99
+
100
+ #### Using the v1_indexes_index_bulk_index_post_with_http_info variant
101
+
102
+ This returns an Array which contains the response data, status code and headers.
103
+
104
+ > <Array(<PostIndexBulkResponseOk>, Integer, Hash)> v1_indexes_index_bulk_index_post_with_http_info(index, bulk_request)
105
+
106
+ ```ruby
107
+ begin
108
+
109
+ data, status_code, headers = api_instance.v1_indexes_index_bulk_index_post_with_http_info(index, bulk_request)
110
+ p status_code # => 2xx
111
+ p headers # => { ... }
112
+ p data # => <PostIndexBulkResponseOk>
113
+ rescue Cheminee::ApiError => e
114
+ puts "Error when calling DefaultApi->v1_indexes_index_bulk_index_post_with_http_info: #{e}"
115
+ end
116
+ ```
117
+
118
+ ### Parameters
119
+
120
+ | Name | Type | Description | Notes |
121
+ | ---- | ---- | ----------- | ----- |
122
+ | **index** | **String** | | |
123
+ | **bulk_request** | [**BulkRequest**](BulkRequest.md) | | |
124
+
125
+ ### Return type
126
+
127
+ [**PostIndexBulkResponseOk**](PostIndexBulkResponseOk.md)
128
+
129
+ ### Authorization
130
+
131
+ No authorization required
132
+
133
+ ### HTTP request headers
134
+
135
+ - **Content-Type**: application/json; charset=utf-8
136
+ - **Accept**: application/json; charset=utf-8
137
+
138
+
139
+ ## v1_indexes_index_get
140
+
141
+ > <Array<IndexMeta>> v1_indexes_index_get(index)
142
+
143
+
144
+
145
+ ### Examples
146
+
147
+ ```ruby
148
+ require 'time'
149
+ require 'cheminee'
150
+
151
+ api_instance = Cheminee::DefaultApi.new
152
+ index = 'index_example' # String |
153
+
154
+ begin
155
+
156
+ result = api_instance.v1_indexes_index_get(index)
157
+ p result
158
+ rescue Cheminee::ApiError => e
159
+ puts "Error when calling DefaultApi->v1_indexes_index_get: #{e}"
160
+ end
161
+ ```
162
+
163
+ #### Using the v1_indexes_index_get_with_http_info variant
164
+
165
+ This returns an Array which contains the response data, status code and headers.
166
+
167
+ > <Array(<Array<IndexMeta>>, Integer, Hash)> v1_indexes_index_get_with_http_info(index)
168
+
169
+ ```ruby
170
+ begin
171
+
172
+ data, status_code, headers = api_instance.v1_indexes_index_get_with_http_info(index)
173
+ p status_code # => 2xx
174
+ p headers # => { ... }
175
+ p data # => <Array<IndexMeta>>
176
+ rescue Cheminee::ApiError => e
177
+ puts "Error when calling DefaultApi->v1_indexes_index_get_with_http_info: #{e}"
178
+ end
179
+ ```
180
+
181
+ ### Parameters
182
+
183
+ | Name | Type | Description | Notes |
184
+ | ---- | ---- | ----------- | ----- |
185
+ | **index** | **String** | | |
186
+
187
+ ### Return type
188
+
189
+ [**Array&lt;IndexMeta&gt;**](IndexMeta.md)
190
+
191
+ ### Authorization
192
+
193
+ No authorization required
194
+
195
+ ### HTTP request headers
196
+
197
+ - **Content-Type**: Not defined
198
+ - **Accept**: application/json; charset=utf-8
199
+
200
+
201
+ ## v1_indexes_index_post
202
+
203
+ > <IndexMeta> v1_indexes_index_post(index, schema, opts)
204
+
205
+
206
+
207
+ ### Examples
208
+
209
+ ```ruby
210
+ require 'time'
211
+ require 'cheminee'
212
+
213
+ api_instance = Cheminee::DefaultApi.new
214
+ index = 'index_example' # String |
215
+ schema = 'schema_example' # String |
216
+ opts = {
217
+ sort_by: 'sort_by_example' # String |
218
+ }
219
+
220
+ begin
221
+
222
+ result = api_instance.v1_indexes_index_post(index, schema, opts)
223
+ p result
224
+ rescue Cheminee::ApiError => e
225
+ puts "Error when calling DefaultApi->v1_indexes_index_post: #{e}"
226
+ end
227
+ ```
228
+
229
+ #### Using the v1_indexes_index_post_with_http_info variant
230
+
231
+ This returns an Array which contains the response data, status code and headers.
232
+
233
+ > <Array(<IndexMeta>, Integer, Hash)> v1_indexes_index_post_with_http_info(index, schema, opts)
234
+
235
+ ```ruby
236
+ begin
237
+
238
+ data, status_code, headers = api_instance.v1_indexes_index_post_with_http_info(index, schema, opts)
239
+ p status_code # => 2xx
240
+ p headers # => { ... }
241
+ p data # => <IndexMeta>
242
+ rescue Cheminee::ApiError => e
243
+ puts "Error when calling DefaultApi->v1_indexes_index_post_with_http_info: #{e}"
244
+ end
245
+ ```
246
+
247
+ ### Parameters
248
+
249
+ | Name | Type | Description | Notes |
250
+ | ---- | ---- | ----------- | ----- |
251
+ | **index** | **String** | | |
252
+ | **schema** | **String** | | |
253
+ | **sort_by** | **String** | | [optional] |
254
+
255
+ ### Return type
256
+
257
+ [**IndexMeta**](IndexMeta.md)
258
+
259
+ ### Authorization
260
+
261
+ No authorization required
262
+
263
+ ### HTTP request headers
264
+
265
+ - **Content-Type**: Not defined
266
+ - **Accept**: application/json; charset=utf-8
267
+
268
+
269
+ ## v1_indexes_index_search_substructure_get
270
+
271
+ > <Array<SubstructureSearchHit>> v1_indexes_index_search_substructure_get(index, q)
272
+
273
+
274
+
275
+ ### Examples
276
+
277
+ ```ruby
278
+ require 'time'
279
+ require 'cheminee'
280
+
281
+ api_instance = Cheminee::DefaultApi.new
282
+ index = 'index_example' # String |
283
+ q = 'q_example' # String |
284
+
285
+ begin
286
+
287
+ result = api_instance.v1_indexes_index_search_substructure_get(index, q)
288
+ p result
289
+ rescue Cheminee::ApiError => e
290
+ puts "Error when calling DefaultApi->v1_indexes_index_search_substructure_get: #{e}"
291
+ end
292
+ ```
293
+
294
+ #### Using the v1_indexes_index_search_substructure_get_with_http_info variant
295
+
296
+ This returns an Array which contains the response data, status code and headers.
297
+
298
+ > <Array(<Array<SubstructureSearchHit>>, Integer, Hash)> v1_indexes_index_search_substructure_get_with_http_info(index, q)
299
+
300
+ ```ruby
301
+ begin
302
+
303
+ data, status_code, headers = api_instance.v1_indexes_index_search_substructure_get_with_http_info(index, q)
304
+ p status_code # => 2xx
305
+ p headers # => { ... }
306
+ p data # => <Array<SubstructureSearchHit>>
307
+ rescue Cheminee::ApiError => e
308
+ puts "Error when calling DefaultApi->v1_indexes_index_search_substructure_get_with_http_info: #{e}"
309
+ end
310
+ ```
311
+
312
+ ### Parameters
313
+
314
+ | Name | Type | Description | Notes |
315
+ | ---- | ---- | ----------- | ----- |
316
+ | **index** | **String** | | |
317
+ | **q** | **String** | | |
318
+
319
+ ### Return type
320
+
321
+ [**Array&lt;SubstructureSearchHit&gt;**](SubstructureSearchHit.md)
322
+
323
+ ### Authorization
324
+
325
+ No authorization required
326
+
327
+ ### HTTP request headers
328
+
329
+ - **Content-Type**: Not defined
330
+ - **Accept**: application/json; charset=utf-8
331
+
332
+
333
+ ## v1_schemas_get
334
+
335
+ > <Array<Schema>> v1_schemas_get
336
+
337
+
338
+
339
+ ### Examples
340
+
341
+ ```ruby
342
+ require 'time'
343
+ require 'cheminee'
344
+
345
+ api_instance = Cheminee::DefaultApi.new
346
+
347
+ begin
348
+
349
+ result = api_instance.v1_schemas_get
350
+ p result
351
+ rescue Cheminee::ApiError => e
352
+ puts "Error when calling DefaultApi->v1_schemas_get: #{e}"
353
+ end
354
+ ```
355
+
356
+ #### Using the v1_schemas_get_with_http_info variant
357
+
358
+ This returns an Array which contains the response data, status code and headers.
359
+
360
+ > <Array(<Array<Schema>>, Integer, Hash)> v1_schemas_get_with_http_info
361
+
362
+ ```ruby
363
+ begin
364
+
365
+ data, status_code, headers = api_instance.v1_schemas_get_with_http_info
366
+ p status_code # => 2xx
367
+ p headers # => { ... }
368
+ p data # => <Array<Schema>>
369
+ rescue Cheminee::ApiError => e
370
+ puts "Error when calling DefaultApi->v1_schemas_get_with_http_info: #{e}"
371
+ end
372
+ ```
373
+
374
+ ### Parameters
375
+
376
+ This endpoint does not need any parameter.
377
+
378
+ ### Return type
379
+
380
+ [**Array&lt;Schema&gt;**](Schema.md)
381
+
382
+ ### Authorization
383
+
384
+ No authorization required
385
+
386
+ ### HTTP request headers
387
+
388
+ - **Content-Type**: Not defined
389
+ - **Accept**: application/json; charset=utf-8
390
+
391
+
392
+ ## v1_standardize_post
393
+
394
+ > <Array<StandardizedSmile>> v1_standardize_post(smile)
13
395
 
14
396
 
15
397
 
@@ -24,28 +406,28 @@ smile = [Cheminee::Smile.new({smile: 'smile_example'})] # Array<Smile> |
24
406
 
25
407
  begin
26
408
 
27
- result = api_instance.standardize_post(smile)
409
+ result = api_instance.v1_standardize_post(smile)
28
410
  p result
29
411
  rescue Cheminee::ApiError => e
30
- puts "Error when calling DefaultApi->standardize_post: #{e}"
412
+ puts "Error when calling DefaultApi->v1_standardize_post: #{e}"
31
413
  end
32
414
  ```
33
415
 
34
- #### Using the standardize_post_with_http_info variant
416
+ #### Using the v1_standardize_post_with_http_info variant
35
417
 
36
418
  This returns an Array which contains the response data, status code and headers.
37
419
 
38
- > <Array(<Array<StandardizedSmile>>, Integer, Hash)> standardize_post_with_http_info(smile)
420
+ > <Array(<Array<StandardizedSmile>>, Integer, Hash)> v1_standardize_post_with_http_info(smile)
39
421
 
40
422
  ```ruby
41
423
  begin
42
424
 
43
- data, status_code, headers = api_instance.standardize_post_with_http_info(smile)
425
+ data, status_code, headers = api_instance.v1_standardize_post_with_http_info(smile)
44
426
  p status_code # => 2xx
45
427
  p headers # => { ... }
46
428
  p data # => <Array<StandardizedSmile>>
47
429
  rescue Cheminee::ApiError => e
48
- puts "Error when calling DefaultApi->standardize_post_with_http_info: #{e}"
430
+ puts "Error when calling DefaultApi->v1_standardize_post_with_http_info: #{e}"
49
431
  end
50
432
  ```
51
433
 
@@ -0,0 +1,18 @@
1
+ # Cheminee::GetIndexesResponseError
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **error** | **String** | | |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'cheminee'
13
+
14
+ instance = Cheminee::GetIndexesResponseError.new(
15
+ error: null
16
+ )
17
+ ```
18
+
data/docs/IndexMeta.md ADDED
@@ -0,0 +1,20 @@
1
+ # Cheminee::IndexMeta
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **name** | **String** | | |
8
+ | **schema** | **String** | | |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'cheminee'
14
+
15
+ instance = Cheminee::IndexMeta.new(
16
+ name: null,
17
+ schema: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,18 @@
1
+ # Cheminee::ListIndexResponseErr
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **error** | **String** | | |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'cheminee'
13
+
14
+ instance = Cheminee::ListIndexResponseErr.new(
15
+ error: null
16
+ )
17
+ ```
18
+