All URIs are relative to https://localhost:8080/RestAPI
| Method | HTTP request | Description |
|---|---|---|
| create_address | POST /addresses | Create |
| update_address | PUT /addresses | Update |
AddressPagedMetadata create_address(request)
Create
{"nickname":"Create a new address","response":"createAddressResponse.html","request":"createAddressRequest.html"}
# load the gem
require 'bf_ruby2'
api_instance = Bfwd::AddressesApi.new
request = Bfwd::CreateAddressRequest.new # CreateAddressRequest | The address object to be created.
begin
#Create
result = api_instance.create_address(request)
p result
rescue Bfwd::ApiError => e
puts "Exception when calling AddressesApi->create_address: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| request | CreateAddressRequest | The address object to be created. |
No authorization required
- Content-Type: application/json; charset=utf-8
- Accept: text/xml, application/xml, application/json; charset=utf-8
AddressPagedMetadata update_address(request)
Update
{"nickname":"Update an address","response":"updateAddressResponse.html","request":"updateAddressRequest.html"}
# load the gem
require 'bf_ruby2'
api_instance = Bfwd::AddressesApi.new
request = Bfwd::UpdateAddressRequest.new # UpdateAddressRequest | The address object to be created.
begin
#Update
result = api_instance.update_address(request)
p result
rescue Bfwd::ApiError => e
puts "Exception when calling AddressesApi->update_address: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| request | UpdateAddressRequest | The address object to be created. |
No authorization required
- Content-Type: application/json; charset=utf-8
- Accept: text/xml, application/xml, application/json; charset=utf-8