[FEATURE] REST tool - added validated query string to the 3 methods that support it

This commit is contained in:
mDuo13
2014-11-19 14:55:30 -08:00
parent bbb45174b2
commit 7eb74525fd

View File

@@ -95,12 +95,13 @@ Request('Get Account Settings', {
Request('Update Account Settings', { Request('Update Account Settings', {
method: POST, method: POST,
path: '/v1/accounts/{:address}/settings', path: '/v1/accounts/{:address}/settings?{:query_params}',
description: 'Change the current settings for the given Ripple account.', description: 'Change the current settings for the given Ripple account.',
link: '#update-account-settings', link: '#update-account-settings',
test_only: true, test_only: true,
params: { params: {
"{:address}": DEFAULT_ADDRESS_1 "{:address}": DEFAULT_ADDRESS_1,
"{:query_params}": "validated=true"
}, },
body: { body: {
secret: "sssssssssssssssssssssssssssss", secret: "sssssssssssssssssssssssssssss",
@@ -129,7 +130,7 @@ Request('Prepare Payment', {
Request('Submit Payment', { Request('Submit Payment', {
method: POST, method: POST,
path: '/v1/accounts/{:source_address}/payments', path: '/v1/accounts/{:source_address}/payments?{:query_params}',
description: 'Send a prepared payment to the network.', description: 'Send a prepared payment to the network.',
link: '#submit-payment', link: '#submit-payment',
test_only: true, test_only: true,
@@ -159,7 +160,8 @@ Request('Submit Payment', {
} }
}, },
params: { params: {
"{:source_address}": DEFAULT_ADDRESS_1 "{:source_address}": DEFAULT_ADDRESS_1,
"{:query_params}": "validated=true"
} }
}); });
@@ -198,12 +200,13 @@ Request("Get Trustlines", {
Request("Grant Trustline", { Request("Grant Trustline", {
method: POST, method: POST,
path: "/v1/accounts/{:address}/trustlines", path: "/v1/accounts/{:address}/trustlines?{:query_params}",
description: "Add or modify a trustline from this account.", description: "Add or modify a trustline from this account.",
link: "#grant-trustline", link: "#grant-trustline",
test_only: true, test_only: true,
params: { params: {
"{:address}": DEFAULT_ADDRESS_1 "{:address}": DEFAULT_ADDRESS_1,
"{:query_params}": "validated=true"
}, },
body: { body: {
"secret": "sneThnzgBgxc3zXPG....", "secret": "sneThnzgBgxc3zXPG....",