metatron_ruby_client 0.0.1
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.
- checksums.yaml +7 -0
- data/README.md +140 -0
- data/config.json +13 -0
- data/docs/Asset.md +9 -0
- data/docs/AssetAttributes.md +8 -0
- data/docs/AssetData.md +10 -0
- data/docs/AssetMeta.md +8 -0
- data/docs/AssetResultSet.md +10 -0
- data/docs/AssetResultSetMeta.md +8 -0
- data/docs/DefaultApi.md +631 -0
- data/docs/Error.md +10 -0
- data/docs/Errors.md +8 -0
- data/docs/Item.md +9 -0
- data/docs/ItemData.md +8 -0
- data/docs/ItemResultSet.md +10 -0
- data/docs/Links.md +10 -0
- data/docs/Manifestation.md +9 -0
- data/docs/ManifestationAttributes.md +11 -0
- data/docs/ManifestationData.md +11 -0
- data/docs/ManifestationRelationships.md +10 -0
- data/docs/ManifestationResultSet.md +10 -0
- data/docs/Meta.md +10 -0
- data/docs/OneToManyRelationship.md +10 -0
- data/docs/OneToOneRelationship.md +10 -0
- data/docs/Resource.md +10 -0
- data/docs/ResourceData.md +11 -0
- data/docs/ResourceLink.md +9 -0
- data/docs/ResultSetMeta.md +10 -0
- data/docs/Work.md +9 -0
- data/docs/WorkAttributes.md +8 -0
- data/docs/WorkData.md +11 -0
- data/docs/WorkRelationships.md +8 -0
- data/docs/WorkResultSet.md +11 -0
- data/generate.sh +0 -0
- data/git_push.sh +52 -0
- data/lib/metatron_ruby_client/api/default_api.rb +727 -0
- data/lib/metatron_ruby_client/api_client.rb +361 -0
- data/lib/metatron_ruby_client/api_error.rb +34 -0
- data/lib/metatron_ruby_client/configuration.rb +170 -0
- data/lib/metatron_ruby_client/models/asset.rb +195 -0
- data/lib/metatron_ruby_client/models/asset_attributes.rb +212 -0
- data/lib/metatron_ruby_client/models/asset_data.rb +208 -0
- data/lib/metatron_ruby_client/models/asset_meta.rb +198 -0
- data/lib/metatron_ruby_client/models/asset_result_set.rb +202 -0
- data/lib/metatron_ruby_client/models/asset_result_set_meta.rb +196 -0
- data/lib/metatron_ruby_client/models/error.rb +208 -0
- data/lib/metatron_ruby_client/models/errors.rb +184 -0
- data/lib/metatron_ruby_client/models/item.rb +197 -0
- data/lib/metatron_ruby_client/models/item_data.rb +186 -0
- data/lib/metatron_ruby_client/models/item_result_set.rb +206 -0
- data/lib/metatron_ruby_client/models/links.rb +204 -0
- data/lib/metatron_ruby_client/models/manifestation.rb +197 -0
- data/lib/metatron_ruby_client/models/manifestation_attributes.rb +209 -0
- data/lib/metatron_ruby_client/models/manifestation_data.rb +235 -0
- data/lib/metatron_ruby_client/models/manifestation_relationships.rb +200 -0
- data/lib/metatron_ruby_client/models/manifestation_result_set.rb +214 -0
- data/lib/metatron_ruby_client/models/meta.rb +260 -0
- data/lib/metatron_ruby_client/models/one_to_many_relationship.rb +206 -0
- data/lib/metatron_ruby_client/models/one_to_one_relationship.rb +204 -0
- data/lib/metatron_ruby_client/models/resource.rb +281 -0
- data/lib/metatron_ruby_client/models/resource_data.rb +221 -0
- data/lib/metatron_ruby_client/models/resource_link.rb +199 -0
- data/lib/metatron_ruby_client/models/result_set_meta.rb +203 -0
- data/lib/metatron_ruby_client/models/work.rb +197 -0
- data/lib/metatron_ruby_client/models/work_attributes.rb +186 -0
- data/lib/metatron_ruby_client/models/work_data.rb +235 -0
- data/lib/metatron_ruby_client/models/work_relationships.rb +182 -0
- data/lib/metatron_ruby_client/models/work_result_set.rb +213 -0
- data/lib/metatron_ruby_client/version.rb +13 -0
- data/lib/metatron_ruby_client.rb +60 -0
- data/metatron_ruby_client.gemspec +31 -0
- data/spec/api/default_api_spec.rb +218 -0
- data/spec/models/asset_attributes_spec.rb +46 -0
- data/spec/models/asset_data_spec.rb +66 -0
- data/spec/models/asset_meta_spec.rb +46 -0
- data/spec/models/asset_result_set_spec.rb +66 -0
- data/spec/models/asset_spec.rb +56 -0
- data/spec/models/error_spec.rb +66 -0
- data/spec/models/errors_spec.rb +46 -0
- data/spec/models/item_data_spec.rb +46 -0
- data/spec/models/item_result_set_spec.rb +66 -0
- data/spec/models/item_spec.rb +56 -0
- data/spec/models/links_spec.rb +66 -0
- data/spec/models/manifestation_attributes_spec.rb +76 -0
- data/spec/models/manifestation_data_spec.rb +76 -0
- data/spec/models/manifestation_relationships_spec.rb +66 -0
- data/spec/models/manifestation_result_set_spec.rb +66 -0
- data/spec/models/manifestation_spec.rb +56 -0
- data/spec/models/meta_spec.rb +66 -0
- data/spec/models/one_to_many_relationship_spec.rb +66 -0
- data/spec/models/one_to_one_relationship_spec.rb +66 -0
- data/spec/models/resource_data_spec.rb +76 -0
- data/spec/models/resource_link_spec.rb +56 -0
- data/spec/models/resource_spec.rb +66 -0
- data/spec/models/result_set_meta_spec.rb +66 -0
- data/spec/models/work_attributes_spec.rb +46 -0
- data/spec/models/work_data_spec.rb +76 -0
- data/spec/models/work_relationships_spec.rb +46 -0
- data/spec/models/work_result_set_spec.rb +76 -0
- data/spec/models/work_spec.rb +56 -0
- data/stub-service/.swagger-codegen-ignore +23 -0
- data/stub-service/Gemfile +4 -0
- data/stub-service/Gemfile.lock +22 -0
- data/stub-service/LICENSE +201 -0
- data/stub-service/README.md +29 -0
- data/stub-service/api/default_api.rb +370 -0
- data/stub-service/config.ru +2 -0
- data/stub-service/lib/result_set.rb +37 -0
- data/stub-service/lib/swaggering.rb +163 -0
- data/stub-service/my_app.rb +13 -0
- data/stub-service/responses/works/includes/manifestations.assets.yaml +42 -0
- data/stub-service/responses/works/includes/manifestations.yaml +88 -0
- data/stub-service/responses/works/result_set.yaml +18 -0
- data/stub-service/swagger.yaml +756 -0
- data/swagger-codegen-cli.jar +0 -0
- metadata +369 -0
data/docs/DefaultApi.md
ADDED
|
@@ -0,0 +1,631 @@
|
|
|
1
|
+
# MetatronClient::DefaultApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://bibliography.talis.com*
|
|
4
|
+
|
|
5
|
+
Method | HTTP request | Description
|
|
6
|
+
------------- | ------------- | -------------
|
|
7
|
+
[**2_assets_asset_type_asset_id_delete**](DefaultApi.md#2_assets_asset_type_asset_id_delete) | **DELETE** /2/assets/{assetType}/{assetId} |
|
|
8
|
+
[**2_manifestations_get**](DefaultApi.md#2_manifestations_get) | **GET** /2/manifestations |
|
|
9
|
+
[**2_manifestations_manifestation_id_assets_get**](DefaultApi.md#2_manifestations_manifestation_id_assets_get) | **GET** /2/manifestations/{manifestationId}/assets |
|
|
10
|
+
[**2_manifestations_manifestation_id_assets_post**](DefaultApi.md#2_manifestations_manifestation_id_assets_post) | **POST** /2/manifestations/{manifestationId}/assets |
|
|
11
|
+
[**2_manifestations_manifestation_id_get**](DefaultApi.md#2_manifestations_manifestation_id_get) | **GET** /2/manifestations/{manifestationId} |
|
|
12
|
+
[**2_manifestations_manifestation_id_items_tenant_code_get**](DefaultApi.md#2_manifestations_manifestation_id_items_tenant_code_get) | **GET** /2/manifestations/{manifestationId}/items/{tenantCode} |
|
|
13
|
+
[**2_manifestations_manifestation_id_works_get**](DefaultApi.md#2_manifestations_manifestation_id_works_get) | **GET** /2/manifestations/{manifestationId}/works |
|
|
14
|
+
[**2_works_get**](DefaultApi.md#2_works_get) | **GET** /2/works |
|
|
15
|
+
[**2_works_work_id_assets_get**](DefaultApi.md#2_works_work_id_assets_get) | **GET** /2/works/{workId}/assets |
|
|
16
|
+
[**2_works_work_id_manifestations_get**](DefaultApi.md#2_works_work_id_manifestations_get) | **GET** /2/works/{workId}/manifestations |
|
|
17
|
+
[**2_works_work_id_similar_get**](DefaultApi.md#2_works_work_id_similar_get) | **GET** /2/works/{workId}/similar |
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
# **2_assets_asset_type_asset_id_delete**
|
|
21
|
+
> 2_assets_asset_type_asset_id_delete(asset_id, asset_type, authorization)
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Example
|
|
26
|
+
```ruby
|
|
27
|
+
# load the gem
|
|
28
|
+
require 'metatron_ruby_client'
|
|
29
|
+
# setup authorization
|
|
30
|
+
MetatronClient.configure do |config|
|
|
31
|
+
# Configure API key authorization: Authorizer
|
|
32
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
|
33
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'BEARER' (defaults to nil)
|
|
34
|
+
#config.api_key_prefix['Authorization'] = 'BEARER'
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
api_instance = MetatronClient::DefaultApi.new
|
|
38
|
+
|
|
39
|
+
asset_id = "asset_id_example" # String |
|
|
40
|
+
|
|
41
|
+
asset_type = "asset_type_example" # String |
|
|
42
|
+
|
|
43
|
+
authorization = "authorization_example" # String |
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
begin
|
|
47
|
+
api_instance.2_assets_asset_type_asset_id_delete(asset_id, asset_type, authorization)
|
|
48
|
+
rescue MetatronClient::ApiError => e
|
|
49
|
+
puts "Exception when calling DefaultApi->2_assets_asset_type_asset_id_delete: #{e}"
|
|
50
|
+
end
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
### Parameters
|
|
54
|
+
|
|
55
|
+
Name | Type | Description | Notes
|
|
56
|
+
------------- | ------------- | ------------- | -------------
|
|
57
|
+
**asset_id** | **String**| |
|
|
58
|
+
**asset_type** | **String**| |
|
|
59
|
+
**authorization** | **String**| |
|
|
60
|
+
|
|
61
|
+
### Return type
|
|
62
|
+
|
|
63
|
+
nil (empty response body)
|
|
64
|
+
|
|
65
|
+
### Authorization
|
|
66
|
+
|
|
67
|
+
[Authorizer](../README.md#Authorizer)
|
|
68
|
+
|
|
69
|
+
### HTTP request headers
|
|
70
|
+
|
|
71
|
+
- **Content-Type**: application/json
|
|
72
|
+
- **Accept**: application/vnd.api+json, application/json
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
# **2_manifestations_get**
|
|
77
|
+
> ManifestationResultSet 2_manifestations_get(authorization, opts)
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
### Example
|
|
82
|
+
```ruby
|
|
83
|
+
# load the gem
|
|
84
|
+
require 'metatron_ruby_client'
|
|
85
|
+
# setup authorization
|
|
86
|
+
MetatronClient.configure do |config|
|
|
87
|
+
# Configure API key authorization: Authorizer
|
|
88
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
|
89
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'BEARER' (defaults to nil)
|
|
90
|
+
#config.api_key_prefix['Authorization'] = 'BEARER'
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
api_instance = MetatronClient::DefaultApi.new
|
|
94
|
+
|
|
95
|
+
authorization = "authorization_example" # String |
|
|
96
|
+
|
|
97
|
+
opts = {
|
|
98
|
+
work_id: "work_id_example", # String |
|
|
99
|
+
isbn: "isbn_example" # String |
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
begin
|
|
103
|
+
result = api_instance.2_manifestations_get(authorization, opts)
|
|
104
|
+
p result
|
|
105
|
+
rescue MetatronClient::ApiError => e
|
|
106
|
+
puts "Exception when calling DefaultApi->2_manifestations_get: #{e}"
|
|
107
|
+
end
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
### Parameters
|
|
111
|
+
|
|
112
|
+
Name | Type | Description | Notes
|
|
113
|
+
------------- | ------------- | ------------- | -------------
|
|
114
|
+
**authorization** | **String**| |
|
|
115
|
+
**work_id** | **String**| | [optional]
|
|
116
|
+
**isbn** | **String**| | [optional]
|
|
117
|
+
|
|
118
|
+
### Return type
|
|
119
|
+
|
|
120
|
+
[**ManifestationResultSet**](ManifestationResultSet.md)
|
|
121
|
+
|
|
122
|
+
### Authorization
|
|
123
|
+
|
|
124
|
+
[Authorizer](../README.md#Authorizer)
|
|
125
|
+
|
|
126
|
+
### HTTP request headers
|
|
127
|
+
|
|
128
|
+
- **Content-Type**: application/json
|
|
129
|
+
- **Accept**: application/vnd.api+json, application/json
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
# **2_manifestations_manifestation_id_assets_get**
|
|
134
|
+
> AssetResultSet 2_manifestations_manifestation_id_assets_get(manifestation_id, authorization)
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
### Example
|
|
139
|
+
```ruby
|
|
140
|
+
# load the gem
|
|
141
|
+
require 'metatron_ruby_client'
|
|
142
|
+
# setup authorization
|
|
143
|
+
MetatronClient.configure do |config|
|
|
144
|
+
# Configure API key authorization: Authorizer
|
|
145
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
|
146
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'BEARER' (defaults to nil)
|
|
147
|
+
#config.api_key_prefix['Authorization'] = 'BEARER'
|
|
148
|
+
end
|
|
149
|
+
|
|
150
|
+
api_instance = MetatronClient::DefaultApi.new
|
|
151
|
+
|
|
152
|
+
manifestation_id = "manifestation_id_example" # String |
|
|
153
|
+
|
|
154
|
+
authorization = "authorization_example" # String |
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
begin
|
|
158
|
+
result = api_instance.2_manifestations_manifestation_id_assets_get(manifestation_id, authorization)
|
|
159
|
+
p result
|
|
160
|
+
rescue MetatronClient::ApiError => e
|
|
161
|
+
puts "Exception when calling DefaultApi->2_manifestations_manifestation_id_assets_get: #{e}"
|
|
162
|
+
end
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
### Parameters
|
|
166
|
+
|
|
167
|
+
Name | Type | Description | Notes
|
|
168
|
+
------------- | ------------- | ------------- | -------------
|
|
169
|
+
**manifestation_id** | **String**| |
|
|
170
|
+
**authorization** | **String**| |
|
|
171
|
+
|
|
172
|
+
### Return type
|
|
173
|
+
|
|
174
|
+
[**AssetResultSet**](AssetResultSet.md)
|
|
175
|
+
|
|
176
|
+
### Authorization
|
|
177
|
+
|
|
178
|
+
[Authorizer](../README.md#Authorizer)
|
|
179
|
+
|
|
180
|
+
### HTTP request headers
|
|
181
|
+
|
|
182
|
+
- **Content-Type**: application/json
|
|
183
|
+
- **Accept**: application/vnd.api+json, application/json
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
# **2_manifestations_manifestation_id_assets_post**
|
|
188
|
+
> Asset 2_manifestations_manifestation_id_assets_post(manifestation_id, authorization, asset)
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
### Example
|
|
193
|
+
```ruby
|
|
194
|
+
# load the gem
|
|
195
|
+
require 'metatron_ruby_client'
|
|
196
|
+
# setup authorization
|
|
197
|
+
MetatronClient.configure do |config|
|
|
198
|
+
# Configure API key authorization: Authorizer
|
|
199
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
|
200
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'BEARER' (defaults to nil)
|
|
201
|
+
#config.api_key_prefix['Authorization'] = 'BEARER'
|
|
202
|
+
end
|
|
203
|
+
|
|
204
|
+
api_instance = MetatronClient::DefaultApi.new
|
|
205
|
+
|
|
206
|
+
manifestation_id = "manifestation_id_example" # String |
|
|
207
|
+
|
|
208
|
+
authorization = "authorization_example" # String |
|
|
209
|
+
|
|
210
|
+
asset = MetatronClient::Asset.new # Asset |
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
begin
|
|
214
|
+
result = api_instance.2_manifestations_manifestation_id_assets_post(manifestation_id, authorization, asset)
|
|
215
|
+
p result
|
|
216
|
+
rescue MetatronClient::ApiError => e
|
|
217
|
+
puts "Exception when calling DefaultApi->2_manifestations_manifestation_id_assets_post: #{e}"
|
|
218
|
+
end
|
|
219
|
+
```
|
|
220
|
+
|
|
221
|
+
### Parameters
|
|
222
|
+
|
|
223
|
+
Name | Type | Description | Notes
|
|
224
|
+
------------- | ------------- | ------------- | -------------
|
|
225
|
+
**manifestation_id** | **String**| |
|
|
226
|
+
**authorization** | **String**| |
|
|
227
|
+
**asset** | [**Asset**](Asset.md)| |
|
|
228
|
+
|
|
229
|
+
### Return type
|
|
230
|
+
|
|
231
|
+
[**Asset**](Asset.md)
|
|
232
|
+
|
|
233
|
+
### Authorization
|
|
234
|
+
|
|
235
|
+
[Authorizer](../README.md#Authorizer)
|
|
236
|
+
|
|
237
|
+
### HTTP request headers
|
|
238
|
+
|
|
239
|
+
- **Content-Type**: application/vnd.api+json, application/json
|
|
240
|
+
- **Accept**: application/vnd.api+json, application/json
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
# **2_manifestations_manifestation_id_get**
|
|
245
|
+
> 2_manifestations_manifestation_id_get(manifestation_id, authorization)
|
|
246
|
+
|
|
247
|
+
|
|
248
|
+
|
|
249
|
+
### Example
|
|
250
|
+
```ruby
|
|
251
|
+
# load the gem
|
|
252
|
+
require 'metatron_ruby_client'
|
|
253
|
+
# setup authorization
|
|
254
|
+
MetatronClient.configure do |config|
|
|
255
|
+
# Configure API key authorization: Authorizer
|
|
256
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
|
257
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'BEARER' (defaults to nil)
|
|
258
|
+
#config.api_key_prefix['Authorization'] = 'BEARER'
|
|
259
|
+
end
|
|
260
|
+
|
|
261
|
+
api_instance = MetatronClient::DefaultApi.new
|
|
262
|
+
|
|
263
|
+
manifestation_id = "manifestation_id_example" # String |
|
|
264
|
+
|
|
265
|
+
authorization = "authorization_example" # String |
|
|
266
|
+
|
|
267
|
+
|
|
268
|
+
begin
|
|
269
|
+
api_instance.2_manifestations_manifestation_id_get(manifestation_id, authorization)
|
|
270
|
+
rescue MetatronClient::ApiError => e
|
|
271
|
+
puts "Exception when calling DefaultApi->2_manifestations_manifestation_id_get: #{e}"
|
|
272
|
+
end
|
|
273
|
+
```
|
|
274
|
+
|
|
275
|
+
### Parameters
|
|
276
|
+
|
|
277
|
+
Name | Type | Description | Notes
|
|
278
|
+
------------- | ------------- | ------------- | -------------
|
|
279
|
+
**manifestation_id** | **String**| |
|
|
280
|
+
**authorization** | **String**| |
|
|
281
|
+
|
|
282
|
+
### Return type
|
|
283
|
+
|
|
284
|
+
nil (empty response body)
|
|
285
|
+
|
|
286
|
+
### Authorization
|
|
287
|
+
|
|
288
|
+
[Authorizer](../README.md#Authorizer)
|
|
289
|
+
|
|
290
|
+
### HTTP request headers
|
|
291
|
+
|
|
292
|
+
- **Content-Type**: application/json
|
|
293
|
+
- **Accept**: application/vnd.api+json
|
|
294
|
+
|
|
295
|
+
|
|
296
|
+
|
|
297
|
+
# **2_manifestations_manifestation_id_items_tenant_code_get**
|
|
298
|
+
> ItemResultSet 2_manifestations_manifestation_id_items_tenant_code_get(manifestation_id, authorization, tenant_code)
|
|
299
|
+
|
|
300
|
+
|
|
301
|
+
|
|
302
|
+
### Example
|
|
303
|
+
```ruby
|
|
304
|
+
# load the gem
|
|
305
|
+
require 'metatron_ruby_client'
|
|
306
|
+
# setup authorization
|
|
307
|
+
MetatronClient.configure do |config|
|
|
308
|
+
# Configure API key authorization: Authorizer
|
|
309
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
|
310
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'BEARER' (defaults to nil)
|
|
311
|
+
#config.api_key_prefix['Authorization'] = 'BEARER'
|
|
312
|
+
end
|
|
313
|
+
|
|
314
|
+
api_instance = MetatronClient::DefaultApi.new
|
|
315
|
+
|
|
316
|
+
manifestation_id = "manifestation_id_example" # String |
|
|
317
|
+
|
|
318
|
+
authorization = "authorization_example" # String |
|
|
319
|
+
|
|
320
|
+
tenant_code = "tenant_code_example" # String |
|
|
321
|
+
|
|
322
|
+
|
|
323
|
+
begin
|
|
324
|
+
result = api_instance.2_manifestations_manifestation_id_items_tenant_code_get(manifestation_id, authorization, tenant_code)
|
|
325
|
+
p result
|
|
326
|
+
rescue MetatronClient::ApiError => e
|
|
327
|
+
puts "Exception when calling DefaultApi->2_manifestations_manifestation_id_items_tenant_code_get: #{e}"
|
|
328
|
+
end
|
|
329
|
+
```
|
|
330
|
+
|
|
331
|
+
### Parameters
|
|
332
|
+
|
|
333
|
+
Name | Type | Description | Notes
|
|
334
|
+
------------- | ------------- | ------------- | -------------
|
|
335
|
+
**manifestation_id** | **String**| |
|
|
336
|
+
**authorization** | **String**| |
|
|
337
|
+
**tenant_code** | **String**| |
|
|
338
|
+
|
|
339
|
+
### Return type
|
|
340
|
+
|
|
341
|
+
[**ItemResultSet**](ItemResultSet.md)
|
|
342
|
+
|
|
343
|
+
### Authorization
|
|
344
|
+
|
|
345
|
+
[Authorizer](../README.md#Authorizer)
|
|
346
|
+
|
|
347
|
+
### HTTP request headers
|
|
348
|
+
|
|
349
|
+
- **Content-Type**: application/json
|
|
350
|
+
- **Accept**: application/vnd.api+json
|
|
351
|
+
|
|
352
|
+
|
|
353
|
+
|
|
354
|
+
# **2_manifestations_manifestation_id_works_get**
|
|
355
|
+
> 2_manifestations_manifestation_id_works_get(manifestation_id, authorization)
|
|
356
|
+
|
|
357
|
+
|
|
358
|
+
|
|
359
|
+
### Example
|
|
360
|
+
```ruby
|
|
361
|
+
# load the gem
|
|
362
|
+
require 'metatron_ruby_client'
|
|
363
|
+
# setup authorization
|
|
364
|
+
MetatronClient.configure do |config|
|
|
365
|
+
# Configure API key authorization: Authorizer
|
|
366
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
|
367
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'BEARER' (defaults to nil)
|
|
368
|
+
#config.api_key_prefix['Authorization'] = 'BEARER'
|
|
369
|
+
end
|
|
370
|
+
|
|
371
|
+
api_instance = MetatronClient::DefaultApi.new
|
|
372
|
+
|
|
373
|
+
manifestation_id = "manifestation_id_example" # String |
|
|
374
|
+
|
|
375
|
+
authorization = "authorization_example" # String |
|
|
376
|
+
|
|
377
|
+
|
|
378
|
+
begin
|
|
379
|
+
api_instance.2_manifestations_manifestation_id_works_get(manifestation_id, authorization)
|
|
380
|
+
rescue MetatronClient::ApiError => e
|
|
381
|
+
puts "Exception when calling DefaultApi->2_manifestations_manifestation_id_works_get: #{e}"
|
|
382
|
+
end
|
|
383
|
+
```
|
|
384
|
+
|
|
385
|
+
### Parameters
|
|
386
|
+
|
|
387
|
+
Name | Type | Description | Notes
|
|
388
|
+
------------- | ------------- | ------------- | -------------
|
|
389
|
+
**manifestation_id** | **String**| |
|
|
390
|
+
**authorization** | **String**| |
|
|
391
|
+
|
|
392
|
+
### Return type
|
|
393
|
+
|
|
394
|
+
nil (empty response body)
|
|
395
|
+
|
|
396
|
+
### Authorization
|
|
397
|
+
|
|
398
|
+
[Authorizer](../README.md#Authorizer)
|
|
399
|
+
|
|
400
|
+
### HTTP request headers
|
|
401
|
+
|
|
402
|
+
- **Content-Type**: application/json
|
|
403
|
+
- **Accept**: application/vnd.api+json
|
|
404
|
+
|
|
405
|
+
|
|
406
|
+
|
|
407
|
+
# **2_works_get**
|
|
408
|
+
> WorkResultSet 2_works_get(limit, offset, q, authorization, opts)
|
|
409
|
+
|
|
410
|
+
|
|
411
|
+
|
|
412
|
+
### Example
|
|
413
|
+
```ruby
|
|
414
|
+
# load the gem
|
|
415
|
+
require 'metatron_ruby_client'
|
|
416
|
+
# setup authorization
|
|
417
|
+
MetatronClient.configure do |config|
|
|
418
|
+
# Configure API key authorization: Authorizer
|
|
419
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
|
420
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'BEARER' (defaults to nil)
|
|
421
|
+
#config.api_key_prefix['Authorization'] = 'BEARER'
|
|
422
|
+
end
|
|
423
|
+
|
|
424
|
+
api_instance = MetatronClient::DefaultApi.new
|
|
425
|
+
|
|
426
|
+
limit = "limit_example" # String |
|
|
427
|
+
|
|
428
|
+
offset = "offset_example" # String |
|
|
429
|
+
|
|
430
|
+
q = "q_example" # String |
|
|
431
|
+
|
|
432
|
+
authorization = "authorization_example" # String |
|
|
433
|
+
|
|
434
|
+
opts = {
|
|
435
|
+
include: "include_example" # String |
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
begin
|
|
439
|
+
result = api_instance.2_works_get(limit, offset, q, authorization, opts)
|
|
440
|
+
p result
|
|
441
|
+
rescue MetatronClient::ApiError => e
|
|
442
|
+
puts "Exception when calling DefaultApi->2_works_get: #{e}"
|
|
443
|
+
end
|
|
444
|
+
```
|
|
445
|
+
|
|
446
|
+
### Parameters
|
|
447
|
+
|
|
448
|
+
Name | Type | Description | Notes
|
|
449
|
+
------------- | ------------- | ------------- | -------------
|
|
450
|
+
**limit** | **String**| |
|
|
451
|
+
**offset** | **String**| |
|
|
452
|
+
**q** | **String**| |
|
|
453
|
+
**authorization** | **String**| |
|
|
454
|
+
**include** | **String**| | [optional]
|
|
455
|
+
|
|
456
|
+
### Return type
|
|
457
|
+
|
|
458
|
+
[**WorkResultSet**](WorkResultSet.md)
|
|
459
|
+
|
|
460
|
+
### Authorization
|
|
461
|
+
|
|
462
|
+
[Authorizer](../README.md#Authorizer)
|
|
463
|
+
|
|
464
|
+
### HTTP request headers
|
|
465
|
+
|
|
466
|
+
- **Content-Type**: application/json
|
|
467
|
+
- **Accept**: application/vnd.api+json, application/json
|
|
468
|
+
|
|
469
|
+
|
|
470
|
+
|
|
471
|
+
# **2_works_work_id_assets_get**
|
|
472
|
+
> AssetResultSet 2_works_work_id_assets_get(work_id, authorization)
|
|
473
|
+
|
|
474
|
+
|
|
475
|
+
|
|
476
|
+
### Example
|
|
477
|
+
```ruby
|
|
478
|
+
# load the gem
|
|
479
|
+
require 'metatron_ruby_client'
|
|
480
|
+
# setup authorization
|
|
481
|
+
MetatronClient.configure do |config|
|
|
482
|
+
# Configure API key authorization: Authorizer
|
|
483
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
|
484
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'BEARER' (defaults to nil)
|
|
485
|
+
#config.api_key_prefix['Authorization'] = 'BEARER'
|
|
486
|
+
end
|
|
487
|
+
|
|
488
|
+
api_instance = MetatronClient::DefaultApi.new
|
|
489
|
+
|
|
490
|
+
work_id = "work_id_example" # String |
|
|
491
|
+
|
|
492
|
+
authorization = "authorization_example" # String |
|
|
493
|
+
|
|
494
|
+
|
|
495
|
+
begin
|
|
496
|
+
result = api_instance.2_works_work_id_assets_get(work_id, authorization)
|
|
497
|
+
p result
|
|
498
|
+
rescue MetatronClient::ApiError => e
|
|
499
|
+
puts "Exception when calling DefaultApi->2_works_work_id_assets_get: #{e}"
|
|
500
|
+
end
|
|
501
|
+
```
|
|
502
|
+
|
|
503
|
+
### Parameters
|
|
504
|
+
|
|
505
|
+
Name | Type | Description | Notes
|
|
506
|
+
------------- | ------------- | ------------- | -------------
|
|
507
|
+
**work_id** | **String**| |
|
|
508
|
+
**authorization** | **String**| |
|
|
509
|
+
|
|
510
|
+
### Return type
|
|
511
|
+
|
|
512
|
+
[**AssetResultSet**](AssetResultSet.md)
|
|
513
|
+
|
|
514
|
+
### Authorization
|
|
515
|
+
|
|
516
|
+
[Authorizer](../README.md#Authorizer)
|
|
517
|
+
|
|
518
|
+
### HTTP request headers
|
|
519
|
+
|
|
520
|
+
- **Content-Type**: application/json
|
|
521
|
+
- **Accept**: application/vnd.api+json, application/json
|
|
522
|
+
|
|
523
|
+
|
|
524
|
+
|
|
525
|
+
# **2_works_work_id_manifestations_get**
|
|
526
|
+
> 2_works_work_id_manifestations_get(work_id, authorization)
|
|
527
|
+
|
|
528
|
+
|
|
529
|
+
|
|
530
|
+
### Example
|
|
531
|
+
```ruby
|
|
532
|
+
# load the gem
|
|
533
|
+
require 'metatron_ruby_client'
|
|
534
|
+
# setup authorization
|
|
535
|
+
MetatronClient.configure do |config|
|
|
536
|
+
# Configure API key authorization: Authorizer
|
|
537
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
|
538
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'BEARER' (defaults to nil)
|
|
539
|
+
#config.api_key_prefix['Authorization'] = 'BEARER'
|
|
540
|
+
end
|
|
541
|
+
|
|
542
|
+
api_instance = MetatronClient::DefaultApi.new
|
|
543
|
+
|
|
544
|
+
work_id = "work_id_example" # String |
|
|
545
|
+
|
|
546
|
+
authorization = "authorization_example" # String |
|
|
547
|
+
|
|
548
|
+
|
|
549
|
+
begin
|
|
550
|
+
api_instance.2_works_work_id_manifestations_get(work_id, authorization)
|
|
551
|
+
rescue MetatronClient::ApiError => e
|
|
552
|
+
puts "Exception when calling DefaultApi->2_works_work_id_manifestations_get: #{e}"
|
|
553
|
+
end
|
|
554
|
+
```
|
|
555
|
+
|
|
556
|
+
### Parameters
|
|
557
|
+
|
|
558
|
+
Name | Type | Description | Notes
|
|
559
|
+
------------- | ------------- | ------------- | -------------
|
|
560
|
+
**work_id** | **String**| |
|
|
561
|
+
**authorization** | **String**| |
|
|
562
|
+
|
|
563
|
+
### Return type
|
|
564
|
+
|
|
565
|
+
nil (empty response body)
|
|
566
|
+
|
|
567
|
+
### Authorization
|
|
568
|
+
|
|
569
|
+
[Authorizer](../README.md#Authorizer)
|
|
570
|
+
|
|
571
|
+
### HTTP request headers
|
|
572
|
+
|
|
573
|
+
- **Content-Type**: application/json
|
|
574
|
+
- **Accept**: application/vnd.api+json
|
|
575
|
+
|
|
576
|
+
|
|
577
|
+
|
|
578
|
+
# **2_works_work_id_similar_get**
|
|
579
|
+
> WorkResultSet 2_works_work_id_similar_get(work_id, authorization)
|
|
580
|
+
|
|
581
|
+
|
|
582
|
+
|
|
583
|
+
### Example
|
|
584
|
+
```ruby
|
|
585
|
+
# load the gem
|
|
586
|
+
require 'metatron_ruby_client'
|
|
587
|
+
# setup authorization
|
|
588
|
+
MetatronClient.configure do |config|
|
|
589
|
+
# Configure API key authorization: Authorizer
|
|
590
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
|
591
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'BEARER' (defaults to nil)
|
|
592
|
+
#config.api_key_prefix['Authorization'] = 'BEARER'
|
|
593
|
+
end
|
|
594
|
+
|
|
595
|
+
api_instance = MetatronClient::DefaultApi.new
|
|
596
|
+
|
|
597
|
+
work_id = "work_id_example" # String |
|
|
598
|
+
|
|
599
|
+
authorization = "authorization_example" # String |
|
|
600
|
+
|
|
601
|
+
|
|
602
|
+
begin
|
|
603
|
+
result = api_instance.2_works_work_id_similar_get(work_id, authorization)
|
|
604
|
+
p result
|
|
605
|
+
rescue MetatronClient::ApiError => e
|
|
606
|
+
puts "Exception when calling DefaultApi->2_works_work_id_similar_get: #{e}"
|
|
607
|
+
end
|
|
608
|
+
```
|
|
609
|
+
|
|
610
|
+
### Parameters
|
|
611
|
+
|
|
612
|
+
Name | Type | Description | Notes
|
|
613
|
+
------------- | ------------- | ------------- | -------------
|
|
614
|
+
**work_id** | **String**| |
|
|
615
|
+
**authorization** | **String**| |
|
|
616
|
+
|
|
617
|
+
### Return type
|
|
618
|
+
|
|
619
|
+
[**WorkResultSet**](WorkResultSet.md)
|
|
620
|
+
|
|
621
|
+
### Authorization
|
|
622
|
+
|
|
623
|
+
[Authorizer](../README.md#Authorizer)
|
|
624
|
+
|
|
625
|
+
### HTTP request headers
|
|
626
|
+
|
|
627
|
+
- **Content-Type**: application/json
|
|
628
|
+
- **Accept**: application/vnd.api+json
|
|
629
|
+
|
|
630
|
+
|
|
631
|
+
|
data/docs/Error.md
ADDED
data/docs/Errors.md
ADDED
data/docs/Item.md
ADDED
data/docs/ItemData.md
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# MetatronClient::ItemResultSet
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**links** | [**Links**](Links.md) | | [optional]
|
|
7
|
+
**meta** | [**ResultSetMeta**](ResultSetMeta.md) | | [optional]
|
|
8
|
+
**data** | [**Array<ItemData>**](ItemData.md) | |
|
|
9
|
+
|
|
10
|
+
|
data/docs/Links.md
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# MetatronClient::Manifestation
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**links** | [**Links**](Links.md) | | [optional]
|
|
7
|
+
**data** | [**ManifestationData**](ManifestationData.md) | |
|
|
8
|
+
|
|
9
|
+
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# MetatronClient::ManifestationAttributes
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**format** | **String** | | [optional]
|
|
7
|
+
**identifiers** | **Object** | | [optional]
|
|
8
|
+
**place_of_publication** | **String** | | [optional]
|
|
9
|
+
**publishing_status** | **String** | | [optional]
|
|
10
|
+
|
|
11
|
+
|