metatron_ruby_client
MetatronClient - the Ruby gem for the Metatron Server
A primitive modelling bibliographic metadata
This SDK is automatically generated by the Swagger Codegen project:
- API version: 2016-07-15T09:42:29Z
- Package version: 0.0.1
- Build date: 2016-07-15T12:44:14.686+01:00
- Build package: class io.swagger.codegen.languages.RubyClientCodegen
Installation
Build a gem
To build the Ruby code into a gem:
gem build metatron_ruby_client.gemspec
Then either install the gem locally:
gem install ./metatron_ruby_client-0.0.1.gem
(for development, run gem install --dev ./metatron_ruby_client-0.0.1.gem
to install the development dependencies)
or publish the gem to a gem hosting service, e.g. RubyGems.
Finally add this to the Gemfile:
gem 'metatron_ruby_client', '~> 0.0.1'
Install from Git
If the Ruby gem is hosted at a git repository: https://github.com/talis/metatron_rb, then add the following in the Gemfile:
gem 'metatron_ruby_client', :git => 'https://github.com/talis/metatron_rb.git'
Include the Ruby code directly
Include the Ruby code directly using -I
as follows:
ruby -Ilib script.rb
Getting Started
Please follow the installation procedure and then run the following code:
# Load the gem
require 'metatron_ruby_client'
# Setup authorization
MetatronClient.configure do |config|
# Configure API key authorization: Authorizer
config.api_key['Authorization'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'BEARER' (defaults to nil)
#config.api_key_prefix['Authorization'] = 'BEARER'
end
api_instance = MetatronClient::DefaultApi.new
asset_id = "asset_id_example" # String |
asset_type = "asset_type_example" # String |
= "authorization_example" # String |
begin
api_instance.2_assets_asset_type_asset_id_delete(asset_id, asset_type, )
rescue MetatronClient::ApiError => e
puts "Exception when calling DefaultApi->2_assets_asset_type_asset_id_delete: #{e}"
end
Documentation for API Endpoints
All URIs are relative to https://bibliography.talis.com
Class | Method | HTTP request | Description |
---|---|---|---|
MetatronClient::DefaultApi | 2_assets_asset_type_asset_id_delete | DELETE /2/assets/assetType/assetId | |
MetatronClient::DefaultApi | 2_manifestations_get | GET /2/manifestations | |
MetatronClient::DefaultApi | 2_manifestations_manifestation_id_assets_get | GET /2/manifestations/manifestationId/assets | |
MetatronClient::DefaultApi | 2_manifestations_manifestation_id_assets_post | POST /2/manifestations/manifestationId/assets | |
MetatronClient::DefaultApi | 2_manifestations_manifestation_id_get | GET /2/manifestations/manifestationId | |
MetatronClient::DefaultApi | 2_manifestations_manifestation_id_items_tenant_code_get | GET /2/manifestations/manifestationId/items/tenantCode | |
MetatronClient::DefaultApi | 2_manifestations_manifestation_id_works_get | GET /2/manifestations/manifestationId/works | |
MetatronClient::DefaultApi | 2_works_get | GET /2/works | |
MetatronClient::DefaultApi | 2_works_work_id_assets_get | GET /2/works/workId/assets | |
MetatronClient::DefaultApi | 2_works_work_id_manifestations_get | GET /2/works/workId/manifestations | |
MetatronClient::DefaultApi | 2_works_work_id_similar_get | GET /2/works/workId/similar |
Documentation for Models
- MetatronClient::Asset
- MetatronClient::AssetData
- MetatronClient::AssetResultSet
- MetatronClient::AssetResultSetMeta
- MetatronClient::Error
- MetatronClient::Errors
- MetatronClient::ItemData
- MetatronClient::ItemResultSet
- MetatronClient::Links
- MetatronClient::ManifestationAttributes
- MetatronClient::ManifestationData
- MetatronClient::ManifestationRelationships
- MetatronClient::ManifestationResultSet
- MetatronClient::OneToManyRelationship
- MetatronClient::OneToOneRelationship
- MetatronClient::ResourceData
- MetatronClient::ResourceLink
- MetatronClient::ResultSetMeta
- MetatronClient::WorkAttributes
- MetatronClient::WorkData
- MetatronClient::WorkRelationships
- MetatronClient::WorkResultSet
Documentation for Authorization
oauth2
- Type: OAuth
- Flow: application
- Authorization URL:
- Scopes:
- su: Talis super user
- metatron:read: Read only access
- metatron:write: Write only access