All URIs are relative to http://localhost:3000
Method | HTTP request | Description |
---|---|---|
tools_get | GET /tools | Get the list of Tools. |
Array<Tool> tools_get(opts)
Get the list of Tools.
This method returns a list of all of the Tools that exist in CBRAIN. Tools encapsulate a scientific program designed to extract information from an input Userfile.
# 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::ToolsApi.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 the list of Tools.
result = api_instance.tools_get(opts)
p result
rescue CbrainClient::ApiError => e
puts "Exception when calling ToolsApi->tools_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