Skip to content

Firefly III: a personal finances manager

Clean up and fix API routes.

James Cole72254746211d
diff --git a/app/Api/V1/Controllers/Autocomplete/AccountController.php b/app/Api/V1/Controllers/Autocomplete/AccountController.php
index 1bb4f62100..841dcd0c38 100644
--- a/app/Api/V1/Controllers/Autocomplete/AccountController.php
+++ b/app/Api/V1/Controllers/Autocomplete/AccountController.php
@@ -65,7 +65,7 @@ class AccountController extends Controller
/**
* Documentation for this endpoint:
- * https://api-docs.firefly-iii.org/#/autocomplete/getAccountsAC
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/autocomplete/getAccountsAC
*
* @param AutocompleteRequest $request
*
diff --git a/app/Api/V1/Controllers/Autocomplete/BillController.php b/app/Api/V1/Controllers/Autocomplete/BillController.php
index bd1caa2478..b9e0894fec 100644
--- a/app/Api/V1/Controllers/Autocomplete/BillController.php
+++ b/app/Api/V1/Controllers/Autocomplete/BillController.php
@@ -57,7 +57,7 @@ class BillController extends Controller
/**
* Documentation for this endpoint is at:
- * https://api-docs.firefly-iii.org/#/autocomplete/getBillsAC
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/autocomplete/getBillsAC
* TODO expand API to add active field.
*
* @param AutocompleteRequest $request
@@ -71,9 +71,9 @@ class BillController extends Controller
$filtered = $result->map(
static function (Bill $item) {
return [
- 'id' => (string)$item->id,
- 'name' => $item->name,
- 'active' => $item->active
+ 'id' => (string)$item->id,
+ 'name' => $item->name,
+ 'active' => $item->active,
];
}
);
diff --git a/app/Api/V1/Controllers/Autocomplete/BudgetController.php b/app/Api/V1/Controllers/Autocomplete/BudgetController.php
index 48f6b69f2a..db69b6e4ee 100644
--- a/app/Api/V1/Controllers/Autocomplete/BudgetController.php
+++ b/app/Api/V1/Controllers/Autocomplete/BudgetController.php
@@ -57,7 +57,7 @@ class BudgetController extends Controller
/**
* Documentation for this endpoint is at:
- * https://api-docs.firefly-iii.org/#/autocomplete/getBudgetsAC
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/autocomplete/getBudgetsAC
*
* @param AutocompleteRequest $request
*
diff --git a/app/Api/V1/Controllers/Autocomplete/CategoryController.php b/app/Api/V1/Controllers/Autocomplete/CategoryController.php
index e98a20e4e1..957ec7fd14 100644
--- a/app/Api/V1/Controllers/Autocomplete/CategoryController.php
+++ b/app/Api/V1/Controllers/Autocomplete/CategoryController.php
@@ -57,7 +57,7 @@ class CategoryController extends Controller
/**
* Documentation for this endpoint is at:
- * https://api-docs.firefly-iii.org/#/autocomplete/getCategoriesAC
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/autocomplete/getCategoriesAC
*
* @param AutocompleteRequest $request
*
diff --git a/app/Api/V1/Controllers/Autocomplete/CurrencyController.php b/app/Api/V1/Controllers/Autocomplete/CurrencyController.php
index 50fd139f90..c287191a23 100644
--- a/app/Api/V1/Controllers/Autocomplete/CurrencyController.php
+++ b/app/Api/V1/Controllers/Autocomplete/CurrencyController.php
@@ -57,7 +57,7 @@ class CurrencyController extends Controller
/**
* Documentation for this endpoint is at:
- * https://api-docs.firefly-iii.org/#/autocomplete/getCurrenciesAC
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/autocomplete/getCurrenciesAC
*
* @param AutocompleteRequest $request
*
@@ -85,7 +85,7 @@ class CurrencyController extends Controller
/**
* Documentation for this endpoint is at:
- * https://api-docs.firefly-iii.org/#/autocomplete/getCurrenciesCodeAC
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/autocomplete/getCurrenciesCodeAC
*
* @param AutocompleteRequest $request
*
diff --git a/app/Api/V1/Controllers/Autocomplete/ObjectGroupController.php b/app/Api/V1/Controllers/Autocomplete/ObjectGroupController.php
index 10b119dd71..f0a206e4a7 100644
--- a/app/Api/V1/Controllers/Autocomplete/ObjectGroupController.php
+++ b/app/Api/V1/Controllers/Autocomplete/ObjectGroupController.php
@@ -57,7 +57,7 @@ class ObjectGroupController extends Controller
/**
* Documentation for this endpoint is at:
- * https://api-docs.firefly-iii.org/#/autocomplete/getObjectGroupsAC
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/autocomplete/getObjectGroupsAC
*
* @param AutocompleteRequest $request
*
diff --git a/app/Api/V1/Controllers/Autocomplete/PiggyBankController.php b/app/Api/V1/Controllers/Autocomplete/PiggyBankController.php
index 65d784f501..2cfeb90ac0 100644
--- a/app/Api/V1/Controllers/Autocomplete/PiggyBankController.php
+++ b/app/Api/V1/Controllers/Autocomplete/PiggyBankController.php
@@ -61,7 +61,7 @@ class PiggyBankController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/autocomplete/getPiggiesAC
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/autocomplete/getPiggiesAC
*
* @param AutocompleteRequest $request
*
@@ -76,15 +76,18 @@ class PiggyBankController extends Controller
/** @var PiggyBank $piggy */
foreach ($piggies as $piggy) {
- $currency = $this->accountRepository->getAccountCurrency($piggy->account) ?? $defaultCurrency;
- $response[] = [
+ $currency = $this->accountRepository->getAccountCurrency($piggy->account) ?? $defaultCurrency;
+ $objectGroup = $piggy->objectGroups()->first();
+ $response[] = [
'id' => (string)$piggy->id,
'name' => $piggy->name,
- 'currency_id' => $currency->id,
+ 'currency_id' => (string)$currency->id,
'currency_name' => $currency->name,
'currency_code' => $currency->code,
'currency_symbol' => $currency->symbol,
'currency_decimal_places' => $currency->decimal_places,
+ 'object_group_id' => null === $objectGroup ? null : (string)$objectGroup->id,
+ 'object_group_title' => $objectGroup?->title,
];
}
@@ -93,7 +96,7 @@ class PiggyBankController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/autocomplete/getPiggiesBalanceAC
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/autocomplete/getPiggiesBalanceAC
*
* @param AutocompleteRequest $request
*
@@ -109,6 +112,7 @@ class PiggyBankController extends Controller
foreach ($piggies as $piggy) {
$currency = $this->accountRepository->getAccountCurrency($piggy->account) ?? $defaultCurrency;
$currentAmount = $this->piggyRepository->getRepetition($piggy)->currentamount ?? '0';
+ $objectGroup = $piggy->objectGroups()->first();
$response[] = [
'id' => (string)$piggy->id,
'name' => $piggy->name,
@@ -118,11 +122,13 @@ class PiggyBankController extends Controller
app('amount')->formatAnything($currency, $currentAmount, false),
app('amount')->formatAnything($currency, $piggy->targetamount, false),
),
- 'currency_id' => $currency->id,
+ 'currency_id' => (string)$currency->id,
'currency_name' => $currency->name,
'currency_code' => $currency->code,
'currency_symbol' => $currency->symbol,
'currency_decimal_places' => $currency->decimal_places,
+ 'object_group_id' => null === $objectGroup ? null : (string)$objectGroup->id,
+ 'object_group_title' => $objectGroup?->title,
];
}
diff --git a/app/Api/V1/Controllers/Autocomplete/RecurrenceController.php b/app/Api/V1/Controllers/Autocomplete/RecurrenceController.php
index 79a104ac91..c19de8e24c 100644
--- a/app/Api/V1/Controllers/Autocomplete/RecurrenceController.php
+++ b/app/Api/V1/Controllers/Autocomplete/RecurrenceController.php
@@ -54,7 +54,7 @@ class RecurrenceController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/autocomplete/getRecurringAC
+ * * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/autocomplete/getRecurringAC
*
* @param AutocompleteRequest $request
*
diff --git a/app/Api/V1/Controllers/Autocomplete/RuleController.php b/app/Api/V1/Controllers/Autocomplete/RuleController.php
index 1ab2cd1399..4a8c503d10 100644
--- a/app/Api/V1/Controllers/Autocomplete/RuleController.php
+++ b/app/Api/V1/Controllers/Autocomplete/RuleController.php
@@ -54,7 +54,7 @@ class RuleController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/autocomplete/getRulesAC
+ * * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/autocomplete/getRulesAC
*
* @param AutocompleteRequest $request
*
diff --git a/app/Api/V1/Controllers/Autocomplete/RuleGroupController.php b/app/Api/V1/Controllers/Autocomplete/RuleGroupController.php
index 10e6fd3697..249c971faa 100644
--- a/app/Api/V1/Controllers/Autocomplete/RuleGroupController.php
+++ b/app/Api/V1/Controllers/Autocomplete/RuleGroupController.php
@@ -54,7 +54,7 @@ class RuleGroupController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/autocomplete/getRuleGroupsAC
+ * * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/autocomplete/getRuleGroupsAC
*
* @param AutocompleteRequest $request
*
diff --git a/app/Api/V1/Controllers/Autocomplete/TagController.php b/app/Api/V1/Controllers/Autocomplete/TagController.php
index 0175aa138c..4e80ce5531 100644
--- a/app/Api/V1/Controllers/Autocomplete/TagController.php
+++ b/app/Api/V1/Controllers/Autocomplete/TagController.php
@@ -57,7 +57,7 @@ class TagController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/autocomplete/getTagAC
+ * * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/autocomplete/getTagAC
*
* @param AutocompleteRequest $request
*
diff --git a/app/Api/V1/Controllers/Autocomplete/TransactionController.php b/app/Api/V1/Controllers/Autocomplete/TransactionController.php
index dfb9f00f22..fe8a5a2099 100644
--- a/app/Api/V1/Controllers/Autocomplete/TransactionController.php
+++ b/app/Api/V1/Controllers/Autocomplete/TransactionController.php
@@ -62,7 +62,7 @@ class TransactionController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/autocomplete/getTransactionsAC
+ * * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/autocomplete/getTransactionsAC
*
* @param AutocompleteRequest $request
*
@@ -92,7 +92,7 @@ class TransactionController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/autocomplete/getTransactionsIDAC
+ * * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/autocomplete/getTransactionsIDAC
*
* @param AutocompleteRequest $request
*
diff --git a/app/Api/V1/Controllers/Autocomplete/TransactionTypeController.php b/app/Api/V1/Controllers/Autocomplete/TransactionTypeController.php
index 036b614cad..5b0b1f46f6 100644
--- a/app/Api/V1/Controllers/Autocomplete/TransactionTypeController.php
+++ b/app/Api/V1/Controllers/Autocomplete/TransactionTypeController.php
@@ -53,7 +53,7 @@ class TransactionTypeController extends Controller
/**
* This endpoint is documented at
- * https://api-docs.firefly-iii.org/#/autocomplete/getTransactionTypesAC
+ * * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/autocomplete/getTransactionTypesAC
*
* @param AutocompleteRequest $request
*
diff --git a/app/Api/V1/Controllers/Chart/AccountController.php b/app/Api/V1/Controllers/Chart/AccountController.php
index abbc314245..466afbacb7 100644
--- a/app/Api/V1/Controllers/Chart/AccountController.php
+++ b/app/Api/V1/Controllers/Chart/AccountController.php
@@ -74,7 +74,7 @@ class AccountController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/charts/getChartAccountOverview
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/charts/getChartAccountOverview
*
* @param DateRequest $request
*
diff --git a/app/Api/V1/Controllers/Data/Bulk/AccountController.php b/app/Api/V1/Controllers/Data/Bulk/AccountController.php
deleted file mode 100644
index defb3596c5..0000000000
--- a/app/Api/V1/Controllers/Data/Bulk/AccountController.php
+++ /dev/null
@@ -1,78 +0,0 @@
-<?php
-
-/*
- * AccountController.php
- * Copyright (c) 2021 [email protected]
- *
- * This file is part of Firefly III (https://github.com/firefly-iii).
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <https://www.gnu.org/licenses/>.
- */
-
-declare(strict_types=1);
-
-namespace FireflyIII\Api\V1\Controllers\Data\Bulk;
-
-use FireflyIII\Api\V1\Controllers\Controller;
-use FireflyIII\Api\V1\Requests\Data\Bulk\MoveTransactionsRequest;
-use FireflyIII\Repositories\Account\AccountRepositoryInterface;
-use FireflyIII\Services\Internal\Destroy\AccountDestroyService;
-use Illuminate\Http\JsonResponse;
-
-/**
- * Class AccountController
- *
- * @deprecated
- */
-class AccountController extends Controller
-{
- private AccountRepositoryInterface $repository;
-
- /**
- *
- */
- public function __construct()
- {
- parent::__construct();
- $this->middleware(
- function ($request, $next) {
- $this->repository = app(AccountRepositoryInterface::class);
- $this->repository->setUser(auth()->user());
-
- return $next($request);
- }
- );
- }
-
- /**
- * This endpoint is deprecated and not documented.
- *
- * @param MoveTransactionsRequest $request
- *
- * @return JsonResponse
- * @deprecated
- */
- public function moveTransactions(MoveTransactionsRequest $request): JsonResponse
- {
- $accountIds = $request->getAll();
- $original = $this->repository->find($accountIds['original_account']);
- $destination = $this->repository->find($accountIds['destination_account']);
-
- /** @var AccountDestroyService $service */
- $service = app(AccountDestroyService::class);
- $service->moveTransactions($original, $destination);
-
- return response()->json([], 204);
- }
-}
diff --git a/app/Api/V1/Controllers/Data/Bulk/TransactionController.php b/app/Api/V1/Controllers/Data/Bulk/TransactionController.php
index 77e898306c..ff4528fe82 100644
--- a/app/Api/V1/Controllers/Data/Bulk/TransactionController.php
+++ b/app/Api/V1/Controllers/Data/Bulk/TransactionController.php
@@ -62,6 +62,7 @@ class TransactionController extends Controller
/**
* This endpoint is documented at:
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/data/bulkUpdateTransactions
*
* @param TransactionRequest $request
*
diff --git a/app/Api/V1/Controllers/Data/DestroyController.php b/app/Api/V1/Controllers/Data/DestroyController.php
index 6809353a61..18de6b961c 100644
--- a/app/Api/V1/Controllers/Data/DestroyController.php
+++ b/app/Api/V1/Controllers/Data/DestroyController.php
@@ -56,7 +56,7 @@ class DestroyController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/data/destroyData
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/data/destroyData
*
* @param DestroyRequest $request
*
diff --git a/app/Api/V1/Controllers/Data/Export/ExportController.php b/app/Api/V1/Controllers/Data/Export/ExportController.php
index 187ef28c4d..0363438b09 100644
--- a/app/Api/V1/Controllers/Data/Export/ExportController.php
+++ b/app/Api/V1/Controllers/Data/Export/ExportController.php
@@ -55,7 +55,7 @@ class ExportController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/data/exportAccounts
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/data/exportAccounts
*
* @param ExportRequest $request
*
@@ -99,7 +99,7 @@ class ExportController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/data/exportBills
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/data/exportBills
*
* @param ExportRequest $request
*
@@ -115,7 +115,7 @@ class ExportController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/data/exportBudgets
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/data/exportBudgets
*
* @param ExportRequest $request
*
@@ -131,7 +131,7 @@ class ExportController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/data/exportCategories
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/data/exportCategories
*
* @param ExportRequest $request
*
@@ -147,7 +147,7 @@ class ExportController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/data/exportPiggies
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/data/exportPiggies
*
* @param ExportRequest $request
*
@@ -163,7 +163,7 @@ class ExportController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/data/exportRecurring
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/data/exportRecurring
*
* @param ExportRequest $request
*
@@ -179,7 +179,7 @@ class ExportController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/data/exportRules
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/data/exportRules
*
* @param ExportRequest $request
*
@@ -195,7 +195,7 @@ class ExportController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/data/exportTags
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/data/exportTags
*
* @param ExportRequest $request
*
@@ -211,7 +211,7 @@ class ExportController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/data/exportTransactions
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/data/exportTransactions
*
* @param ExportRequest $request
*
diff --git a/app/Api/V1/Controllers/Data/PurgeController.php b/app/Api/V1/Controllers/Data/PurgeController.php
index b8db2215b6..15023bca3b 100644
--- a/app/Api/V1/Controllers/Data/PurgeController.php
+++ b/app/Api/V1/Controllers/Data/PurgeController.php
@@ -40,6 +40,9 @@ use Illuminate\Http\JsonResponse;
class PurgeController extends Controller
{
/**
+ * TODO cleanup and use repositories.
+ * This endpoint is documented at:
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/data/purgeData
* @return JsonResponse
*/
public function purge(): JsonResponse
@@ -47,7 +50,6 @@ class PurgeController extends Controller
$user = auth()->user();
// some manual code, too lazy to call all repositories.
- //,transactions,withdrawals,deposits,transfers';
// budgets:
Budget::whereUserId($user->id)->onlyTrashed()->forceDelete();
diff --git a/app/Api/V1/Controllers/Insight/Expense/AccountController.php b/app/Api/V1/Controllers/Insight/Expense/AccountController.php
index 1f9510e262..c58a97e33d 100644
--- a/app/Api/V1/Controllers/Insight/Expense/AccountController.php
+++ b/app/Api/V1/Controllers/Insight/Expense/AccountController.php
@@ -74,7 +74,7 @@ class AccountController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/insight/insightExpenseAsset
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/insight/insightExpenseAsset
*
* @param GenericRequest $request
*
@@ -105,7 +105,7 @@ class AccountController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/insight/insightExpenseExpense
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/insight/insightExpenseExpense
*
* @param GenericRequest $request
*
diff --git a/app/Api/V1/Controllers/Insight/Expense/BillController.php b/app/Api/V1/Controllers/Insight/Expense/BillController.php
index 84b40d3ba2..37e53893de 100644
--- a/app/Api/V1/Controllers/Insight/Expense/BillController.php
+++ b/app/Api/V1/Controllers/Insight/Expense/BillController.php
@@ -57,7 +57,7 @@ class BillController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/insight/insightExpenseBill
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/insight/insightExpenseBill
*
* Expenses per bill, possibly filtered by bill and account.
*
@@ -120,7 +120,7 @@ class BillController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/insight/insightExpenseNoBill
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/insight/insightExpenseNoBill
*
* Expenses for no bill filtered by account.
*
diff --git a/app/Api/V1/Controllers/Insight/Expense/BudgetController.php b/app/Api/V1/Controllers/Insight/Expense/BudgetController.php
index fc0578a002..c71cd8e637 100644
--- a/app/Api/V1/Controllers/Insight/Expense/BudgetController.php
+++ b/app/Api/V1/Controllers/Insight/Expense/BudgetController.php
@@ -66,7 +66,7 @@ class BudgetController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/insight/insightExpenseBudget
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/insight/insightExpenseBudget
*
* @param GenericRequest $request
*
@@ -103,7 +103,7 @@ class BudgetController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/insight/insightExpenseNoBudget
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/insight/insightExpenseNoBudget
*
* @param GenericRequest $request
*
diff --git a/app/Api/V1/Controllers/Insight/Expense/CategoryController.php b/app/Api/V1/Controllers/Insight/Expense/CategoryController.php
index 32a60c321f..962418a7e1 100644
--- a/app/Api/V1/Controllers/Insight/Expense/CategoryController.php
+++ b/app/Api/V1/Controllers/Insight/Expense/CategoryController.php
@@ -67,7 +67,7 @@ class CategoryController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/insight/insightTransferCategory
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/insight/insightTransferCategory
*
* @param GenericRequest $request
*
@@ -104,7 +104,7 @@ class CategoryController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/insight/insightTransferNoCategory
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/insight/insightTransferNoCategory
*
* @param GenericRequest $request
*
diff --git a/app/Api/V1/Controllers/Insight/Expense/PeriodController.php b/app/Api/V1/Controllers/Insight/Expense/PeriodController.php
index 4a97dea7bb..0814a1467c 100644
--- a/app/Api/V1/Controllers/Insight/Expense/PeriodController.php
+++ b/app/Api/V1/Controllers/Insight/Expense/PeriodController.php
@@ -36,7 +36,7 @@ class PeriodController extends Controller
{
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/insight/insightExpenseTotal
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/insight/insightExpenseTotal
*
* @param GenericRequest $request
*
diff --git a/app/Api/V1/Controllers/Insight/Expense/TagController.php b/app/Api/V1/Controllers/Insight/Expense/TagController.php
index 76aa7bd795..4101391089 100644
--- a/app/Api/V1/Controllers/Insight/Expense/TagController.php
+++ b/app/Api/V1/Controllers/Insight/Expense/TagController.php
@@ -56,7 +56,7 @@ class TagController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/insight/insightExpenseNoTag
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/insight/insightExpenseNoTag
*
* Expenses for no tag filtered by account.
*
@@ -109,7 +109,7 @@ class TagController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/insight/insightExpenseTag
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/insight/insightExpenseTag
*
* Expenses per tag, possibly filtered by tag and account.
*
diff --git a/app/Api/V1/Controllers/Insight/Income/AccountController.php b/app/Api/V1/Controllers/Insight/Income/AccountController.php
index 4ea6a591cc..6a449744a9 100644
--- a/app/Api/V1/Controllers/Insight/Income/AccountController.php
+++ b/app/Api/V1/Controllers/Insight/Income/AccountController.php
@@ -37,7 +37,7 @@ use Illuminate\Http\JsonResponse;
* Class AccountController
*
* Shows income information grouped or limited by date.
- * Ie. all income grouped by account + currency.
+ * I.e. all income grouped by account + currency.
*/
class AccountController extends Controller
{
@@ -74,7 +74,7 @@ class AccountController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/insight/insightIncomeAsset
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/insight/insightIncomeAsset
*
* @param GenericRequest $request
*
@@ -104,7 +104,7 @@ class AccountController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/insight/insightIncomeRevenue
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/insight/insightIncomeRevenue
*
* @param GenericRequest $request
*
diff --git a/app/Api/V1/Controllers/Insight/Income/CategoryController.php b/app/Api/V1/Controllers/Insight/Income/CategoryController.php
index 898bcac9c7..40e1c42031 100644
--- a/app/Api/V1/Controllers/Insight/Income/CategoryController.php
+++ b/app/Api/V1/Controllers/Insight/Income/CategoryController.php
@@ -67,7 +67,7 @@ class CategoryController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/insight/insightIncomeCategory
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/insight/insightIncomeCategory
*
* @param GenericRequest $request
*
@@ -104,7 +104,7 @@ class CategoryController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/insight/insightIncomeNoCategory
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/insight/insightIncomeNoCategory
*
* @param GenericRequest $request
*
diff --git a/app/Api/V1/Controllers/Insight/Income/PeriodController.php b/app/Api/V1/Controllers/Insight/Income/PeriodController.php
index e748b4a5db..11f9ac967b 100644
--- a/app/Api/V1/Controllers/Insight/Income/PeriodController.php
+++ b/app/Api/V1/Controllers/Insight/Income/PeriodController.php
@@ -36,7 +36,7 @@ class PeriodController extends Controller
{
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/insight/insightIncomeTotal
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/insight/insightIncomeTotal
*
* @param GenericRequest $request
*
diff --git a/app/Api/V1/Controllers/Insight/Income/TagController.php b/app/Api/V1/Controllers/Insight/Income/TagController.php
index 31e61ade91..cad86cb2fb 100644
--- a/app/Api/V1/Controllers/Insight/Income/TagController.php
+++ b/app/Api/V1/Controllers/Insight/Income/TagController.php
@@ -57,7 +57,7 @@ class TagController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/insight/insightIncomeTag
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/insight/insightIncomeTag
*
* Expenses for no tag filtered by account.
*
@@ -113,7 +113,7 @@ class TagController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/insight/insightIncomeNoTag
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/insight/insightIncomeNoTag
*
* Expenses per tag, possibly filtered by tag and account.
*
diff --git a/app/Api/V1/Controllers/Insight/Transfer/AccountController.php b/app/Api/V1/Controllers/Insight/Transfer/AccountController.php
index 451bc60c5a..3e8bdff2ee 100644
--- a/app/Api/V1/Controllers/Insight/Transfer/AccountController.php
+++ b/app/Api/V1/Controllers/Insight/Transfer/AccountController.php
@@ -59,7 +59,7 @@ class AccountController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/insight/insightTransfers
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/insight/insightTransfers
*
* @param GenericRequest $request
*
diff --git a/app/Api/V1/Controllers/Insight/Transfer/CategoryController.php b/app/Api/V1/Controllers/Insight/Transfer/CategoryController.php
index 93e24ee0d0..a38ee6122b 100644
--- a/app/Api/V1/Controllers/Insight/Transfer/CategoryController.php
+++ b/app/Api/V1/Controllers/Insight/Transfer/CategoryController.php
@@ -66,7 +66,7 @@ class CategoryController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/insight/insightTransferCategory
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/insight/insightTransferCategory
*
* @param GenericRequest $request
*
@@ -103,7 +103,7 @@ class CategoryController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/insight/insightTransferNoCategory
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/insight/insightTransferNoCategory
*
* @param GenericRequest $request
*
diff --git a/app/Api/V1/Controllers/Insight/Transfer/PeriodController.php b/app/Api/V1/Controllers/Insight/Transfer/PeriodController.php
index 7f57c15593..6a0167296c 100644
--- a/app/Api/V1/Controllers/Insight/Transfer/PeriodController.php
+++ b/app/Api/V1/Controllers/Insight/Transfer/PeriodController.php
@@ -36,7 +36,7 @@ class PeriodController extends Controller
{
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/insight/insightTransferTotal
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/insight/insightTransferTotal
*
* @param GenericRequest $request
*
diff --git a/app/Api/V1/Controllers/Insight/Transfer/TagController.php b/app/Api/V1/Controllers/Insight/Transfer/TagController.php
index 78d5b5e282..50f977f3fc 100644
--- a/app/Api/V1/Controllers/Insight/Transfer/TagController.php
+++ b/app/Api/V1/Controllers/Insight/Transfer/TagController.php
@@ -56,7 +56,7 @@ class TagController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/insight/insightTransferNoTag
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/insight/insightTransferNoTag
*
* @param GenericRequest $request
*
@@ -110,7 +110,7 @@ class TagController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/insight/insightTransferTag
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/insight/insightTransferTag
*
* Transfers per tag, possibly filtered by tag and account.
*
diff --git a/app/Api/V1/Controllers/Models/Account/DestroyController.php b/app/Api/V1/Controllers/Models/Account/DestroyController.php
index 5430bd68df..b9708cc900 100644
--- a/app/Api/V1/Controllers/Models/Account/DestroyController.php
+++ b/app/Api/V1/Controllers/Models/Account/DestroyController.php
@@ -57,7 +57,7 @@ class DestroyController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/accounts/deleteAccount
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/accounts/deleteAccount
*
* Remove the specified resource from storage.
*
diff --git a/app/Api/V1/Controllers/Models/Account/ListController.php b/app/Api/V1/Controllers/Models/Account/ListController.php
index 866779725a..1a44215479 100644
--- a/app/Api/V1/Controllers/Models/Account/ListController.php
+++ b/app/Api/V1/Controllers/Models/Account/ListController.php
@@ -71,7 +71,7 @@ class ListController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/accounts/listAttachmentByAccount
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/accounts/listAttachmentByAccount
*
* @param Account $account
*
@@ -104,7 +104,7 @@ class ListController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/accounts/listPiggyBankByAccount
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/accounts/listPiggyBankByAccount
*
* @param Account $account
*
@@ -141,7 +141,7 @@ class ListController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/accounts/listTransactionByAccount
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/accounts/listTransactionByAccount
*
* Show all transaction groups related to the account.
*
diff --git a/app/Api/V1/Controllers/Models/Account/ShowController.php b/app/Api/V1/Controllers/Models/Account/ShowController.php
index f251faaf4f..66d688048d 100644
--- a/app/Api/V1/Controllers/Models/Account/ShowController.php
+++ b/app/Api/V1/Controllers/Models/Account/ShowController.php
@@ -67,7 +67,7 @@ class ShowController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/accounts/listAccount
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/accounts/listAccount
*
* Display a listing of the resource.
*
@@ -113,7 +113,7 @@ class ShowController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/accounts/getAccount
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/accounts/getAccount
*
* Show single instance.
*
diff --git a/app/Api/V1/Controllers/Models/Account/StoreController.php b/app/Api/V1/Controllers/Models/Account/StoreController.php
index 0e4d530018..d2e7b23731 100644
--- a/app/Api/V1/Controllers/Models/Account/StoreController.php
+++ b/app/Api/V1/Controllers/Models/Account/StoreController.php
@@ -59,7 +59,7 @@ class StoreController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/accounts/storeAccount
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/accounts/storeAccount
*
* Store a new instance.
*
diff --git a/app/Api/V1/Controllers/Models/Account/UpdateController.php b/app/Api/V1/Controllers/Models/Account/UpdateController.php
index 5c90221b79..b0fa93d100 100644
--- a/app/Api/V1/Controllers/Models/Account/UpdateController.php
+++ b/app/Api/V1/Controllers/Models/Account/UpdateController.php
@@ -62,7 +62,7 @@ class UpdateController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/accounts/updateAccount
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/accounts/updateAccount
*
* Update account.
*
diff --git a/app/Api/V1/Controllers/Models/Attachment/DestroyController.php b/app/Api/V1/Controllers/Models/Attachment/DestroyController.php
index 287f621df8..813ab8ede0 100644
--- a/app/Api/V1/Controllers/Models/Attachment/DestroyController.php
+++ b/app/Api/V1/Controllers/Models/Attachment/DestroyController.php
@@ -60,7 +60,7 @@ class DestroyController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/attachments/deleteAttachment
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/attachments/deleteAttachment
*
* Remove the specified resource from storage.
*
diff --git a/app/Api/V1/Controllers/Models/Attachment/ShowController.php b/app/Api/V1/Controllers/Models/Attachment/ShowController.php
index aacb5b461f..f72af561e1 100644
--- a/app/Api/V1/Controllers/Models/Attachment/ShowController.php
+++ b/app/Api/V1/Controllers/Models/Attachment/ShowController.php
@@ -67,7 +67,7 @@ class ShowController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/attachments/downloadAttachment
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/attachments/downloadAttachment
*
* Download an attachment.
*
@@ -112,7 +112,7 @@ class ShowController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/attachments/listAttachment
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/attachments/listAttachment
*
* Display a listing of the resource.
*
@@ -148,7 +148,7 @@ class ShowController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/attachments/getAttachment
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/attachments/getAttachment
*
* Display the specified resource.
*
diff --git a/app/Api/V1/Controllers/Models/Attachment/StoreController.php b/app/Api/V1/Controllers/Models/Attachment/StoreController.php
index 8fd517f65c..fbd14b568e 100644
--- a/app/Api/V1/Controllers/Models/Attachment/StoreController.php
+++ b/app/Api/V1/Controllers/Models/Attachment/StoreController.php
@@ -67,7 +67,7 @@ class StoreController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/attachments/uploadAttachment
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/attachments/uploadAttachment
*
* Store a newly created resource in storage.
*
diff --git a/app/Api/V1/Controllers/Models/Attachment/UpdateController.php b/app/Api/V1/Controllers/Models/Attachment/UpdateController.php
index fc33e64d85..508465ae15 100644
--- a/app/Api/V1/Controllers/Models/Attachment/UpdateController.php
+++ b/app/Api/V1/Controllers/Models/Attachment/UpdateController.php
@@ -63,7 +63,7 @@ class UpdateController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/attachments/updateAttachment
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/attachments/updateAttachment
*
* Update the specified resource in storage.
*
diff --git a/app/Api/V1/Controllers/Models/AvailableBudget/ShowController.php b/app/Api/V1/Controllers/Models/AvailableBudget/ShowController.php
index fef07373de..1d49c7dcf3 100644
--- a/app/Api/V1/Controllers/Models/AvailableBudget/ShowController.php
+++ b/app/Api/V1/Controllers/Models/AvailableBudget/ShowController.php
@@ -64,7 +64,7 @@ class ShowController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/available_budgets/getAvailableBudget
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/available_budgets/getAvailableBudget
*
* Display a listing of the resource.
*
@@ -103,7 +103,7 @@ class ShowController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/available_budgets/getAvailableBudget
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/available_budgets/getAvailableBudget
*
* Display the specified resource.
*
diff --git a/app/Api/V1/Controllers/Models/Bill/DestroyController.php b/app/Api/V1/Controllers/Models/Bill/DestroyController.php
index bffce79962..31d37fef26 100644
--- a/app/Api/V1/Controllers/Models/Bill/DestroyController.php
+++ b/app/Api/V1/Controllers/Models/Bill/DestroyController.php
@@ -55,7 +55,7 @@ class DestroyController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/bills/deleteBill
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/bills/deleteBill
*
* Remove the specified resource from storage.
*
diff --git a/app/Api/V1/Controllers/Models/Bill/ListController.php b/app/Api/V1/Controllers/Models/Bill/ListController.php
index eb39fff345..02d9cca8a9 100644
--- a/app/Api/V1/Controllers/Models/Bill/ListController.php
+++ b/app/Api/V1/Controllers/Models/Bill/ListController.php
@@ -68,7 +68,7 @@ class ListController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/bills/listAttachmentByBill
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/bills/listAttachmentByBill
*
* Display a listing of the resource.
*
@@ -103,7 +103,7 @@ class ListController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/bills/listRuleByBill
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/bills/listRuleByBill
*
* List all of them.
*
@@ -140,7 +140,7 @@ class ListController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/bills/listTransactionByBill
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/bills/listTransactionByBill
*
* Show all transactions.
*
diff --git a/app/Api/V1/Controllers/Models/Bill/ShowController.php b/app/Api/V1/Controllers/Models/Bill/ShowController.php
index 43bd076f5a..e243af764b 100644
--- a/app/Api/V1/Controllers/Models/Bill/ShowController.php
+++ b/app/Api/V1/Controllers/Models/Bill/ShowController.php
@@ -61,7 +61,7 @@ class ShowController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/bills/listBill
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/bills/listBill
*
* Display a listing of the resource.
*
@@ -91,7 +91,7 @@ class ShowController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/bills/getBill
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/bills/getBill
*
* Show the specified bill.
*
diff --git a/app/Api/V1/Controllers/Models/Bill/StoreController.php b/app/Api/V1/Controllers/Models/Bill/StoreController.php
index 1e05b2eccf..3f6099f9da 100644
--- a/app/Api/V1/Controllers/Models/Bill/StoreController.php
+++ b/app/Api/V1/Controllers/Models/Bill/StoreController.php
@@ -61,7 +61,7 @@ class StoreController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/bills/storeBill
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/bills/storeBill
*
* Store a bill.
*
diff --git a/app/Api/V1/Controllers/Models/Bill/UpdateController.php b/app/Api/V1/Controllers/Models/Bill/UpdateController.php
index d02eba7979..235d541648 100644
--- a/app/Api/V1/Controllers/Models/Bill/UpdateController.php
+++ b/app/Api/V1/Controllers/Models/Bill/UpdateController.php
@@ -58,7 +58,7 @@ class UpdateController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/bills/updateBill
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/bills/updateBill
*
* Update a bill.
*
diff --git a/app/Api/V1/Controllers/Models/Budget/DestroyController.php b/app/Api/V1/Controllers/Models/Budget/DestroyController.php
index a8119c1e93..44cb838f98 100644
--- a/app/Api/V1/Controllers/Models/Budget/DestroyController.php
+++ b/app/Api/V1/Controllers/Models/Budget/DestroyController.php
@@ -55,7 +55,7 @@ class DestroyController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/budgets/deleteBudget
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/budgets/deleteBudget
*
* Remove the specified resource from storage.
*
diff --git a/app/Api/V1/Controllers/Models/Budget/ListController.php b/app/Api/V1/Controllers/Models/Budget/ListController.php
index 7f8911b7c7..4f8e495d30 100644
--- a/app/Api/V1/Controllers/Models/Budget/ListController.php
+++ b/app/Api/V1/Controllers/Models/Budget/ListController.php
@@ -72,7 +72,7 @@ class ListController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/budgets/listAttachmentByBudget
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/budgets/listAttachmentByBudget
*
* @param Budget $budget
*
@@ -105,7 +105,7 @@ class ListController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/budgets/listBudgetLimitByBudget
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/budgets/listBudgetLimitByBudget
*
* Display a listing of the resource.
*
@@ -137,7 +137,7 @@ class ListController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/budgets/listTransactionByBudget
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/budgets/listTransactionByBudget
*
* Show all transactions.
*
@@ -203,7 +203,7 @@ class ListController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/budgets/listTransactionWithoutBudget
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/budgets/listTransactionWithoutBudget
*
* Show all transactions.
*
diff --git a/app/Api/V1/Controllers/Models/Budget/ShowController.php b/app/Api/V1/Controllers/Models/Budget/ShowController.php
index 80f413acf2..b8b9b0b1f1 100644
--- a/app/Api/V1/Controllers/Models/Budget/ShowController.php
+++ b/app/Api/V1/Controllers/Models/Budget/ShowController.php
@@ -65,7 +65,7 @@ class ShowController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/budgets/listBudget
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/budgets/listBudget
*
* Display a listing of the resource.
*
diff --git a/app/Api/V1/Controllers/Models/Budget/StoreController.php b/app/Api/V1/Controllers/Models/Budget/StoreController.php
index e8bc6269ca..ffef04aa0d 100644
--- a/app/Api/V1/Controllers/Models/Budget/StoreController.php
+++ b/app/Api/V1/Controllers/Models/Budget/StoreController.php
@@ -58,7 +58,7 @@ class StoreController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/budgets/storeBudget
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/budgets/storeBudget
*
* Store a budget.
*
diff --git a/app/Api/V1/Controllers/Models/Budget/UpdateController.php b/app/Api/V1/Controllers/Models/Budget/UpdateController.php
index a8efcd80bb..c0a60ee963 100644
--- a/app/Api/V1/Controllers/Models/Budget/UpdateController.php
+++ b/app/Api/V1/Controllers/Models/Budget/UpdateController.php
@@ -58,7 +58,7 @@ class UpdateController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/budgets/updateBudget
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/budgets/updateBudget
*
* Update a budget.
*
diff --git a/app/Api/V1/Controllers/Models/BudgetLimit/DestroyController.php b/app/Api/V1/Controllers/Models/BudgetLimit/DestroyController.php
index 2f1b55e2c2..6faa20d0ec 100644
--- a/app/Api/V1/Controllers/Models/BudgetLimit/DestroyController.php
+++ b/app/Api/V1/Controllers/Models/BudgetLimit/DestroyController.php
@@ -60,7 +60,7 @@ class DestroyController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/budgets/deleteBudgetLimit
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/budgets/deleteBudgetLimit
*
* Remove the specified resource from storage.
*
diff --git a/app/Api/V1/Controllers/Models/BudgetLimit/ListController.php b/app/Api/V1/Controllers/Models/BudgetLimit/ListController.php
index e4860564b2..202f9d2033 100644
--- a/app/Api/V1/Controllers/Models/BudgetLimit/ListController.php
+++ b/app/Api/V1/Controllers/Models/BudgetLimit/ListController.php
@@ -68,7 +68,7 @@ class ListController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/budgets/listTransactionByBudgetLimit
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/budgets/listTransactionByBudgetLimit
* Show all transactions.
*
* @param Request $request
diff --git a/app/Api/V1/Controllers/Models/BudgetLimit/ShowController.php b/app/Api/V1/Controllers/Models/BudgetLimit/ShowController.php
index a4e812fedd..06d6b6f7e2 100644
--- a/app/Api/V1/Controllers/Models/BudgetLimit/ShowController.php
+++ b/app/Api/V1/Controllers/Models/BudgetLimit/ShowController.php
@@ -71,7 +71,7 @@ class ShowController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/budgets/listBudgetLimitByBudget
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/budgets/listBudgetLimitByBudget
*
* Display a listing of the budget limits for this budget.
*
@@ -105,7 +105,7 @@ class ShowController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/budgets/listBudgetLimit
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/budgets/listBudgetLimit
*
* Display a listing of the budget limits for this budget.
*
@@ -138,7 +138,7 @@ class ShowController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/budgets/getBudgetLimit
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/budgets/getBudgetLimit
*
* @param Request $request
* @param Budget $budget
diff --git a/app/Api/V1/Controllers/Models/BudgetLimit/StoreController.php b/app/Api/V1/Controllers/Models/BudgetLimit/StoreController.php
index d868777485..c884170258 100644
--- a/app/Api/V1/Controllers/Models/BudgetLimit/StoreController.php
+++ b/app/Api/V1/Controllers/Models/BudgetLimit/StoreController.php
@@ -61,7 +61,7 @@ class StoreController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/budgets/storeBudgetLimit
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/budgets/storeBudgetLimit
*
* Store a newly created resource in storage.
*
diff --git a/app/Api/V1/Controllers/Models/BudgetLimit/UpdateController.php b/app/Api/V1/Controllers/Models/BudgetLimit/UpdateController.php
index baa0217a80..c122e83b7f 100644
--- a/app/Api/V1/Controllers/Models/BudgetLimit/UpdateController.php
+++ b/app/Api/V1/Controllers/Models/BudgetLimit/UpdateController.php
@@ -43,7 +43,7 @@ class UpdateController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/budgets/updateBudgetLimit
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/budgets/updateBudgetLimit
*
* BudgetLimitController constructor.
*
@@ -66,6 +66,8 @@ class UpdateController extends Controller
/**
* Update the specified resource in storage.
+ * This endpoint is documented at:
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/budgets/updateBudgetLimit
*
* @param UpdateRequest $request
* @param Budget $budget
diff --git a/app/Api/V1/Controllers/Models/Category/DestroyController.php b/app/Api/V1/Controllers/Models/Category/DestroyController.php
index c28e976324..ca5029746a 100644
--- a/app/Api/V1/Controllers/Models/Category/DestroyController.php
+++ b/app/Api/V1/Controllers/Models/Category/DestroyController.php
@@ -55,7 +55,7 @@ class DestroyController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/categories/deleteCategory
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/categories/deleteCategory
*
* Remove the specified resource from storage.
*
diff --git a/app/Api/V1/Controllers/Models/Category/ListController.php b/app/Api/V1/Controllers/Models/Category/ListController.php
index 4c0c8b2acd..9b83da299c 100644
--- a/app/Api/V1/Controllers/Models/Category/ListController.php
+++ b/app/Api/V1/Controllers/Models/Category/ListController.php
@@ -67,7 +67,7 @@ class ListController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/categories/listAttachmentByCategory
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/categories/listAttachmentByCategory
*
* @param Category $category
*
@@ -100,7 +100,7 @@ class ListController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/categories/listTransactionByCategory
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/categories/listTransactionByCategory
*
* Show all transactions.
*
diff --git a/app/Api/V1/Controllers/Models/Category/ShowController.php b/app/Api/V1/Controllers/Models/Category/ShowController.php
index 009739d4a8..91554d36da 100644
--- a/app/Api/V1/Controllers/Models/Category/ShowController.php
+++ b/app/Api/V1/Controllers/Models/Category/ShowController.php
@@ -61,7 +61,7 @@ class ShowController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/categories/listCategory
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/categories/listCategory
*
* Display a listing of the resource.
*
@@ -96,7 +96,7 @@ class ShowController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/categories/getCategory
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/categories/getCategory
*
* Show the category.
*
diff --git a/app/Api/V1/Controllers/Models/Category/StoreController.php b/app/Api/V1/Controllers/Models/Category/StoreController.php
index 80918e0c54..c782a8445b 100644
--- a/app/Api/V1/Controllers/Models/Category/StoreController.php
+++ b/app/Api/V1/Controllers/Models/Category/StoreController.php
@@ -58,7 +58,7 @@ class StoreController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/categories/storeCategory
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/categories/storeCategory
*
* Store new category.
*
diff --git a/app/Api/V1/Controllers/Models/Category/UpdateController.php b/app/Api/V1/Controllers/Models/Category/UpdateController.php
index d72794be9a..66c96e38bb 100644
--- a/app/Api/V1/Controllers/Models/Category/UpdateController.php
+++ b/app/Api/V1/Controllers/Models/Category/UpdateController.php
@@ -58,7 +58,7 @@ class UpdateController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/categories/updateCategory
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/categories/updateCategory
*
* Update the category.
*
diff --git a/app/Api/V1/Controllers/Models/ObjectGroup/DestroyController.php b/app/Api/V1/Controllers/Models/ObjectGroup/DestroyController.php
index 72bbb5665b..f02ff8a4a2 100644
--- a/app/Api/V1/Controllers/Models/ObjectGroup/DestroyController.php
+++ b/app/Api/V1/Controllers/Models/ObjectGroup/DestroyController.php
@@ -58,7 +58,7 @@ class DestroyController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/object_groups/deleteObjectGroup
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/object_groups/deleteObjectGroup
*
* Remove the specified resource from storage.
*
diff --git a/app/Api/V1/Controllers/Models/ObjectGroup/ListController.php b/app/Api/V1/Controllers/Models/ObjectGroup/ListController.php
index f82a2ad335..cb5c7221c6 100644
--- a/app/Api/V1/Controllers/Models/ObjectGroup/ListController.php
+++ b/app/Api/V1/Controllers/Models/ObjectGroup/ListController.php
@@ -64,7 +64,7 @@ class ListController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/object_groups/listBillByObjectGroup
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/object_groups/listBillByObjectGroup
*
* List all bills in this object group
*
@@ -100,7 +100,7 @@ class ListController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/object_groups/listPiggyBankByObjectGroup
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/object_groups/listPiggyBankByObjectGroup
*
* List all piggies under the object group.
*
diff --git a/app/Api/V1/Controllers/Models/ObjectGroup/ShowController.php b/app/Api/V1/Controllers/Models/ObjectGroup/ShowController.php
index 3fe8b0b41a..47fd0ef7ad 100644
--- a/app/Api/V1/Controllers/Models/ObjectGroup/ShowController.php
+++ b/app/Api/V1/Controllers/Models/ObjectGroup/ShowController.php
@@ -65,7 +65,7 @@ class ShowController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/object_groups/listObjectGroups
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/object_groups/listObjectGroups
*
* Display a listing of the resource.
*
@@ -103,7 +103,7 @@ class ShowController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/object_groups/getObjectGroup
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/object_groups/getObjectGroup
*
* Show single instance.
*
diff --git a/app/Api/V1/Controllers/Models/ObjectGroup/UpdateController.php b/app/Api/V1/Controllers/Models/ObjectGroup/UpdateController.php
index a9d5ce11c8..de2b7d96dc 100644
--- a/app/Api/V1/Controllers/Models/ObjectGroup/UpdateController.php
+++ b/app/Api/V1/Controllers/Models/ObjectGroup/UpdateController.php
@@ -61,7 +61,7 @@ class UpdateController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/object_groups/updateObjectGroup
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/object_groups/updateObjectGroup
*
* @param UpdateRequest $request
* @param ObjectGroup $objectGroup
diff --git a/app/Api/V1/Controllers/Models/PiggyBank/DestroyController.php b/app/Api/V1/Controllers/Models/PiggyBank/DestroyController.php
index 87d78ebc8d..1b9af05e11 100644
--- a/app/Api/V1/Controllers/Models/PiggyBank/DestroyController.php
+++ b/app/Api/V1/Controllers/Models/PiggyBank/DestroyController.php
@@ -55,7 +55,7 @@ class DestroyController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/piggy_banks/deletePiggyBank
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/piggy_banks/deletePiggyBank
*
* Delete the resource.
*
diff --git a/app/Api/V1/Controllers/Models/PiggyBank/ListController.php b/app/Api/V1/Controllers/Models/PiggyBank/ListController.php
index 8ae793aba3..b8c29020df 100644
--- a/app/Api/V1/Controllers/Models/PiggyBank/ListController.php
+++ b/app/Api/V1/Controllers/Models/PiggyBank/ListController.php
@@ -61,7 +61,7 @@ class ListController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/piggy_banks/listAttachmentByPiggyBank
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/piggy_banks/listAttachmentByPiggyBank
*
* @param PiggyBank $piggyBank
*
@@ -94,7 +94,7 @@ class ListController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/piggy_banks/listEventByPiggyBank
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/piggy_banks/listEventByPiggyBank
*
* List single resource.
*
diff --git a/app/Api/V1/Controllers/Models/PiggyBank/ShowController.php b/app/Api/V1/Controllers/Models/PiggyBank/ShowController.php
index 748607cc51..371f88b9eb 100644
--- a/app/Api/V1/Controllers/Models/PiggyBank/ShowController.php
+++ b/app/Api/V1/Controllers/Models/PiggyBank/ShowController.php
@@ -61,7 +61,7 @@ class ShowController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/piggy_banks/listPiggyBank
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/piggy_banks/listPiggyBank
*
* List all of them.
*
@@ -96,7 +96,7 @@ class ShowController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/piggy_banks/getPiggyBank
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/piggy_banks/getPiggyBank
*
* List single resource.
*
diff --git a/app/Api/V1/Controllers/Models/PiggyBank/StoreController.php b/app/Api/V1/Controllers/Models/PiggyBank/StoreController.php
index b24ce9c958..905826430d 100644
--- a/app/Api/V1/Controllers/Models/PiggyBank/StoreController.php
+++ b/app/Api/V1/Controllers/Models/PiggyBank/StoreController.php
@@ -58,7 +58,7 @@ class StoreController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/piggy_banks/storePiggyBank
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/piggy_banks/storePiggyBank
*
* Store new object.
*
diff --git a/app/Api/V1/Controllers/Models/PiggyBank/UpdateController.php b/app/Api/V1/Controllers/Models/PiggyBank/UpdateController.php
index b4da94b7d1..b4a114529b 100644
--- a/app/Api/V1/Controllers/Models/PiggyBank/UpdateController.php
+++ b/app/Api/V1/Controllers/Models/PiggyBank/UpdateController.php
@@ -58,7 +58,7 @@ class UpdateController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/piggy_banks/updatePiggyBank
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/piggy_banks/updatePiggyBank
*
* Update piggy bank.
*
diff --git a/app/Api/V1/Controllers/Models/Recurrence/DestroyController.php b/app/Api/V1/Controllers/Models/Recurrence/DestroyController.php
index f623884984..efc050b463 100644
--- a/app/Api/V1/Controllers/Models/Recurrence/DestroyController.php
+++ b/app/Api/V1/Controllers/Models/Recurrence/DestroyController.php
@@ -55,7 +55,7 @@ class DestroyController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/recurrences/deleteRecurrence
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/recurrences/deleteRecurrence
*
* Delete the resource.
*
diff --git a/app/Api/V1/Controllers/Models/Recurrence/ListController.php b/app/Api/V1/Controllers/Models/Recurrence/ListController.php
index 04617cd30a..a813654d01 100644
--- a/app/Api/V1/Controllers/Models/Recurrence/ListController.php
+++ b/app/Api/V1/Controllers/Models/Recurrence/ListController.php
@@ -65,7 +65,7 @@ class ListController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/recurrences/listTransactionByRecurrence
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/recurrences/listTransactionByRecurrence
*
* Show transactions for this recurrence.
*
diff --git a/app/Api/V1/Controllers/Models/Recurrence/ShowController.php b/app/Api/V1/Controllers/Models/Recurrence/ShowController.php
index fe42cb7374..0236b8a4be 100644
--- a/app/Api/V1/Controllers/Models/Recurrence/ShowController.php
+++ b/app/Api/V1/Controllers/Models/Recurrence/ShowController.php
@@ -61,7 +61,7 @@ class ShowController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/recurrences/listRecurrence
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/recurrences/listRecurrence
*
* List all of them.
*
@@ -97,7 +97,7 @@ class ShowController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/recurrences/getRecurrence
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/recurrences/getRecurrence
*
* List single resource.
*
diff --git a/app/Api/V1/Controllers/Models/Recurrence/StoreController.php b/app/Api/V1/Controllers/Models/Recurrence/StoreController.php
index f7a2f33a26..25e26f54aa 100644
--- a/app/Api/V1/Controllers/Models/Recurrence/StoreController.php
+++ b/app/Api/V1/Controllers/Models/Recurrence/StoreController.php
@@ -58,7 +58,7 @@ class StoreController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/recurrences/storeRecurrence
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/recurrences/storeRecurrence
*
* Store new object.
*
diff --git a/app/Api/V1/Controllers/Models/Recurrence/UpdateController.php b/app/Api/V1/Controllers/Models/Recurrence/UpdateController.php
index d77aaa6928..6be2ebfb49 100644
--- a/app/Api/V1/Controllers/Models/Recurrence/UpdateController.php
+++ b/app/Api/V1/Controllers/Models/Recurrence/UpdateController.php
@@ -58,7 +58,7 @@ class UpdateController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/recurrences/updateRecurrence
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/recurrences/updateRecurrence
*
* Update single recurrence.
*
diff --git a/app/Api/V1/Controllers/Models/Rule/DestroyController.php b/app/Api/V1/Controllers/Models/Rule/DestroyController.php
index a7ad885b96..4965e8e09c 100644
--- a/app/Api/V1/Controllers/Models/Rule/DestroyController.php
+++ b/app/Api/V1/Controllers/Models/Rule/DestroyController.php
@@ -59,7 +59,7 @@ class DestroyController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/rules/deleteRule
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/rules/deleteRule
*
* Delete the resource.
*
diff --git a/app/Api/V1/Controllers/Models/Rule/ListController.php b/app/Api/V1/Controllers/Models/Rule/ListController.php
deleted file mode 100644
index bf7c95c283..0000000000
--- a/app/Api/V1/Controllers/Models/Rule/ListController.php
+++ /dev/null
@@ -1,62 +0,0 @@
-<?php
-/*
- * ListController.php
- * Copyright (c) 2021 [email protected]
- *
- * This file is part of Firefly III (https://github.com/firefly-iii).
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <https://www.gnu.org/licenses/>.
- */
-
-declare(strict_types=1);
-
-namespace FireflyIII\Api\V1\Controllers\Models\Rule;
-
-use FireflyIII\Api\V1\Controllers\Controller;
-use FireflyIII\Repositories\Account\AccountRepositoryInterface;
-use FireflyIII\Repositories\Rule\RuleRepositoryInterface;
-use FireflyIII\User;
-
-/**
- * Class ListController
- */
-class ListController extends Controller
-{
- private AccountRepositoryInterface $accountRepository;
- private RuleRepositoryInterface $ruleRepository;
-
- /**
- * RuleController constructor.
- *
- * @codeCoverageIgnore
- */
- public function __construct()
- {
- parent::__construct();
- $this->middleware(
- function ($request, $next) {
- /** @var User $user */
- $user = auth()->user();
-
- $this->ruleRepository = app(RuleRepositoryInterface::class);
- $this->ruleRepository->setUser($user);
-
- $this->accountRepository = app(AccountRepositoryInterface::class);
- $this->accountRepository->setUser($user);
-
- return $next($request);
- }
- );
- }
-}
diff --git a/app/Api/V1/Controllers/Models/Rule/ShowController.php b/app/Api/V1/Controllers/Models/Rule/ShowController.php
index 8b12d1c3f6..5d0b4bbf5a 100644
--- a/app/Api/V1/Controllers/Models/Rule/ShowController.php
+++ b/app/Api/V1/Controllers/Models/Rule/ShowController.php
@@ -65,7 +65,7 @@ class ShowController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/rules/listRule
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/rules/listRule
*
* List all of them.
*
@@ -101,7 +101,7 @@ class ShowController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/rules/getRule
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/rules/getRule
*
* List single resource.
*
diff --git a/app/Api/V1/Controllers/Models/Rule/StoreController.php b/app/Api/V1/Controllers/Models/Rule/StoreController.php
index 4cfe601f7f..89207a4172 100644
--- a/app/Api/V1/Controllers/Models/Rule/StoreController.php
+++ b/app/Api/V1/Controllers/Models/Rule/StoreController.php
@@ -61,7 +61,7 @@ class StoreController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/rules/storeRule
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/rules/storeRule
*
* Store new object.
*
diff --git a/app/Api/V1/Controllers/Models/Rule/TriggerController.php b/app/Api/V1/Controllers/Models/Rule/TriggerController.php
index f3eef085b5..281b33b34d 100644
--- a/app/Api/V1/Controllers/Models/Rule/TriggerController.php
+++ b/app/Api/V1/Controllers/Models/Rule/TriggerController.php
@@ -67,7 +67,7 @@ class TriggerController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/rules/testRule
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/rules/testRule
*
* @param TestRequest $request
* @param Rule $rule
@@ -117,7 +117,7 @@ class TriggerController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/rules/fireRule
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/rules/fireRule
*
* Execute the given rule group on a set of existing transactions.
*
diff --git a/app/Api/V1/Controllers/Models/Rule/UpdateController.php b/app/Api/V1/Controllers/Models/Rule/UpdateController.php
index df81811814..9d3dc7766e 100644
--- a/app/Api/V1/Controllers/Models/Rule/UpdateController.php
+++ b/app/Api/V1/Controllers/Models/Rule/UpdateController.php
@@ -62,7 +62,7 @@ class UpdateController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/rules/updateRule
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/rules/updateRule
*
* Update a rule.
*
diff --git a/app/Api/V1/Controllers/Models/RuleGroup/DestroyController.php b/app/Api/V1/Controllers/Models/RuleGroup/DestroyController.php
index a137a56ac8..db87cc0b1a 100644
--- a/app/Api/V1/Controllers/Models/RuleGroup/DestroyController.php
+++ b/app/Api/V1/Controllers/Models/RuleGroup/DestroyController.php
@@ -59,7 +59,7 @@ class DestroyController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/rule_groups/deleteRuleGroup
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/rule_groups/deleteRuleGroup
*
* Delete the resource.
*
diff --git a/app/Api/V1/Controllers/Models/RuleGroup/ListController.php b/app/Api/V1/Controllers/Models/RuleGroup/ListController.php
index 73027a0e6e..b3eee3102d 100644
--- a/app/Api/V1/Controllers/Models/RuleGroup/ListController.php
+++ b/app/Api/V1/Controllers/Models/RuleGroup/ListController.php
@@ -64,7 +64,7 @@ class ListController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/rule_groups/listRuleByGroup
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/rule_groups/listRuleByGroup
*
* @param RuleGroup $group
*
diff --git a/app/Api/V1/Controllers/Models/RuleGroup/ShowController.php b/app/Api/V1/Controllers/Models/RuleGroup/ShowController.php
index ed525de037..a5fe7e84b9 100644
--- a/app/Api/V1/Controllers/Models/RuleGroup/ShowController.php
+++ b/app/Api/V1/Controllers/Models/RuleGroup/ShowController.php
@@ -65,7 +65,7 @@ class ShowController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/rule_groups/listRuleGroup
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/rule_groups/listRuleGroup
* List all of them.
*
* @return JsonResponse
@@ -99,7 +99,7 @@ class ShowController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/rule_groups/getRuleGroup
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/rule_groups/getRuleGroup
*
* List single resource.
*
diff --git a/app/Api/V1/Controllers/Models/RuleGroup/StoreController.php b/app/Api/V1/Controllers/Models/RuleGroup/StoreController.php
index 34455a4cf6..2e3c286a50 100644
--- a/app/Api/V1/Controllers/Models/RuleGroup/StoreController.php
+++ b/app/Api/V1/Controllers/Models/RuleGroup/StoreController.php
@@ -66,7 +66,7 @@ class StoreController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/rule_groups/storeRuleGroup
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/rule_groups/storeRuleGroup
*
* Store new object.
*
diff --git a/app/Api/V1/Controllers/Models/RuleGroup/TriggerController.php b/app/Api/V1/Controllers/Models/RuleGroup/TriggerController.php
index c909f736c0..11046154c5 100644
--- a/app/Api/V1/Controllers/Models/RuleGroup/TriggerController.php
+++ b/app/Api/V1/Controllers/Models/RuleGroup/TriggerController.php
@@ -68,7 +68,7 @@ class TriggerController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/rule_groups/testRuleGroup
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/rule_groups/testRuleGroup
*
* @param TestRequest $request
* @param RuleGroup $group
@@ -124,7 +124,7 @@ class TriggerController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/rule_groups/fireRuleGroup
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/rule_groups/fireRuleGroup
*
* Execute the given rule group on a set of existing transactions.
*
diff --git a/app/Api/V1/Controllers/Models/RuleGroup/UpdateController.php b/app/Api/V1/Controllers/Models/RuleGroup/UpdateController.php
index 8a8115c991..60c349d806 100644
--- a/app/Api/V1/Controllers/Models/RuleGroup/UpdateController.php
+++ b/app/Api/V1/Controllers/Models/RuleGroup/UpdateController.php
@@ -62,7 +62,7 @@ class UpdateController extends Controller
/**
* This is endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/rule_groups/updateRuleGroup
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/rule_groups/updateRuleGroup
*
* Update a rule group.
*
diff --git a/app/Api/V1/Controllers/Models/Tag/DestroyController.php b/app/Api/V1/Controllers/Models/Tag/DestroyController.php
index ba83bae637..0ab1088737 100644
--- a/app/Api/V1/Controllers/Models/Tag/DestroyController.php
+++ b/app/Api/V1/Controllers/Models/Tag/DestroyController.php
@@ -59,7 +59,7 @@ class DestroyController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/tags/deleteTag
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/tags/deleteTag
*
* Delete the resource.
*
diff --git a/app/Api/V1/Controllers/Models/Tag/ListController.php b/app/Api/V1/Controllers/Models/Tag/ListController.php
index 7f4196ea52..43c2acc1f8 100644
--- a/app/Api/V1/Controllers/Models/Tag/ListController.php
+++ b/app/Api/V1/Controllers/Models/Tag/ListController.php
@@ -70,7 +70,7 @@ class ListController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/tags/listAttachmentByTag
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/tags/listAttachmentByTag
*
* @param Tag $tag
*
@@ -103,7 +103,7 @@ class ListController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/tags/listTransactionByTag
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/tags/listTransactionByTag
*
* Show all transactions.
*
diff --git a/app/Api/V1/Controllers/Models/Tag/ShowController.php b/app/Api/V1/Controllers/Models/Tag/ShowController.php
index 17620e0fcd..845b28926c 100644
--- a/app/Api/V1/Controllers/Models/Tag/ShowController.php
+++ b/app/Api/V1/Controllers/Models/Tag/ShowController.php
@@ -65,7 +65,7 @@ class ShowController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/tags/listTag
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/tags/listTag
*
* List all of them.
*
@@ -100,7 +100,7 @@ class ShowController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/tags/getTag
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/tags/getTag
*
* List single resource.
*
diff --git a/app/Api/V1/Controllers/Models/Tag/StoreController.php b/app/Api/V1/Controllers/Models/Tag/StoreController.php
index ab277913a9..945fd7cc79 100644
--- a/app/Api/V1/Controllers/Models/Tag/StoreController.php
+++ b/app/Api/V1/Controllers/Models/Tag/StoreController.php
@@ -61,7 +61,7 @@ class StoreController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/tags/storeTag
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/tags/storeTag
*
* Store new object.
*
diff --git a/app/Api/V1/Controllers/Models/Tag/UpdateController.php b/app/Api/V1/Controllers/Models/Tag/UpdateController.php
index 952b2ac513..1aff25119a 100644
--- a/app/Api/V1/Controllers/Models/Tag/UpdateController.php
+++ b/app/Api/V1/Controllers/Models/Tag/UpdateController.php
@@ -62,7 +62,7 @@ class UpdateController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/tags/updateTag
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/tags/updateTag
*
* Update a rule.
*
diff --git a/app/Api/V1/Controllers/Models/Transaction/DestroyController.php b/app/Api/V1/Controllers/Models/Transaction/DestroyController.php
index e78c5b676a..fec8eed4fa 100644
--- a/app/Api/V1/Controllers/Models/Transaction/DestroyController.php
+++ b/app/Api/V1/Controllers/Models/Transaction/DestroyController.php
@@ -69,7 +69,7 @@ class DestroyController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/transactions/deleteTransaction
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/transactions/deleteTransaction
*
* Remove the specified resource from storage.
*
@@ -110,7 +110,7 @@ class DestroyController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/transactions/deleteTransactionJournal
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/transactions/deleteTransactionJournal
*
* Remove the specified resource from storage.
*
diff --git a/app/Api/V1/Controllers/Models/Transaction/ListController.php b/app/Api/V1/Controllers/Models/Transaction/ListController.php
index 0da0a2b5b4..61e405c7bc 100644
--- a/app/Api/V1/Controllers/Models/Transaction/ListController.php
+++ b/app/Api/V1/Controllers/Models/Transaction/ListController.php
@@ -68,7 +68,7 @@ class ListController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/transactions/listAttachmentByTransaction
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/transactions/listAttachmentByTransaction
*
* @param TransactionGroup $transactionGroup
*
@@ -104,7 +104,7 @@ class ListController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/transactions/listEventByTransaction
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/transactions/listEventByTransaction
*
* @param TransactionGroup $transactionGroup
*
@@ -143,7 +143,7 @@ class ListController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/transactions/listLinksByJournal
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/transactions/listLinksByJournal
*
* @param TransactionJournal $transactionJournal
*
diff --git a/app/Api/V1/Controllers/Models/Transaction/ShowController.php b/app/Api/V1/Controllers/Models/Transaction/ShowController.php
index 383796dae2..0d52aefca1 100644
--- a/app/Api/V1/Controllers/Models/Transaction/ShowController.php
+++ b/app/Api/V1/Controllers/Models/Transaction/ShowController.php
@@ -47,7 +47,7 @@ class ShowController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/transactions/listTransaction
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/transactions/listTransaction
*
* Show all transactions.
*
@@ -100,7 +100,7 @@ class ShowController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/transactions/getTransactionByJournal
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/transactions/getTransactionByJournal
*
* Show a single transaction, by transaction journal.
*
@@ -116,7 +116,7 @@ class ShowController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/transactions/getTransaction
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/transactions/getTransaction
*
* Show a single transaction.
*
diff --git a/app/Api/V1/Controllers/Models/Transaction/StoreController.php b/app/Api/V1/Controllers/Models/Transaction/StoreController.php
index 5f1bbcda96..75fb2ff804 100644
--- a/app/Api/V1/Controllers/Models/Transaction/StoreController.php
+++ b/app/Api/V1/Controllers/Models/Transaction/StoreController.php
@@ -72,7 +72,7 @@ class StoreController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/transactions/storeTransaction
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/transactions/storeTransaction
*
* Store a new transaction.
*
diff --git a/app/Api/V1/Controllers/Models/Transaction/UpdateController.php b/app/Api/V1/Controllers/Models/Transaction/UpdateController.php
index 9e5c8978a4..c99348562c 100644
--- a/app/Api/V1/Controllers/Models/Transaction/UpdateController.php
+++ b/app/Api/V1/Controllers/Models/Transaction/UpdateController.php
@@ -66,7 +66,7 @@ class UpdateController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/transactions/updateTransaction
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/transactions/updateTransaction
*
* Update a transaction.
*
diff --git a/app/Api/V1/Controllers/Models/TransactionCurrency/DestroyController.php b/app/Api/V1/Controllers/Models/TransactionCurrency/DestroyController.php
index ee90fdba7d..b230033b48 100644
--- a/app/Api/V1/Controllers/Models/TransactionCurrency/DestroyController.php
+++ b/app/Api/V1/Controllers/Models/TransactionCurrency/DestroyController.php
@@ -62,7 +62,7 @@ class DestroyController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/currencies/deleteCurrency
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/currencies/deleteCurrency
*
* Remove the specified resource from storage.
*
diff --git a/app/Api/V1/Controllers/Models/TransactionCurrency/ListController.php b/app/Api/V1/Controllers/Models/TransactionCurrency/ListController.php
index fbe18135eb..2db30eeb6a 100644
--- a/app/Api/V1/Controllers/Models/TransactionCurrency/ListController.php
+++ b/app/Api/V1/Controllers/Models/TransactionCurrency/ListController.php
@@ -87,7 +87,7 @@ class ListController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/currencies/listAccountByCurrency
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/currencies/listAccountByCurrency
* Display a list of accounts.
*
* @param Request $request
@@ -141,7 +141,7 @@ class ListController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/currencies/listAvailableBudgetByCurrency
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/currencies/listAvailableBudgetByCurrency
*
* Display a listing of the resource.
*
@@ -180,7 +180,7 @@ class ListController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/currencies/listBillByCurrency
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/currencies/listBillByCurrency
*
* List all bills
*
@@ -224,7 +224,7 @@ class ListController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/currencies/listBudgetLimitByCurrency
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/currencies/listBudgetLimitByCurrency
*
* List all budget limits
*
@@ -259,7 +259,7 @@ class ListController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/currencies/listRecurrenceByCurrency
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/currencies/listRecurrenceByCurrency
*
* List all recurring transactions.
*
@@ -312,7 +312,7 @@ class ListController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/currencies/listRuleByCurrency
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/currencies/listRuleByCurrency
*
* List all of them.
*
@@ -364,7 +364,7 @@ class ListController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/currencies/listTransactionByCurrency
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/currencies/listTransactionByCurrency
*
* Show all transactions.
*
diff --git a/app/Api/V1/Controllers/Models/TransactionCurrency/ShowController.php b/app/Api/V1/Controllers/Models/TransactionCurrency/ShowController.php
index 98dc10efef..faf089feae 100644
--- a/app/Api/V1/Controllers/Models/TransactionCurrency/ShowController.php
+++ b/app/Api/V1/Controllers/Models/TransactionCurrency/ShowController.php
@@ -68,7 +68,7 @@ class ShowController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/currencies/listCurrency
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/currencies/listCurrency
*
* Display a listing of the resource.
*
@@ -102,7 +102,7 @@ class ShowController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/currencies/getCurrency
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/currencies/getCurrency
*
* Show a currency.
*
@@ -130,7 +130,7 @@ class ShowController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/currencies/getDefaultCurrency
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/currencies/getDefaultCurrency
*
* Show a currency.
*
diff --git a/app/Api/V1/Controllers/Models/TransactionCurrency/StoreController.php b/app/Api/V1/Controllers/Models/TransactionCurrency/StoreController.php
index 04f1489512..4c984aef72 100644
--- a/app/Api/V1/Controllers/Models/TransactionCurrency/StoreController.php
+++ b/app/Api/V1/Controllers/Models/TransactionCurrency/StoreController.php
@@ -65,7 +65,7 @@ class StoreController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/currencies/storeCurrency
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/currencies/storeCurrency
*
* Store new currency.
*
diff --git a/app/Api/V1/Controllers/Models/TransactionCurrency/UpdateController.php b/app/Api/V1/Controllers/Models/TransactionCurrency/UpdateController.php
index 8ab744ea78..02df815be2 100644
--- a/app/Api/V1/Controllers/Models/TransactionCurrency/UpdateController.php
+++ b/app/Api/V1/Controllers/Models/TransactionCurrency/UpdateController.php
@@ -67,7 +67,7 @@ class UpdateController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/currencies/disableCurrency
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/currencies/disableCurrency
*
* Disable a currency.
*
@@ -101,7 +101,7 @@ class UpdateController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/currencies/defaultCurrency
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/currencies/defaultCurrency
*
* Make the currency a default currency.
*
@@ -133,7 +133,7 @@ class UpdateController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/currencies/enableCurrency
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/currencies/enableCurrency
*
* Enable a currency.
*
@@ -163,7 +163,7 @@ class UpdateController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/currencies/updateCurrency
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/currencies/updateCurrency
*
* Update a currency.
*
diff --git a/app/Api/V1/Controllers/Models/TransactionLink/DestroyController.php b/app/Api/V1/Controllers/Models/TransactionLink/DestroyController.php
index ff5b2cdb1e..c7119c6eff 100644
--- a/app/Api/V1/Controllers/Models/TransactionLink/DestroyController.php
+++ b/app/Api/V1/Controllers/Models/TransactionLink/DestroyController.php
@@ -58,7 +58,7 @@ class DestroyController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/links/deleteTransactionLink
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/links/deleteTransactionLink
*
* Delete the resource.
*
diff --git a/app/Api/V1/Controllers/Models/TransactionLink/ShowController.php b/app/Api/V1/Controllers/Models/TransactionLink/ShowController.php
index aef868534f..4c07ba7483 100644
--- a/app/Api/V1/Controllers/Models/TransactionLink/ShowController.php
+++ b/app/Api/V1/Controllers/Models/TransactionLink/ShowController.php
@@ -65,7 +65,7 @@ class ShowController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/links/listTransactionLink
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/links/listTransactionLink
*
* List all transaction links there are.
*
@@ -107,7 +107,7 @@ class ShowController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/links/getTransactionLink
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/links/getTransactionLink
*
* List single resource.
*
diff --git a/app/Api/V1/Controllers/Models/TransactionLink/StoreController.php b/app/Api/V1/Controllers/Models/TransactionLink/StoreController.php
index 6558cdd423..b821d03289 100644
--- a/app/Api/V1/Controllers/Models/TransactionLink/StoreController.php
+++ b/app/Api/V1/Controllers/Models/TransactionLink/StoreController.php
@@ -68,7 +68,7 @@ class StoreController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/links/storeTransactionLink
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/links/storeTransactionLink
*
* Store new object.
*
diff --git a/app/Api/V1/Controllers/Models/TransactionLink/UpdateController.php b/app/Api/V1/Controllers/Models/TransactionLink/UpdateController.php
index 2db52ca859..8b09e9c5a6 100644
--- a/app/Api/V1/Controllers/Models/TransactionLink/UpdateController.php
+++ b/app/Api/V1/Controllers/Models/TransactionLink/UpdateController.php
@@ -65,7 +65,7 @@ class UpdateController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/links/updateTransactionLink
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/links/updateTransactionLink
*
* Update object.
*
diff --git a/app/Api/V1/Controllers/Models/TransactionLinkType/DestroyController.php b/app/Api/V1/Controllers/Models/TransactionLinkType/DestroyController.php
index c734e31c66..5468a7550a 100644
--- a/app/Api/V1/Controllers/Models/TransactionLinkType/DestroyController.php
+++ b/app/Api/V1/Controllers/Models/TransactionLinkType/DestroyController.php
@@ -66,7 +66,7 @@ class DestroyController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/links/deleteLinkType
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/links/deleteLinkType
*
* Delete the resource.
*
diff --git a/app/Api/V1/Controllers/Models/TransactionLinkType/ListController.php b/app/Api/V1/Controllers/Models/TransactionLinkType/ListController.php
index 52cad81493..c67335b4ce 100644
--- a/app/Api/V1/Controllers/Models/TransactionLinkType/ListController.php
+++ b/app/Api/V1/Controllers/Models/TransactionLinkType/ListController.php
@@ -69,7 +69,7 @@ class ListController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/links/listTransactionByLinkType
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/links/listTransactionByLinkType
*
* @param Request $request
* @param LinkType $linkType
diff --git a/app/Api/V1/Controllers/Models/TransactionLinkType/ShowController.php b/app/Api/V1/Controllers/Models/TransactionLinkType/ShowController.php
index 181e1a2962..3fcc45a90d 100644
--- a/app/Api/V1/Controllers/Models/TransactionLinkType/ShowController.php
+++ b/app/Api/V1/Controllers/Models/TransactionLinkType/ShowController.php
@@ -69,7 +69,7 @@ class ShowController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/links/listLinkType
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/links/listLinkType
*
*
* @return JsonResponse
@@ -103,7 +103,7 @@ class ShowController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/links/getLinkType
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/links/getLinkType
*
* List single resource.
*
diff --git a/app/Api/V1/Controllers/Models/TransactionLinkType/StoreController.php b/app/Api/V1/Controllers/Models/TransactionLinkType/StoreController.php
index 5b54dae645..143da5d25a 100644
--- a/app/Api/V1/Controllers/Models/TransactionLinkType/StoreController.php
+++ b/app/Api/V1/Controllers/Models/TransactionLinkType/StoreController.php
@@ -69,7 +69,7 @@ class StoreController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/links/storeLinkType
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/links/storeLinkType
*
* Store new object.
*
diff --git a/app/Api/V1/Controllers/Models/TransactionLinkType/UpdateController.php b/app/Api/V1/Controllers/Models/TransactionLinkType/UpdateController.php
index e48fa2ac6d..5d384d7c6d 100644
--- a/app/Api/V1/Controllers/Models/TransactionLinkType/UpdateController.php
+++ b/app/Api/V1/Controllers/Models/TransactionLinkType/UpdateController.php
@@ -70,7 +70,7 @@ class UpdateController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/links/updateLinkType
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/links/updateLinkType
*
* Update object.
*
diff --git a/app/Api/V1/Controllers/Search/AccountController.php b/app/Api/V1/Controllers/Search/AccountController.php
index e79ba13306..6db73f9a0e 100644
--- a/app/Api/V1/Controllers/Search/AccountController.php
+++ b/app/Api/V1/Controllers/Search/AccountController.php
@@ -60,7 +60,7 @@ class AccountController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/search/searchAccounts
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/search/searchAccounts
* @param Request $request
*
* @return JsonResponse|Response
diff --git a/app/Api/V1/Controllers/Search/TransactionController.php b/app/Api/V1/Controllers/Search/TransactionController.php
index 9255da7713..2a157532f9 100644
--- a/app/Api/V1/Controllers/Search/TransactionController.php
+++ b/app/Api/V1/Controllers/Search/TransactionController.php
@@ -40,7 +40,7 @@ class TransactionController extends Controller
{
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/search/searchTransactions
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/search/searchTransactions
*
* @param Request $request
* @param SearchInterface $searcher
diff --git a/app/Api/V1/Controllers/Summary/BasicController.php b/app/Api/V1/Controllers/Summary/BasicController.php
index 54e7f0990e..ba4b7b79e1 100644
--- a/app/Api/V1/Controllers/Summary/BasicController.php
+++ b/app/Api/V1/Controllers/Summary/BasicController.php
@@ -88,7 +88,7 @@ class BasicController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/summary/getBasicSummary
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/summary/getBasicSummary
*
* @param DateRequest $request
*
diff --git a/app/Api/V1/Controllers/System/AboutController.php b/app/Api/V1/Controllers/System/AboutController.php
index b78a995d3f..5dab244710 100644
--- a/app/Api/V1/Controllers/System/AboutController.php
+++ b/app/Api/V1/Controllers/System/AboutController.php
@@ -40,7 +40,7 @@ class AboutController extends Controller
{
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/about/getAbout
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/about/getAbout
*
* Returns system information.
*
@@ -67,7 +67,7 @@ class AboutController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/about/getCurrentUser
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/about/getCurrentUser
*
* Returns information about the user.
*
diff --git a/app/Api/V1/Controllers/System/ConfigurationController.php b/app/Api/V1/Controllers/System/ConfigurationController.php
index 09a8dff8b7..8d6fd7c73e 100644
--- a/app/Api/V1/Controllers/System/ConfigurationController.php
+++ b/app/Api/V1/Controllers/System/ConfigurationController.php
@@ -58,7 +58,7 @@ class ConfigurationController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/configuration/getConfiguration
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/configuration/getConfiguration
*
* @return JsonResponse
* @throws FireflyException
@@ -131,7 +131,7 @@ class ConfigurationController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/configuration/getSingleConfiguration
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/configuration/getSingleConfiguration
*
* @param string $configKey
*
@@ -163,7 +163,7 @@ class ConfigurationController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/configuration/setConfiguration
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/configuration/setConfiguration
*
* Update the configuration.
*
diff --git a/app/Api/V1/Controllers/System/CronController.php b/app/Api/V1/Controllers/System/CronController.php
index c76a39c097..23e129ec81 100644
--- a/app/Api/V1/Controllers/System/CronController.php
+++ b/app/Api/V1/Controllers/System/CronController.php
@@ -38,7 +38,7 @@ class CronController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/about/getCron
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/about/getCron
*
* @param CronRequest $request
* @param string $token
diff --git a/app/Api/V1/Controllers/System/UserController.php b/app/Api/V1/Controllers/System/UserController.php
index 85bc1c10b8..40c5302230 100644
--- a/app/Api/V1/Controllers/System/UserController.php
+++ b/app/Api/V1/Controllers/System/UserController.php
@@ -64,7 +64,7 @@ class UserController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/users/deleteUser
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/users/deleteUser
*
* Remove the specified resource from storage.
*
@@ -92,7 +92,7 @@ class UserController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/users/listUser
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/users/listUser
*
* Display a listing of the resource.
*
@@ -128,7 +128,7 @@ class UserController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/users/getUser
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/users/getUser
*
* Show a single user.
*
@@ -153,7 +153,7 @@ class UserController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/users/storeUser
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/users/storeUser
*
* Store a new user.
*
@@ -180,7 +180,7 @@ class UserController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/users/updateUser
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/users/updateUser
*
* Update a user.
*
diff --git a/app/Api/V1/Controllers/User/PreferencesController.php b/app/Api/V1/Controllers/User/PreferencesController.php
index 4baf172ba3..ab653ef723 100644
--- a/app/Api/V1/Controllers/User/PreferencesController.php
+++ b/app/Api/V1/Controllers/User/PreferencesController.php
@@ -46,7 +46,7 @@ class PreferencesController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/preferences/listPreference
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/preferences/listPreference
*
* List all of them.
*
@@ -78,7 +78,7 @@ class PreferencesController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/preferences/getPreference
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/preferences/getPreference
*
* Return a single preference by name.
*
@@ -101,7 +101,7 @@ class PreferencesController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/preferences/storePreference
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/preferences/storePreference
*
* @param PreferenceStoreRequest $request
*
@@ -125,7 +125,7 @@ class PreferencesController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/preferences/updatePreference
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/preferences/updatePreference
*
* @param PreferenceUpdateRequest $request
* @param Preference $preference
diff --git a/app/Api/V1/Controllers/Webhook/AttemptController.php b/app/Api/V1/Controllers/Webhook/AttemptController.php
index e8efa205a6..a663526543 100644
--- a/app/Api/V1/Controllers/Webhook/AttemptController.php
+++ b/app/Api/V1/Controllers/Webhook/AttemptController.php
@@ -62,7 +62,7 @@ class AttemptController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/webhooks/getWebhookMessageAttempts
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/webhooks/getWebhookMessageAttempts
*
* @param Webhook $webhook
* @param WebhookMessage $message
@@ -98,7 +98,7 @@ class AttemptController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/webhooks/getSingleWebhookMessageAttempt
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/webhooks/getSingleWebhookMessageAttempt
*
* Show single instance.
*
diff --git a/app/Api/V1/Controllers/Webhook/DestroyController.php b/app/Api/V1/Controllers/Webhook/DestroyController.php
index c89d79e9ec..cda94508b4 100644
--- a/app/Api/V1/Controllers/Webhook/DestroyController.php
+++ b/app/Api/V1/Controllers/Webhook/DestroyController.php
@@ -57,7 +57,7 @@ class DestroyController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/webhooks/deleteWebhook
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/webhooks/deleteWebhook
*
* Remove the specified resource from storage.
*
@@ -76,7 +76,7 @@ class DestroyController extends Controller
/**
* This webhook is documented at:
- * https://api-docs.firefly-iii.org/#/webhooks/deleteWebhookMessageAttempt
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/webhooks/deleteWebhookMessageAttempt
*
* Remove the specified resource from storage.
*
@@ -105,7 +105,7 @@ class DestroyController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/webhooks/deleteWebhookMessage
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/webhooks/deleteWebhookMessage
*
* Remove the specified resource from storage.
*
diff --git a/app/Api/V1/Controllers/Webhook/MessageController.php b/app/Api/V1/Controllers/Webhook/MessageController.php
index 6ec715ef5c..acd053cb26 100644
--- a/app/Api/V1/Controllers/Webhook/MessageController.php
+++ b/app/Api/V1/Controllers/Webhook/MessageController.php
@@ -58,7 +58,7 @@ class MessageController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/webhooks/getWebhookMessages
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/webhooks/getWebhookMessages
*
* @param Webhook $webhook
*
@@ -90,7 +90,7 @@ class MessageController extends Controller
/**
* This endpoint is documented:
- * https://api-docs.firefly-iii.org/#/webhooks/getSingleWebhookMessage
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/webhooks/getSingleWebhookMessage
*
* Show single instance.
*
diff --git a/app/Api/V1/Controllers/Webhook/ShowController.php b/app/Api/V1/Controllers/Webhook/ShowController.php
index 57cd0d6f24..73a9f56f57 100644
--- a/app/Api/V1/Controllers/Webhook/ShowController.php
+++ b/app/Api/V1/Controllers/Webhook/ShowController.php
@@ -66,7 +66,7 @@ class ShowController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/webhooks/listWebhook
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/webhooks/listWebhook
*
* Display a listing of the webhooks of the user.
*
@@ -98,7 +98,7 @@ class ShowController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/webhooks/getWebhook
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/webhooks/getWebhook
*
* Show single instance.
*
@@ -120,7 +120,7 @@ class ShowController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/webhooks/triggerWebhookTransaction
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/webhooks/triggerWebhookTransaction
*
* This method recycles part of the code of the StoredGroupEventHandler.
*
diff --git a/app/Api/V1/Controllers/Webhook/StoreController.php b/app/Api/V1/Controllers/Webhook/StoreController.php
index 057e1a8c25..99477c948e 100644
--- a/app/Api/V1/Controllers/Webhook/StoreController.php
+++ b/app/Api/V1/Controllers/Webhook/StoreController.php
@@ -56,7 +56,7 @@ class StoreController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/webhooks/storeWebhook
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/webhooks/storeWebhook
*
* @param CreateRequest $request
*
diff --git a/app/Api/V1/Controllers/Webhook/SubmitController.php b/app/Api/V1/Controllers/Webhook/SubmitController.php
index 8c5cd1b391..2e61f7174f 100644
--- a/app/Api/V1/Controllers/Webhook/SubmitController.php
+++ b/app/Api/V1/Controllers/Webhook/SubmitController.php
@@ -54,7 +54,7 @@ class SubmitController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/webhooks/submitWebook
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/webhooks/submitWebook
*
* @param Webhook $webhook
*
diff --git a/app/Api/V1/Controllers/Webhook/UpdateController.php b/app/Api/V1/Controllers/Webhook/UpdateController.php
index 54b9f850d0..3f8ea8cf28 100644
--- a/app/Api/V1/Controllers/Webhook/UpdateController.php
+++ b/app/Api/V1/Controllers/Webhook/UpdateController.php
@@ -56,7 +56,7 @@ class UpdateController extends Controller
/**
* This endpoint is documented at:
- * https://api-docs.firefly-iii.org/#/webhooks/updateWebhook
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/webhooks/updateWebhook
*
* @param Webhook $webhook
* @param UpdateRequest $request
diff --git a/app/Api/V2/Controllers/Chart/AccountController.php b/app/Api/V2/Controllers/Chart/AccountController.php
index a9e396cc68..95ab24c5d4 100644
--- a/app/Api/V2/Controllers/Chart/AccountController.php
+++ b/app/Api/V2/Controllers/Chart/AccountController.php
@@ -47,6 +47,7 @@ class AccountController extends Controller
*/
public function __construct()
{
+ parent::__construct();
$this->middleware(
function ($request, $next) {
$this->repository = app(AccountRepositoryInterface::class);
@@ -56,6 +57,9 @@ class AccountController extends Controller
}
/**
+ * This endpoint is documented at
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v2)#/charts/getChartAccountOverview
+ *
* @param DateRequest $request
* @return JsonResponse
*/
diff --git a/app/Api/V2/Controllers/Model/Account/ShowController.php b/app/Api/V2/Controllers/Model/Account/ShowController.php
index 8755071334..d197005add 100644
--- a/app/Api/V2/Controllers/Model/Account/ShowController.php
+++ b/app/Api/V2/Controllers/Model/Account/ShowController.php
@@ -36,6 +36,7 @@ use Illuminate\Http\Request;
class ShowController extends Controller
{
/**
+ * TODO this endpoint is not yet reachable.
* @param Account $account
* @return JsonResponse
*/
diff --git a/app/Api/V2/Controllers/Model/Bill/SumController.php b/app/Api/V2/Controllers/Model/Bill/SumController.php
index ebb486953f..eacb1513d7 100644
--- a/app/Api/V2/Controllers/Model/Bill/SumController.php
+++ b/app/Api/V2/Controllers/Model/Bill/SumController.php
@@ -44,6 +44,7 @@ class SumController extends Controller
*/
public function __construct()
{
+ parent::__construct();
$this->middleware(
function ($request, $next) {
$this->repository = app(BillRepositoryInterface::class);
@@ -53,6 +54,9 @@ class SumController extends Controller
}
/**
+ * This endpoint is documented at:
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v2)#/transactions-sum/getBillsPaidTrSum
+ *
* @param DateRequest $request
* @return JsonResponse
*/
@@ -67,6 +71,9 @@ class SumController extends Controller
}
/**
+ * This endpoint is documented at:
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v2)#/transactions-sum/getBillsUnpaidTrSum
+ *
* @param DateRequest $request
* @return JsonResponse
*/
diff --git a/app/Api/V2/Controllers/Model/Budget/ListController.php b/app/Api/V2/Controllers/Model/Budget/ListController.php
index 1e1c0ac56c..b3f0cf53d1 100644
--- a/app/Api/V2/Controllers/Model/Budget/ListController.php
+++ b/app/Api/V2/Controllers/Model/Budget/ListController.php
@@ -47,6 +47,10 @@ class ListController extends Controller
}
/**
+ * This endpoint is documented at:
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v2)#/budgets/listBudgets
+ *
+ * @param Request $request
* @return JsonResponse
*/
public function index(Request $request): JsonResponse
diff --git a/app/Api/V2/Controllers/Model/Budget/SumController.php b/app/Api/V2/Controllers/Model/Budget/SumController.php
index ebd2f71591..9f7b34dd56 100644
--- a/app/Api/V2/Controllers/Model/Budget/SumController.php
+++ b/app/Api/V2/Controllers/Model/Budget/SumController.php
@@ -44,6 +44,7 @@ class SumController extends Controller
*/
public function __construct()
{
+ parent::__construct();
$this->middleware(
function ($request, $next) {
$this->repository = app(BudgetRepositoryInterface::class);
@@ -53,6 +54,9 @@ class SumController extends Controller
}
/**
+ * This endpoint is documented at:
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v2)#/budgets/getBudgetedForBudget
+ *
* @param DateRequest $request
* @return JsonResponse
*/
@@ -66,6 +70,8 @@ class SumController extends Controller
}
/**
+ * This endpoint is documented at:
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v2)#/budgets/getSpentForBudget
* @param DateRequest $request
* @return JsonResponse
*/
diff --git a/app/Api/V2/Controllers/Model/BudgetLimit/ListController.php b/app/Api/V2/Controllers/Model/BudgetLimit/ListController.php
index 2c4732671e..35f1de3479 100644
--- a/app/Api/V2/Controllers/Model/BudgetLimit/ListController.php
+++ b/app/Api/V2/Controllers/Model/BudgetLimit/ListController.php
@@ -48,6 +48,8 @@ class ListController extends Controller
}
/**
+ * This endpoint is documented at:
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v2)#/budgets/listBudgetLimitByBudget
* @return JsonResponse
*/
public function index(DateRequest $request, Budget $budget): JsonResponse
diff --git a/app/Api/V2/Controllers/NetWorthController.php b/app/Api/V2/Controllers/NetWorthController.php
index f4e1730be0..1ea52301c4 100644
--- a/app/Api/V2/Controllers/NetWorthController.php
+++ b/app/Api/V2/Controllers/NetWorthController.php
@@ -55,6 +55,8 @@ class NetWorthController extends Controller
}
/**
+ * This endpoint is documented at:
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v2)#/net-worth/getNetWorth
* @param SingleDateRequest $request
* @return JsonResponse
*/
diff --git a/app/Api/V2/Controllers/System/PreferencesController.php b/app/Api/V2/Controllers/System/PreferencesController.php
index cd3ac6bd31..46b11a1a81 100644
--- a/app/Api/V2/Controllers/System/PreferencesController.php
+++ b/app/Api/V2/Controllers/System/PreferencesController.php
@@ -35,6 +35,8 @@ use Illuminate\Http\JsonResponse;
class PreferencesController extends Controller
{
/**
+ * This endpoint is documented at:
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v2)#/preferences/getPreference
* @param Preference $preference
* @return JsonResponse
*/
diff --git a/app/Api/V2/Controllers/Transaction/List/AccountController.php b/app/Api/V2/Controllers/Transaction/List/AccountController.php
index 07d6d126d6..b85f88b4ac 100644
--- a/app/Api/V2/Controllers/Transaction/List/AccountController.php
+++ b/app/Api/V2/Controllers/Transaction/List/AccountController.php
@@ -41,6 +41,9 @@ class AccountController extends Controller
use TransactionFilter;
/**
+ * This endpoint is documented at:
+ * https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v2)#/accounts/listTransactionByAccount
+ *
* @param ListRequest $request
* @param Account $account
* @return JsonResponse
diff --git a/app/Transformers/V2/BudgetTransformer.php b/app/Transformers/V2/BudgetTransformer.php
index 80793dd5d0..73794f9089 100644
--- a/app/Transformers/V2/BudgetTransformer.php
+++ b/app/Transformers/V2/BudgetTransformer.php
@@ -97,8 +97,8 @@ class BudgetTransformer extends AbstractTransformer
'id' => (string)$budget->id,
'created_at' => $budget->created_at->toAtomString(),
'updated_at' => $budget->updated_at->toAtomString(),
- 'active' => $budget->active,
'name' => $budget->name,
+ 'active' => $budget->active,
'order' => $budget->order,
// 'notes' => $notes,
// 'auto_budget_type' => $abType,
diff --git a/routes/api.php b/routes/api.php
index e751eb9a91..8379c9ff30 100644
--- a/routes/api.php
+++ b/routes/api.php
@@ -343,7 +343,7 @@ Route::group(
Route::put('{account}', ['uses' => 'UpdateController@update', 'as' => 'update']);
Route::delete('{account}', ['uses' => 'DestroyController@destroy', 'as' => 'delete']);
- Route::get('{account}/piggy_banks', ['uses' => 'ListController@piggyBanks', 'as' => 'piggy_banks']);
+ Route::get('{account}/piggy-banks', ['uses' => 'ListController@piggyBanks', 'as' => 'piggy-banks']);
Route::get('{account}/transactions', ['uses' => 'ListController@transactions', 'as' => 'transactions']);
Route::get('{account}/attachments', ['uses' => 'ListController@attachments', 'as' => 'attachments']);
}
@@ -391,8 +391,8 @@ Route::group(
Route::group(
[
'namespace' => 'FireflyIII\Api\V1\Controllers\Models\AvailableBudget',
- 'prefix' => 'v1/available_budgets',
- 'as' => 'api.v1.available_budgets.',
+ 'prefix' => 'v1/available-budgets',
+ 'as' => 'api.v1.available-budgets.',
],
static function () {
Route::get('', ['uses' => 'ShowController@index', 'as' => 'index']);
@@ -466,7 +466,7 @@ Route::group(
Route::group(
[
'namespace' => 'FireflyIII\Api\V1\Controllers\Models\ObjectGroup',
- 'prefix' => 'v1/object_groups',
+ 'prefix' => 'v1/object-groups',
'as' => 'api.v1.object-groups.',
],
static function () {
@@ -475,7 +475,7 @@ Route::group(
Route::put('{objectGroup}', ['uses' => 'UpdateController@update', 'as' => 'update']);
Route::delete('{objectGroup}', ['uses' => 'DestroyController@destroy', 'as' => 'delete']);
- Route::get('{objectGroup}/piggy_banks', ['uses' => 'ListController@piggyBanks', 'as' => 'piggy_banks']);
+ Route::get('{objectGroup}/piggy-banks', ['uses' => 'ListController@piggyBanks', 'as' => 'piggy-banks']);
Route::get('{objectGroup}/bills', ['uses' => 'ListController@bills', 'as' => 'bills']);
}
);
@@ -484,8 +484,8 @@ Route::group(
Route::group(
[
'namespace' => 'FireflyIII\Api\V1\Controllers\Models\PiggyBank',
- 'prefix' => 'v1/piggy_banks',
- 'as' => 'api.v1.piggy_banks.',
+ 'prefix' => 'v1/piggy-banks',
+ 'as' => 'api.v1.piggy-banks.',
],
static function () {
Route::get('', ['uses' => 'ShowController@index', 'as' => 'index']);
@@ -543,8 +543,8 @@ Route::group(
Route::group(
[
'namespace' => 'FireflyIII\Api\V1\Controllers\Models\RuleGroup',
- 'prefix' => 'v1/rule_groups',
- 'as' => 'api.v1.rule_groups.',
+ 'prefix' => 'v1/rule-groups',
+ 'as' => 'api.v1.rule-groups.',
],
static function () {
Route::get('', ['uses' => 'ShowController@index', 'as' => 'index']);
@@ -592,7 +592,7 @@ Route::group(
Route::delete('{transactionGroup}', ['uses' => 'DestroyController@destroy', 'as' => 'delete']);
Route::get('{transactionGroup}/attachments', ['uses' => 'ListController@attachments', 'as' => 'attachments']);
- Route::get('{transactionGroup}/piggy_bank_events', ['uses' => 'ListController@piggyBankEvents', 'as' => 'piggy_bank_events']);
+ Route::get('{transactionGroup}/piggy-bank-events', ['uses' => 'ListController@piggyBankEvents', 'as' => 'piggy-bank-events']);
}
);
@@ -606,7 +606,7 @@ Route::group(
Route::get('{tj}', ['uses' => 'ShowController@showJournal', 'as' => 'show']);
Route::delete('{tj}', ['uses' => 'DestroyController@destroyJournal', 'as' => 'delete']);
- Route::get('{tj}/links', ['uses' => 'ListController@transactionLinks', 'as' => 'transaction_links']);
+ Route::get('{tj}/links', ['uses' => 'ListController@transactionLinks', 'as' => 'transaction-links']);
}
);
@@ -630,9 +630,9 @@ Route::group(
Route::post('{currency_code}/default', ['uses' => 'UpdateController@makeDefault', 'as' => 'default']);
Route::get('{currency_code}/accounts', ['uses' => 'ListController@accounts', 'as' => 'accounts']);
- Route::get('{currency_code}/available_budgets', ['uses' => 'ListController@availableBudgets', 'as' => 'available_budgets']);
+ Route::get('{currency_code}/available-budgets', ['uses' => 'ListController@availableBudgets', 'as' => 'available-budgets']);
Route::get('{currency_code}/bills', ['uses' => 'ListController@bills', 'as' => 'bills']);
- Route::get('{currency_code}/budget_limits', ['uses' => 'ListController@budgetLimits', 'as' => 'budget_limits']);
+ Route::get('{currency_code}/budget-limits', ['uses' => 'ListController@budgetLimits', 'as' => 'budget-limits']);
Route::get('{currency_code}/cer', ['uses' => 'ListController@cer', 'as' => 'cer']);
Route::get('{currency_code}/recurrences', ['uses' => 'ListController@recurrences', 'as' => 'recurrences']);
Route::get('{currency_code}/rules', ['uses' => 'ListController@rules', 'as' => 'rules']);
@@ -644,8 +644,8 @@ Route::group(
Route::group(
[
'namespace' => 'FireflyIII\Api\V1\Controllers\Models\TransactionLink',
- 'prefix' => 'v1/transaction_links',
- 'as' => 'api.v1.transaction_links.',
+ 'prefix' => 'v1/transaction-links',
+ 'as' => 'api.v1.transaction-links.',
],
static function () {
Route::get('', ['uses' => 'ShowController@index', 'as' => 'index']);
@@ -660,8 +660,8 @@ Route::group(
Route::group(
[
'namespace' => 'FireflyIII\Api\V1\Controllers\Models\TransactionLinkType',
- 'prefix' => 'v1/link_types',
- 'as' => 'api.v1.link_types.',
+ 'prefix' => 'v1/link-types',
+ 'as' => 'api.v1.link-types.',
],
static function () {
Route::get('', ['uses' => 'ShowController@index', 'as' => 'index']);