All URIs are relative to https://localhost:3000/api/v1
Method | HTTP request | Description |
---|---|---|
get_positions | GET /positions | List all positions |
get_positions_uuid | GET /positions/{uuid} | Show position detail |
Array<PositionIds> get_positions
List all positions
List all positions
# load the gem
require 'bmx_api_ruby'
# setup authorization
BmxApiRuby.configure do |config|
# Configure HTTP basic authorization: base
config.username = 'YOUR USERNAME'
config.password = 'YOUR PASSWORD'
end
api_instance = BmxApiRuby::PositionsApi.new
begin
#List all positions
result = api_instance.get_positions
p result
rescue BmxApiRuby::ApiError => e
puts "Exception when calling PositionsApi->get_positions: #{e}"
end
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
PositionDetail get_positions_uuid(uuid)
Show position detail
Show position detail
# load the gem
require 'bmx_api_ruby'
# setup authorization
BmxApiRuby.configure do |config|
# Configure HTTP basic authorization: base
config.username = 'YOUR USERNAME'
config.password = 'YOUR PASSWORD'
end
api_instance = BmxApiRuby::PositionsApi.new
uuid = 56 # Integer |
begin
#Show position detail
result = api_instance.get_positions_uuid(uuid)
p result
rescue BmxApiRuby::ApiError => e
puts "Exception when calling PositionsApi->get_positions_uuid: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
uuid | Integer |
- Content-Type: Not defined
- Accept: application/json