All URIs are relative to http://localhost:3000
Method | HTTP request | Description |
---|---|---|
tool_configs_get | GET /tool_configs | Get a list of tool versions installed. |
tool_configs_id_get | GET /tool_configs/{id} | Get information about a particular tool configuration |
Array<ToolConfig> tool_configs_get(opts)
Get a list of tool versions installed.
This method returns a list of tool config objects.
# load the gem
require 'cbrain_client'
# setup authorization
CbrainClient.configure do |config|
# Configure API key authorization: BrainPortalSession
config.api_key['cbrain_api_token'] = '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['cbrain_api_token'] = 'Bearer'
end
api_instance = CbrainClient::ToolConfigsApi.new
opts = {
page: 56, # Integer | Page number when paginating. See also the per_page parameter
per_page: 56 # Integer | Size of each page when paginating. See also the page parameter
}
begin
#Get a list of tool versions installed.
result = api_instance.tool_configs_get(opts)
p result
rescue CbrainClient::ApiError => e
puts "Exception when calling ToolConfigsApi->tool_configs_get: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
page | Integer | Page number when paginating. See also the per_page parameter | [optional] |
per_page | Integer | Size of each page when paginating. See also the page parameter | [optional] |
- Content-Type: application/json, application/x-www-form-urlencoded, multipart/form-data
- Accept: application/json, application/xml
ToolConfig tool_configs_id_get(id)
Get information about a particular tool configuration
Returns the information about how a particular configuration of a tool on an execution server.
# load the gem
require 'cbrain_client'
# setup authorization
CbrainClient.configure do |config|
# Configure API key authorization: BrainPortalSession
config.api_key['cbrain_api_token'] = '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['cbrain_api_token'] = 'Bearer'
end
api_instance = CbrainClient::ToolConfigsApi.new
id = 56 # Integer | the ID of the configuration
begin
#Get information about a particular tool configuration
result = api_instance.tool_configs_id_get(id)
p result
rescue CbrainClient::ApiError => e
puts "Exception when calling ToolConfigsApi->tool_configs_id_get: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
id | Integer | the ID of the configuration |
- Content-Type: application/json, application/x-www-form-urlencoded, multipart/form-data
- Accept: application/json, application/xml