Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export const ConsolidateUnspentsResponse = t.array(
* @operationId express.v1.wallet.consolidateunspents
*/
export const PutConsolidateUnspents = httpRoute({
path: '/api/v1/wallet/:id/consolidateunspents',
path: '/api/v1/wallet/{id}/consolidateunspents',
method: 'PUT',
request: httpRequest({
params: ConsolidateUnspentsRequestParams,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export const ConstructPendingApprovalTxResponse = t.type({
* @operationId express.v1.pendingapproval.constructTx
*/
export const PutConstructPendingApprovalTx = httpRoute({
path: '/api/v1/pendingapprovals/:id/constructTx',
path: '/api/v1/pendingapprovals/{id}/constructTx',
method: 'PUT',
request: httpRequest({
params: ConstructPendingApprovalTxRequestParams,
Expand Down
2 changes: 1 addition & 1 deletion modules/express/src/typedRoutes/api/v1/fanoutUnspents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export const FanoutUnspentsResponse = t.type({
* @operationId express.v1.wallet.fanoutunspents
*/
export const PutFanoutUnspents = httpRoute({
path: '/api/v1/wallet/:id/fanoutunspents',
path: '/api/v1/wallet/{id}/fanoutunspents',
method: 'PUT',
request: httpRequest({
params: FanoutUnspentsRequestParams,
Expand Down
2 changes: 1 addition & 1 deletion modules/express/src/typedRoutes/api/v2/coinSignTx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ export const CoinSignTxResponse = {
* @operationId express.v2.coin.signtx
*/
export const PostCoinSignTx = httpRoute({
path: '/api/v2/:coin/signtx',
path: '/api/v2/{coin}/signtx',
method: 'POST',
request: httpRequest({
params: CoinSignTxParams,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export const LightningInitWalletResponse = {
* @operationId express.lightning.initWallet
*/
export const PostLightningInitWallet = httpRoute({
path: '/api/v2/:coin/wallet/:walletId/initwallet',
path: '/api/v2/{coin}/wallet/{walletId}/initwallet',
method: 'POST',
request: httpRequest({ params: LightningInitWalletParams, body: LightningInitWalletBody }),
response: LightningInitWalletResponse,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export const RecoverTokenResponse = t.type({
* @operationId express.v2.wallet.recovertoken
*/
export const PostWalletRecoverToken = httpRoute({
path: '/api/v2/:coin/wallet/:id/recovertoken',
path: '/api/v2/{coin}/wallet/{id}/recovertoken',
method: 'POST',
request: httpRequest({
params: RecoverTokenParams,
Expand Down
2 changes: 1 addition & 1 deletion modules/express/src/typedRoutes/api/v2/walletSignTx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ export const WalletSignTxResponse = {
* @operationId express.v2.wallet.signtx
*/
export const PostWalletSignTx = httpRoute({
path: '/api/v2/:coin/wallet/:id/signtx',
path: '/api/v2/{coin}/wallet/{id}/signtx',
method: 'POST',
request: httpRequest({
params: WalletSignTxParams,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ export const WalletTxSignTSSResponse = {
* @operationId express.v2.wallet.signtxtss
*/
export const PostWalletTxSignTSS = httpRoute({
path: '/api/v2/:coin/wallet/:id/signtxtss',
path: '/api/v2/{coin}/wallet/{id}/signtxtss',
method: 'POST',
request: httpRequest({
params: WalletTxSignTSSParams,
Expand Down
2 changes: 1 addition & 1 deletion modules/express/test/unit/typedRoutes/coinSignTx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -980,7 +980,7 @@ describe('CoinSignTx codec tests', function () {

describe('PostCoinSignTx route definition', function () {
it('should have the correct path', function () {
assert.strictEqual(PostCoinSignTx.path, '/api/v2/:coin/signtx');
assert.strictEqual(PostCoinSignTx.path, '/api/v2/{coin}/signtx');
});

it('should have the correct HTTP method', function () {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,7 @@ describe('ConsolidateUnspents codec tests', function () {

describe('PutConsolidateUnspents route definition', function () {
it('should have the correct path', function () {
assert.strictEqual(PutConsolidateUnspents.path, '/api/v1/wallet/:id/consolidateunspents');
assert.strictEqual(PutConsolidateUnspents.path, '/api/v1/wallet/{id}/consolidateunspents');
});

it('should have the correct HTTP method', function () {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ describe('ConstructPendingApprovalTx codec tests', function () {

describe('PutConstructPendingApprovalTx route definition', function () {
it('should have the correct path', function () {
assert.strictEqual(PutConstructPendingApprovalTx.path, '/api/v1/pendingapprovals/:id/constructTx');
assert.strictEqual(PutConstructPendingApprovalTx.path, '/api/v1/pendingapprovals/{id}/constructTx');
});

it('should have the correct HTTP method', function () {
Expand Down
2 changes: 1 addition & 1 deletion modules/express/test/unit/typedRoutes/fanoutUnspents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ describe('FanoutUnspents codec tests', function () {

describe('PutFanoutUnspents route definition', function () {
it('should have the correct path', function () {
assert.strictEqual(PutFanoutUnspents.path, '/api/v1/wallet/:id/fanoutunspents');
assert.strictEqual(PutFanoutUnspents.path, '/api/v1/wallet/{id}/fanoutunspents');
});

it('should have the correct HTTP method', function () {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,7 @@ describe('WalletRecoverToken codec tests', function () {

describe('PostWalletRecoverToken route definition', function () {
it('should have the correct path', function () {
assert.strictEqual(PostWalletRecoverToken.path, '/api/v2/:coin/wallet/:id/recovertoken');
assert.strictEqual(PostWalletRecoverToken.path, '/api/v2/{coin}/wallet/{id}/recovertoken');
});

it('should have the correct HTTP method', function () {
Expand Down
2 changes: 1 addition & 1 deletion modules/express/test/unit/typedRoutes/walletSignTx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -664,7 +664,7 @@ describe('WalletSignTx codec tests', function () {

describe('PostWalletSignTx route definition', function () {
it('should have the correct path', function () {
assert.strictEqual(PostWalletSignTx.path, '/api/v2/:coin/wallet/:id/signtx');
assert.strictEqual(PostWalletSignTx.path, '/api/v2/{coin}/wallet/{id}/signtx');
});

it('should have the correct HTTP method', function () {
Expand Down
2 changes: 1 addition & 1 deletion modules/express/test/unit/typedRoutes/walletTxSignTSS.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1451,7 +1451,7 @@ describe('WalletTxSignTSS codec tests', function () {

describe('PostWalletTxSignTSS route definition', function () {
it('should have the correct path', function () {
assert.strictEqual(PostWalletTxSignTSS.path, '/api/v2/:coin/wallet/:id/signtxtss');
assert.strictEqual(PostWalletTxSignTSS.path, '/api/v2/{coin}/wallet/{id}/signtxtss');
});

it('should have the correct HTTP method', function () {
Expand Down