firefly-iii-client 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/Gemfile +9 -0
- data/README.md +349 -0
- data/Rakefile +10 -0
- data/docs/AboutApi.md +143 -0
- data/docs/Account.md +70 -0
- data/docs/AccountArray.md +20 -0
- data/docs/AccountRead.md +22 -0
- data/docs/AccountSingle.md +18 -0
- data/docs/AccountTypeFilter.md +15 -0
- data/docs/AccountTypeProperty.md +15 -0
- data/docs/AccountsApi.md +531 -0
- data/docs/Attachment.md +44 -0
- data/docs/AttachmentArray.md +20 -0
- data/docs/AttachmentRead.md +24 -0
- data/docs/AttachmentSingle.md +18 -0
- data/docs/AttachmentsApi.md +510 -0
- data/docs/AvailableBudget.md +38 -0
- data/docs/AvailableBudgetArray.md +20 -0
- data/docs/AvailableBudgetRead.md +22 -0
- data/docs/AvailableBudgetSingle.md +18 -0
- data/docs/AvailableBudgetsApi.md +369 -0
- data/docs/BasicSummaryEntry.md +36 -0
- data/docs/Bill.md +50 -0
- data/docs/BillArray.md +20 -0
- data/docs/BillPaidDates.md +22 -0
- data/docs/BillRead.md +22 -0
- data/docs/BillSingle.md +18 -0
- data/docs/BillsApi.md +600 -0
- data/docs/Budget.md +28 -0
- data/docs/BudgetArray.md +20 -0
- data/docs/BudgetLimit.md +38 -0
- data/docs/BudgetLimitArray.md +20 -0
- data/docs/BudgetLimitRead.md +22 -0
- data/docs/BudgetLimitSingle.md +18 -0
- data/docs/BudgetRead.md +22 -0
- data/docs/BudgetSingle.md +18 -0
- data/docs/BudgetSpent.md +26 -0
- data/docs/BudgetsApi.md +897 -0
- data/docs/CategoriesApi.md +446 -0
- data/docs/Category.md +26 -0
- data/docs/CategoryArray.md +20 -0
- data/docs/CategoryEarned.md +30 -0
- data/docs/CategoryRead.md +22 -0
- data/docs/CategorySingle.md +18 -0
- data/docs/CategorySpent.md +30 -0
- data/docs/ChartDataPoint.md +18 -0
- data/docs/ChartDataSet.md +32 -0
- data/docs/ChartsApi.md +374 -0
- data/docs/ConfigurationApi.md +148 -0
- data/docs/ConfigurationUpdate.md +18 -0
- data/docs/CurrenciesApi.md +1198 -0
- data/docs/Currency.md +32 -0
- data/docs/CurrencyArray.md +22 -0
- data/docs/CurrencyExchangeRatesApi.md +86 -0
- data/docs/CurrencyRead.md +22 -0
- data/docs/CurrencySingle.md +18 -0
- data/docs/ExchangeRate.md +22 -0
- data/docs/ExchangeRateArray.md +22 -0
- data/docs/ExchangeRateAttributes.md +44 -0
- data/docs/ImportApi.md +232 -0
- data/docs/ImportJob.md +22 -0
- data/docs/ImportJobArray.md +22 -0
- data/docs/ImportJobAttributes.md +42 -0
- data/docs/ImportJobSingle.md +18 -0
- data/docs/LinkType.md +26 -0
- data/docs/LinkTypeArray.md +22 -0
- data/docs/LinkTypeRead.md +24 -0
- data/docs/LinkTypeSingle.md +18 -0
- data/docs/LinksApi.md +804 -0
- data/docs/Meta.md +18 -0
- data/docs/MetaPagination.md +26 -0
- data/docs/ObjectLink.md +20 -0
- data/docs/ObjectLink0.md +20 -0
- data/docs/PageLink.md +22 -0
- data/docs/PiggyBank.md +54 -0
- data/docs/PiggyBankArray.md +22 -0
- data/docs/PiggyBankEvent.md +24 -0
- data/docs/PiggyBankEventArray.md +22 -0
- data/docs/PiggyBankEventAttributes.md +34 -0
- data/docs/PiggyBankRead.md +24 -0
- data/docs/PiggyBankSingle.md +18 -0
- data/docs/PiggyBanksApi.md +440 -0
- data/docs/Preference.md +24 -0
- data/docs/PreferenceArray.md +22 -0
- data/docs/PreferenceRead.md +22 -0
- data/docs/PreferenceSingle.md +18 -0
- data/docs/PreferencesApi.md +224 -0
- data/docs/Recurrence.md +45 -0
- data/docs/RecurrenceArray.md +22 -0
- data/docs/RecurrenceRead.md +24 -0
- data/docs/RecurrenceRepetition.md +34 -0
- data/docs/RecurrenceSingle.md +18 -0
- data/docs/RecurrenceTransaction.md +68 -0
- data/docs/RecurrencesApi.md +513 -0
- data/docs/Rule.md +42 -0
- data/docs/RuleAction.md +32 -0
- data/docs/RuleArray.md +22 -0
- data/docs/RuleGroup.md +28 -0
- data/docs/RuleGroupArray.md +22 -0
- data/docs/RuleGroupRead.md +24 -0
- data/docs/RuleGroupSingle.md +18 -0
- data/docs/RuleGroupsApi.md +603 -0
- data/docs/RuleRead.md +24 -0
- data/docs/RuleSingle.md +18 -0
- data/docs/RuleTrigger.md +32 -0
- data/docs/RulesApi.md +528 -0
- data/docs/SummaryApi.md +84 -0
- data/docs/SystemConfiguration.md +18 -0
- data/docs/SystemConfigurationData.md +24 -0
- data/docs/SystemInfo.md +18 -0
- data/docs/SystemInfoData.md +26 -0
- data/docs/TagArray.md +22 -0
- data/docs/TagCloud.md +18 -0
- data/docs/TagCloudTag.md +24 -0
- data/docs/TagModel.md +34 -0
- data/docs/TagRead.md +24 -0
- data/docs/TagSingle.md +18 -0
- data/docs/TagsApi.md +523 -0
- data/docs/Transaction.md +26 -0
- data/docs/TransactionArray.md +22 -0
- data/docs/TransactionLink.md +30 -0
- data/docs/TransactionLinkArray.md +22 -0
- data/docs/TransactionLinkRead.md +24 -0
- data/docs/TransactionLinkSingle.md +18 -0
- data/docs/TransactionRead.md +24 -0
- data/docs/TransactionSingle.md +18 -0
- data/docs/TransactionSplit.md +128 -0
- data/docs/TransactionTypeFilter.md +15 -0
- data/docs/TransactionsApi.md +592 -0
- data/docs/User.md +28 -0
- data/docs/UserArray.md +22 -0
- data/docs/UserRead.md +24 -0
- data/docs/UserSingle.md +18 -0
- data/docs/UsersApi.md +365 -0
- data/docs/ValidationError.md +20 -0
- data/docs/ValidationErrorErrors.md +20 -0
- data/firefly-iii-client.gemspec +39 -0
- data/git_push.sh +58 -0
- data/lib/firefly_iii_client.rb +172 -0
- data/lib/firefly_iii_client/api/about_api.rb +136 -0
- data/lib/firefly_iii_client/api/accounts_api.rb +495 -0
- data/lib/firefly_iii_client/api/attachments_api.rb +470 -0
- data/lib/firefly_iii_client/api/available_budgets_api.rb +348 -0
- data/lib/firefly_iii_client/api/bills_api.rb +555 -0
- data/lib/firefly_iii_client/api/budgets_api.rb +866 -0
- data/lib/firefly_iii_client/api/categories_api.rb +417 -0
- data/lib/firefly_iii_client/api/charts_api.rb +383 -0
- data/lib/firefly_iii_client/api/configuration_api.rb +156 -0
- data/lib/firefly_iii_client/api/currencies_api.rb +1089 -0
- data/lib/firefly_iii_client/api/currency_exchange_rates_api.rb +91 -0
- data/lib/firefly_iii_client/api/import_api.rb +220 -0
- data/lib/firefly_iii_client/api/links_api.rb +737 -0
- data/lib/firefly_iii_client/api/piggy_banks_api.rb +408 -0
- data/lib/firefly_iii_client/api/preferences_api.rb +216 -0
- data/lib/firefly_iii_client/api/recurrences_api.rb +472 -0
- data/lib/firefly_iii_client/api/rule_groups_api.rb +559 -0
- data/lib/firefly_iii_client/api/rules_api.rb +493 -0
- data/lib/firefly_iii_client/api/summary_api.rb +96 -0
- data/lib/firefly_iii_client/api/tags_api.rb +491 -0
- data/lib/firefly_iii_client/api/transactions_api.rb +546 -0
- data/lib/firefly_iii_client/api/users_api.rb +342 -0
- data/lib/firefly_iii_client/api_client.rb +390 -0
- data/lib/firefly_iii_client/api_error.rb +57 -0
- data/lib/firefly_iii_client/configuration.rb +277 -0
- data/lib/firefly_iii_client/models/account.rb +564 -0
- data/lib/firefly_iii_client/models/account_array.rb +229 -0
- data/lib/firefly_iii_client/models/account_read.rb +237 -0
- data/lib/firefly_iii_client/models/account_single.rb +218 -0
- data/lib/firefly_iii_client/models/account_type_filter.rb +56 -0
- data/lib/firefly_iii_client/models/account_type_property.rb +47 -0
- data/lib/firefly_iii_client/models/attachment.rb +401 -0
- data/lib/firefly_iii_client/models/attachment_array.rb +229 -0
- data/lib/firefly_iii_client/models/attachment_read.rb +246 -0
- data/lib/firefly_iii_client/models/attachment_single.rb +218 -0
- data/lib/firefly_iii_client/models/available_budget.rb +331 -0
- data/lib/firefly_iii_client/models/available_budget_array.rb +229 -0
- data/lib/firefly_iii_client/models/available_budget_read.rb +237 -0
- data/lib/firefly_iii_client/models/available_budget_single.rb +218 -0
- data/lib/firefly_iii_client/models/basic_summary_entry.rb +307 -0
- data/lib/firefly_iii_client/models/bill.rb +433 -0
- data/lib/firefly_iii_client/models/bill_array.rb +229 -0
- data/lib/firefly_iii_client/models/bill_paid_dates.rb +239 -0
- data/lib/firefly_iii_client/models/bill_read.rb +237 -0
- data/lib/firefly_iii_client/models/bill_single.rb +218 -0
- data/lib/firefly_iii_client/models/budget.rb +271 -0
- data/lib/firefly_iii_client/models/budget_array.rb +229 -0
- data/lib/firefly_iii_client/models/budget_limit.rb +335 -0
- data/lib/firefly_iii_client/models/budget_limit_array.rb +229 -0
- data/lib/firefly_iii_client/models/budget_limit_read.rb +237 -0
- data/lib/firefly_iii_client/models/budget_limit_single.rb +218 -0
- data/lib/firefly_iii_client/models/budget_read.rb +237 -0
- data/lib/firefly_iii_client/models/budget_single.rb +218 -0
- data/lib/firefly_iii_client/models/budget_spent.rb +256 -0
- data/lib/firefly_iii_client/models/category.rb +263 -0
- data/lib/firefly_iii_client/models/category_array.rb +229 -0
- data/lib/firefly_iii_client/models/category_earned.rb +274 -0
- data/lib/firefly_iii_client/models/category_read.rb +237 -0
- data/lib/firefly_iii_client/models/category_single.rb +218 -0
- data/lib/firefly_iii_client/models/category_spent.rb +274 -0
- data/lib/firefly_iii_client/models/chart_data_point.rb +219 -0
- data/lib/firefly_iii_client/models/chart_data_set.rb +289 -0
- data/lib/firefly_iii_client/models/configuration_update.rb +224 -0
- data/lib/firefly_iii_client/models/currency.rb +299 -0
- data/lib/firefly_iii_client/models/currency_array.rb +238 -0
- data/lib/firefly_iii_client/models/currency_read.rb +237 -0
- data/lib/firefly_iii_client/models/currency_single.rb +218 -0
- data/lib/firefly_iii_client/models/exchange_rate.rb +237 -0
- data/lib/firefly_iii_client/models/exchange_rate_array.rb +238 -0
- data/lib/firefly_iii_client/models/exchange_rate_attributes.rb +336 -0
- data/lib/firefly_iii_client/models/import_job.rb +237 -0
- data/lib/firefly_iii_client/models/import_job_array.rb +238 -0
- data/lib/firefly_iii_client/models/import_job_attributes.rb +337 -0
- data/lib/firefly_iii_client/models/import_job_single.rb +218 -0
- data/lib/firefly_iii_client/models/link_type.rb +260 -0
- data/lib/firefly_iii_client/models/link_type_array.rb +238 -0
- data/lib/firefly_iii_client/models/link_type_read.rb +246 -0
- data/lib/firefly_iii_client/models/link_type_single.rb +218 -0
- data/lib/firefly_iii_client/models/meta.rb +218 -0
- data/lib/firefly_iii_client/models/meta_pagination.rb +254 -0
- data/lib/firefly_iii_client/models/object_link.rb +227 -0
- data/lib/firefly_iii_client/models/object_link0.rb +227 -0
- data/lib/firefly_iii_client/models/page_link.rb +236 -0
- data/lib/firefly_iii_client/models/piggy_bank.rb +400 -0
- data/lib/firefly_iii_client/models/piggy_bank_array.rb +238 -0
- data/lib/firefly_iii_client/models/piggy_bank_event.rb +246 -0
- data/lib/firefly_iii_client/models/piggy_bank_event_array.rb +238 -0
- data/lib/firefly_iii_client/models/piggy_bank_event_attributes.rb +291 -0
- data/lib/firefly_iii_client/models/piggy_bank_read.rb +246 -0
- data/lib/firefly_iii_client/models/piggy_bank_single.rb +218 -0
- data/lib/firefly_iii_client/models/preference.rb +251 -0
- data/lib/firefly_iii_client/models/preference_array.rb +238 -0
- data/lib/firefly_iii_client/models/preference_read.rb +237 -0
- data/lib/firefly_iii_client/models/preference_single.rb +218 -0
- data/lib/firefly_iii_client/models/recurrence.rb +395 -0
- data/lib/firefly_iii_client/models/recurrence_array.rb +238 -0
- data/lib/firefly_iii_client/models/recurrence_read.rb +246 -0
- data/lib/firefly_iii_client/models/recurrence_repetition.rb +342 -0
- data/lib/firefly_iii_client/models/recurrence_single.rb +218 -0
- data/lib/firefly_iii_client/models/recurrence_transaction.rb +483 -0
- data/lib/firefly_iii_client/models/rule.rb +395 -0
- data/lib/firefly_iii_client/models/rule_action.rb +326 -0
- data/lib/firefly_iii_client/models/rule_array.rb +238 -0
- data/lib/firefly_iii_client/models/rule_group.rb +268 -0
- data/lib/firefly_iii_client/models/rule_group_array.rb +238 -0
- data/lib/firefly_iii_client/models/rule_group_read.rb +246 -0
- data/lib/firefly_iii_client/models/rule_group_single.rb +218 -0
- data/lib/firefly_iii_client/models/rule_read.rb +246 -0
- data/lib/firefly_iii_client/models/rule_single.rb +218 -0
- data/lib/firefly_iii_client/models/rule_trigger.rb +330 -0
- data/lib/firefly_iii_client/models/system_configuration.rb +218 -0
- data/lib/firefly_iii_client/models/system_configuration_data.rb +248 -0
- data/lib/firefly_iii_client/models/system_info.rb +223 -0
- data/lib/firefly_iii_client/models/system_info_data.rb +279 -0
- data/lib/firefly_iii_client/models/tag_array.rb +238 -0
- data/lib/firefly_iii_client/models/tag_cloud.rb +220 -0
- data/lib/firefly_iii_client/models/tag_cloud_tag.rb +249 -0
- data/lib/firefly_iii_client/models/tag_model.rb +295 -0
- data/lib/firefly_iii_client/models/tag_read.rb +246 -0
- data/lib/firefly_iii_client/models/tag_single.rb +218 -0
- data/lib/firefly_iii_client/models/transaction.rb +263 -0
- data/lib/firefly_iii_client/models/transaction_array.rb +238 -0
- data/lib/firefly_iii_client/models/transaction_link.rb +292 -0
- data/lib/firefly_iii_client/models/transaction_link_array.rb +238 -0
- data/lib/firefly_iii_client/models/transaction_link_read.rb +246 -0
- data/lib/firefly_iii_client/models/transaction_link_single.rb +218 -0
- data/lib/firefly_iii_client/models/transaction_read.rb +246 -0
- data/lib/firefly_iii_client/models/transaction_single.rb +218 -0
- data/lib/firefly_iii_client/models/transaction_split.rb +850 -0
- data/lib/firefly_iii_client/models/transaction_type_filter.rb +49 -0
- data/lib/firefly_iii_client/models/user.rb +320 -0
- data/lib/firefly_iii_client/models/user_array.rb +238 -0
- data/lib/firefly_iii_client/models/user_read.rb +246 -0
- data/lib/firefly_iii_client/models/user_single.rb +218 -0
- data/lib/firefly_iii_client/models/validation_error.rb +227 -0
- data/lib/firefly_iii_client/models/validation_error_errors.rb +231 -0
- data/lib/firefly_iii_client/version.rb +15 -0
- data/spec/api/about_api_spec.rb +57 -0
- data/spec/api/accounts_api_spec.rb +129 -0
- data/spec/api/attachments_api_spec.rb +121 -0
- data/spec/api/available_budgets_api_spec.rb +98 -0
- data/spec/api/bills_api_spec.rb +140 -0
- data/spec/api/budgets_api_spec.rb +194 -0
- data/spec/api/categories_api_spec.rb +112 -0
- data/spec/api/charts_api_spec.rb +101 -0
- data/spec/api/configuration_api_spec.rb +59 -0
- data/spec/api/currencies_api_spec.rb +246 -0
- data/spec/api/currency_exchange_rates_api_spec.rb +50 -0
- data/spec/api/import_api_spec.rb +75 -0
- data/spec/api/links_api_spec.rb +173 -0
- data/spec/api/piggy_banks_api_spec.rb +109 -0
- data/spec/api/preferences_api_spec.rb +72 -0
- data/spec/api/recurrences_api_spec.rb +123 -0
- data/spec/api/rule_groups_api_spec.rb +142 -0
- data/spec/api/rules_api_spec.rb +129 -0
- data/spec/api/summary_api_spec.rb +49 -0
- data/spec/api/tags_api_spec.rb +126 -0
- data/spec/api/transactions_api_spec.rb +137 -0
- data/spec/api/users_api_spec.rb +96 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/account_array_spec.rb +40 -0
- data/spec/models/account_read_spec.rb +46 -0
- data/spec/models/account_single_spec.rb +34 -0
- data/spec/models/account_spec.rb +210 -0
- data/spec/models/account_type_filter_spec.rb +28 -0
- data/spec/models/account_type_property_spec.rb +28 -0
- data/spec/models/attachment_array_spec.rb +40 -0
- data/spec/models/attachment_read_spec.rb +52 -0
- data/spec/models/attachment_single_spec.rb +34 -0
- data/spec/models/attachment_spec.rb +120 -0
- data/spec/models/available_budget_array_spec.rb +40 -0
- data/spec/models/available_budget_read_spec.rb +46 -0
- data/spec/models/available_budget_single_spec.rb +34 -0
- data/spec/models/available_budget_spec.rb +94 -0
- data/spec/models/basic_summary_entry_spec.rb +88 -0
- data/spec/models/bill_array_spec.rb +40 -0
- data/spec/models/bill_paid_dates_spec.rb +46 -0
- data/spec/models/bill_read_spec.rb +46 -0
- data/spec/models/bill_single_spec.rb +34 -0
- data/spec/models/bill_spec.rb +134 -0
- data/spec/models/budget_array_spec.rb +40 -0
- data/spec/models/budget_limit_array_spec.rb +40 -0
- data/spec/models/budget_limit_read_spec.rb +46 -0
- data/spec/models/budget_limit_single_spec.rb +34 -0
- data/spec/models/budget_limit_spec.rb +94 -0
- data/spec/models/budget_read_spec.rb +46 -0
- data/spec/models/budget_single_spec.rb +34 -0
- data/spec/models/budget_spec.rb +64 -0
- data/spec/models/budget_spent_spec.rb +58 -0
- data/spec/models/category_array_spec.rb +40 -0
- data/spec/models/category_earned_spec.rb +70 -0
- data/spec/models/category_read_spec.rb +46 -0
- data/spec/models/category_single_spec.rb +34 -0
- data/spec/models/category_spec.rb +58 -0
- data/spec/models/category_spent_spec.rb +70 -0
- data/spec/models/chart_data_point_spec.rb +34 -0
- data/spec/models/chart_data_set_spec.rb +76 -0
- data/spec/models/configuration_update_spec.rb +34 -0
- data/spec/models/currency_array_spec.rb +46 -0
- data/spec/models/currency_read_spec.rb +46 -0
- data/spec/models/currency_single_spec.rb +34 -0
- data/spec/models/currency_spec.rb +76 -0
- data/spec/models/exchange_rate_array_spec.rb +46 -0
- data/spec/models/exchange_rate_attributes_spec.rb +112 -0
- data/spec/models/exchange_rate_spec.rb +46 -0
- data/spec/models/import_job_array_spec.rb +46 -0
- data/spec/models/import_job_attributes_spec.rb +106 -0
- data/spec/models/import_job_single_spec.rb +34 -0
- data/spec/models/import_job_spec.rb +46 -0
- data/spec/models/link_type_array_spec.rb +46 -0
- data/spec/models/link_type_read_spec.rb +52 -0
- data/spec/models/link_type_single_spec.rb +34 -0
- data/spec/models/link_type_spec.rb +52 -0
- data/spec/models/meta_pagination_spec.rb +58 -0
- data/spec/models/meta_spec.rb +34 -0
- data/spec/models/object_link0_spec.rb +40 -0
- data/spec/models/object_link_spec.rb +40 -0
- data/spec/models/page_link_spec.rb +46 -0
- data/spec/models/piggy_bank_array_spec.rb +46 -0
- data/spec/models/piggy_bank_event_array_spec.rb +46 -0
- data/spec/models/piggy_bank_event_attributes_spec.rb +82 -0
- data/spec/models/piggy_bank_event_spec.rb +52 -0
- data/spec/models/piggy_bank_read_spec.rb +52 -0
- data/spec/models/piggy_bank_single_spec.rb +34 -0
- data/spec/models/piggy_bank_spec.rb +142 -0
- data/spec/models/preference_array_spec.rb +46 -0
- data/spec/models/preference_read_spec.rb +46 -0
- data/spec/models/preference_single_spec.rb +34 -0
- data/spec/models/preference_spec.rb +52 -0
- data/spec/models/recurrence_array_spec.rb +46 -0
- data/spec/models/recurrence_read_spec.rb +52 -0
- data/spec/models/recurrence_repetition_spec.rb +86 -0
- data/spec/models/recurrence_single_spec.rb +34 -0
- data/spec/models/recurrence_spec.rb +116 -0
- data/spec/models/recurrence_transaction_spec.rb +184 -0
- data/spec/models/rule_action_spec.rb +80 -0
- data/spec/models/rule_array_spec.rb +46 -0
- data/spec/models/rule_group_array_spec.rb +46 -0
- data/spec/models/rule_group_read_spec.rb +52 -0
- data/spec/models/rule_group_single_spec.rb +34 -0
- data/spec/models/rule_group_spec.rb +64 -0
- data/spec/models/rule_read_spec.rb +52 -0
- data/spec/models/rule_single_spec.rb +34 -0
- data/spec/models/rule_spec.rb +110 -0
- data/spec/models/rule_trigger_spec.rb +80 -0
- data/spec/models/system_configuration_data_spec.rb +52 -0
- data/spec/models/system_configuration_spec.rb +34 -0
- data/spec/models/system_info_data_spec.rb +58 -0
- data/spec/models/system_info_spec.rb +34 -0
- data/spec/models/tag_array_spec.rb +46 -0
- data/spec/models/tag_cloud_spec.rb +34 -0
- data/spec/models/tag_cloud_tag_spec.rb +52 -0
- data/spec/models/tag_model_spec.rb +76 -0
- data/spec/models/tag_read_spec.rb +52 -0
- data/spec/models/tag_single_spec.rb +34 -0
- data/spec/models/transaction_array_spec.rb +46 -0
- data/spec/models/transaction_link_array_spec.rb +46 -0
- data/spec/models/transaction_link_read_spec.rb +52 -0
- data/spec/models/transaction_link_single_spec.rb +34 -0
- data/spec/models/transaction_link_spec.rb +70 -0
- data/spec/models/transaction_read_spec.rb +52 -0
- data/spec/models/transaction_single_spec.rb +34 -0
- data/spec/models/transaction_spec.rb +58 -0
- data/spec/models/transaction_split_spec.rb +368 -0
- data/spec/models/transaction_type_filter_spec.rb +28 -0
- data/spec/models/user_array_spec.rb +46 -0
- data/spec/models/user_read_spec.rb +52 -0
- data/spec/models/user_single_spec.rb +34 -0
- data/spec/models/user_spec.rb +72 -0
- data/spec/models/validation_error_errors_spec.rb +40 -0
- data/spec/models/validation_error_spec.rb +40 -0
- data/spec/spec_helper.rb +111 -0
- metadata +495 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: c209cfb140a27926af42796eaae5e41abfdddedee40cd958c319d949987a860b
|
4
|
+
data.tar.gz: ca55e25ab6b2edc60fbb8c54ca9fe058c1fa2f44f85d976e8fd3233eae295dc5
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: b5693c8f94a6a6ddff31640166ff1f08860b512ec01a7a728a59c6c75ac8e768cb8850d2e33520ef1c4f0fcc9135fe12ca956626f6a875a0b3bf539136ba673f
|
7
|
+
data.tar.gz: 618aa5b0c81a9b094a69c0eca0e1ec73f655a5a98b90fcd4a1c9ad4c87303350675c1211f4c9b5f3739029a4d4e6c12942f8ef050303430a71bde23ad0e7c8af
|
data/Gemfile
ADDED
data/README.md
ADDED
@@ -0,0 +1,349 @@
|
|
1
|
+
# openapi_client
|
2
|
+
|
3
|
+
OpenapiClient - the Ruby gem for the Firefly III API
|
4
|
+
|
5
|
+
This is the official documentation of the Firefly III API. You can find accompanying documentation on the website of Firefly III itself (see below). Please report any bugs or issues. This version of the API is live from version v4.7.9 and onwards. You may use the \"Authorize\" button to try the API below.
|
6
|
+
|
7
|
+
|
8
|
+
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
9
|
+
|
10
|
+
- API version: 0.10.4-modified
|
11
|
+
- Package version: 1.0.0
|
12
|
+
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
13
|
+
For more information, please visit [https://firefly-iii.org](https://firefly-iii.org)
|
14
|
+
|
15
|
+
## Installation
|
16
|
+
|
17
|
+
### Build a gem
|
18
|
+
|
19
|
+
To build the Ruby code into a gem:
|
20
|
+
|
21
|
+
```shell
|
22
|
+
gem build firefly-iii-client.gemspec
|
23
|
+
```
|
24
|
+
|
25
|
+
Then either install the gem locally:
|
26
|
+
|
27
|
+
```shell
|
28
|
+
gem install ./firefly_iii_client-1.0.0.gem
|
29
|
+
```
|
30
|
+
|
31
|
+
(for development, run `gem install --dev ./openapi_client-1.0.0.gem` to install the development dependencies)
|
32
|
+
|
33
|
+
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
34
|
+
|
35
|
+
Finally add this to the Gemfile:
|
36
|
+
|
37
|
+
gem 'openapi_client', '~> 1.0.0'
|
38
|
+
|
39
|
+
### Install from Git
|
40
|
+
|
41
|
+
If the Ruby gem is hosted at a git repository: https://github.com/GIT_USER_ID/GIT_REPO_ID, then add the following in the Gemfile:
|
42
|
+
|
43
|
+
gem 'openapi_client', :git => 'https://github.com/GIT_USER_ID/GIT_REPO_ID.git'
|
44
|
+
|
45
|
+
### Include the Ruby code directly
|
46
|
+
|
47
|
+
Include the Ruby code directly using `-I` as follows:
|
48
|
+
|
49
|
+
```shell
|
50
|
+
ruby -Ilib script.rb
|
51
|
+
```
|
52
|
+
|
53
|
+
## Getting Started
|
54
|
+
|
55
|
+
Please follow the [installation](#installation) procedure and then run the following code:
|
56
|
+
|
57
|
+
```ruby
|
58
|
+
# Load the gem
|
59
|
+
require 'firefly_iii_client'
|
60
|
+
|
61
|
+
# Setup authorization
|
62
|
+
FireflyIIIClient.configure do |config|
|
63
|
+
# Configure OAuth2 access token for authorization: firefly_iii_auth
|
64
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
65
|
+
end
|
66
|
+
|
67
|
+
api_instance = FireflyIIIClient::AboutApi.new
|
68
|
+
|
69
|
+
begin
|
70
|
+
#System information end point.
|
71
|
+
result = api_instance.get_about
|
72
|
+
p result
|
73
|
+
rescue FireflyIIIClient::ApiError => e
|
74
|
+
puts "Exception when calling AboutApi->get_about: #{e}"
|
75
|
+
end
|
76
|
+
|
77
|
+
```
|
78
|
+
|
79
|
+
## Documentation for API Endpoints
|
80
|
+
|
81
|
+
All URIs are relative to *https://demo.firefly-iii.org*
|
82
|
+
|
83
|
+
Class | Method | HTTP request | Description
|
84
|
+
------------ | ------------- | ------------- | -------------
|
85
|
+
*OpenapiClient::AboutApi* | [**get_about**](docs/AboutApi.md#get_about) | **GET** /api/v1/about | System information end point.
|
86
|
+
*OpenapiClient::AboutApi* | [**get_current_user**](docs/AboutApi.md#get_current_user) | **GET** /api/v1/about/user | Currently authenticated user endpoint.
|
87
|
+
*OpenapiClient::AccountsApi* | [**delete_account**](docs/AccountsApi.md#delete_account) | **DELETE** /api/v1/accounts/{id} | Permanently delete account.
|
88
|
+
*OpenapiClient::AccountsApi* | [**get_account**](docs/AccountsApi.md#get_account) | **GET** /api/v1/accounts/{id} | Get single account.
|
89
|
+
*OpenapiClient::AccountsApi* | [**list_account**](docs/AccountsApi.md#list_account) | **GET** /api/v1/accounts | List all accounts.
|
90
|
+
*OpenapiClient::AccountsApi* | [**list_piggy_bank_by_account**](docs/AccountsApi.md#list_piggy_bank_by_account) | **GET** /api/v1/accounts/{id}/piggy_banks | List all piggy banks related to the account.
|
91
|
+
*OpenapiClient::AccountsApi* | [**list_transaction_by_account**](docs/AccountsApi.md#list_transaction_by_account) | **GET** /api/v1/accounts/{id}/transactions | List all transactions related to the account.
|
92
|
+
*OpenapiClient::AccountsApi* | [**store_account**](docs/AccountsApi.md#store_account) | **POST** /api/v1/accounts | Create new account.
|
93
|
+
*OpenapiClient::AccountsApi* | [**update_account**](docs/AccountsApi.md#update_account) | **PUT** /api/v1/accounts/{id} | Update existing account.
|
94
|
+
*OpenapiClient::AttachmentsApi* | [**delete_attachment**](docs/AttachmentsApi.md#delete_attachment) | **DELETE** /api/v1/attachments/{id} | Delete an attachment.
|
95
|
+
*OpenapiClient::AttachmentsApi* | [**download_attachment**](docs/AttachmentsApi.md#download_attachment) | **GET** /api/v1/attachments/{id}/download | Download a single attachment.
|
96
|
+
*OpenapiClient::AttachmentsApi* | [**get_attachment**](docs/AttachmentsApi.md#get_attachment) | **GET** /api/v1/attachments/{id} | Get a single attachment.
|
97
|
+
*OpenapiClient::AttachmentsApi* | [**list_attachment**](docs/AttachmentsApi.md#list_attachment) | **GET** /api/v1/attachments | List all attachments.
|
98
|
+
*OpenapiClient::AttachmentsApi* | [**store_attachment**](docs/AttachmentsApi.md#store_attachment) | **POST** /api/v1/attachments | Store a new attachment.
|
99
|
+
*OpenapiClient::AttachmentsApi* | [**update_attachment**](docs/AttachmentsApi.md#update_attachment) | **PUT** /api/v1/attachments/{id} | Update existing attachment.
|
100
|
+
*OpenapiClient::AttachmentsApi* | [**upload_attachment**](docs/AttachmentsApi.md#upload_attachment) | **POST** /api/v1/attachments/{id}/upload | Upload an attachment.
|
101
|
+
*OpenapiClient::AvailableBudgetsApi* | [**delete_available_budget**](docs/AvailableBudgetsApi.md#delete_available_budget) | **DELETE** /api/v1/available_budgets/{id} | Delete an available budget.
|
102
|
+
*OpenapiClient::AvailableBudgetsApi* | [**get_available_budget**](docs/AvailableBudgetsApi.md#get_available_budget) | **GET** /api/v1/available_budgets/{id} | Get a single available budget.
|
103
|
+
*OpenapiClient::AvailableBudgetsApi* | [**list_available_budget**](docs/AvailableBudgetsApi.md#list_available_budget) | **GET** /api/v1/available_budgets | List all available budget amounts.
|
104
|
+
*OpenapiClient::AvailableBudgetsApi* | [**store_available_budget**](docs/AvailableBudgetsApi.md#store_available_budget) | **POST** /api/v1/available_budgets | Store a new available budget
|
105
|
+
*OpenapiClient::AvailableBudgetsApi* | [**update_available_budget**](docs/AvailableBudgetsApi.md#update_available_budget) | **PUT** /api/v1/available_budgets/{id} | Update existing available budget, to change for example the date range of the amount or the amount itself.
|
106
|
+
*OpenapiClient::BillsApi* | [**delete_bill**](docs/BillsApi.md#delete_bill) | **DELETE** /api/v1/bills/{id} | Delete a bill.
|
107
|
+
*OpenapiClient::BillsApi* | [**get_bill**](docs/BillsApi.md#get_bill) | **GET** /api/v1/bills/{id} | Get a single bill.
|
108
|
+
*OpenapiClient::BillsApi* | [**list_attachment_by_bill**](docs/BillsApi.md#list_attachment_by_bill) | **GET** /api/v1/bills/{id}/attachments | List all attachments uploaded to the bill.
|
109
|
+
*OpenapiClient::BillsApi* | [**list_bill**](docs/BillsApi.md#list_bill) | **GET** /api/v1/bills | List all bills.
|
110
|
+
*OpenapiClient::BillsApi* | [**list_rule_by_bill**](docs/BillsApi.md#list_rule_by_bill) | **GET** /api/v1/bills/{id}/rules | List all rules associated with the bill.
|
111
|
+
*OpenapiClient::BillsApi* | [**list_transaction_by_bill**](docs/BillsApi.md#list_transaction_by_bill) | **GET** /api/v1/bills/{id}/transactions | List all transactions associated with the bill.
|
112
|
+
*OpenapiClient::BillsApi* | [**store_bill**](docs/BillsApi.md#store_bill) | **POST** /api/v1/bills | Store a new bill
|
113
|
+
*OpenapiClient::BillsApi* | [**update_bill**](docs/BillsApi.md#update_bill) | **PUT** /api/v1/bills/{id} | Update existing bill.
|
114
|
+
*OpenapiClient::BudgetsApi* | [**delete_budget**](docs/BudgetsApi.md#delete_budget) | **DELETE** /api/v1/budgets/{id} | Delete a budget.
|
115
|
+
*OpenapiClient::BudgetsApi* | [**delete_budget_limit**](docs/BudgetsApi.md#delete_budget_limit) | **DELETE** /api/v1/budgets/limits/{id} | Delete a budget limit.
|
116
|
+
*OpenapiClient::BudgetsApi* | [**get_budget**](docs/BudgetsApi.md#get_budget) | **GET** /api/v1/budgets/{id} | Get a single budget.
|
117
|
+
*OpenapiClient::BudgetsApi* | [**get_budget_limit**](docs/BudgetsApi.md#get_budget_limit) | **GET** /api/v1/budgets/limits/{id} | Get single budget limit.
|
118
|
+
*OpenapiClient::BudgetsApi* | [**list_budget**](docs/BudgetsApi.md#list_budget) | **GET** /api/v1/budgets | List all budgets.
|
119
|
+
*OpenapiClient::BudgetsApi* | [**list_budget_limit_by_budget**](docs/BudgetsApi.md#list_budget_limit_by_budget) | **GET** /api/v1/budgets/{id}/limits | Get all limits
|
120
|
+
*OpenapiClient::BudgetsApi* | [**list_transaction_by_budget**](docs/BudgetsApi.md#list_transaction_by_budget) | **GET** /api/v1/budgets/{id}/transactions | All transactions to a budget.
|
121
|
+
*OpenapiClient::BudgetsApi* | [**list_transaction_by_budget_limit**](docs/BudgetsApi.md#list_transaction_by_budget_limit) | **GET** /api/v1/budgets/limits/{id}/transactions | List all transactions by a budget limit ID.
|
122
|
+
*OpenapiClient::BudgetsApi* | [**store_budget**](docs/BudgetsApi.md#store_budget) | **POST** /api/v1/budgets | Store a new budget
|
123
|
+
*OpenapiClient::BudgetsApi* | [**store_budget_limit**](docs/BudgetsApi.md#store_budget_limit) | **POST** /api/v1/budgets/{id}/limits | Store new budget limit.
|
124
|
+
*OpenapiClient::BudgetsApi* | [**update_budget**](docs/BudgetsApi.md#update_budget) | **PUT** /api/v1/budgets/{id} | Update existing budget.
|
125
|
+
*OpenapiClient::BudgetsApi* | [**update_budget_limit**](docs/BudgetsApi.md#update_budget_limit) | **PUT** /api/v1/budgets/limits/{id} | Update existing budget limit.
|
126
|
+
*OpenapiClient::CategoriesApi* | [**delete_category**](docs/CategoriesApi.md#delete_category) | **DELETE** /api/v1/categories/{id} | Delete a category.
|
127
|
+
*OpenapiClient::CategoriesApi* | [**get_category**](docs/CategoriesApi.md#get_category) | **GET** /api/v1/categories/{id} | Get a single category.
|
128
|
+
*OpenapiClient::CategoriesApi* | [**list_category**](docs/CategoriesApi.md#list_category) | **GET** /api/v1/categories | List all categories.
|
129
|
+
*OpenapiClient::CategoriesApi* | [**list_transaction_by_category**](docs/CategoriesApi.md#list_transaction_by_category) | **GET** /api/v1/categories/{id}/transactions | List all transactions in a category.
|
130
|
+
*OpenapiClient::CategoriesApi* | [**store_category**](docs/CategoriesApi.md#store_category) | **POST** /api/v1/categories | Store a new category
|
131
|
+
*OpenapiClient::CategoriesApi* | [**update_category**](docs/CategoriesApi.md#update_category) | **PUT** /api/v1/categories/{id} | Update existing category.
|
132
|
+
*OpenapiClient::ChartsApi* | [**get_chart_ab_overview**](docs/ChartsApi.md#get_chart_ab_overview) | **GET** /api/v1/chart/ab/overview/{id} | Dashboard chart with an overview of the available budget.
|
133
|
+
*OpenapiClient::ChartsApi* | [**get_chart_account_expense**](docs/ChartsApi.md#get_chart_account_expense) | **GET** /api/v1/chart/account/expense | Dashboard chart with expense account balance information.
|
134
|
+
*OpenapiClient::ChartsApi* | [**get_chart_account_overview**](docs/ChartsApi.md#get_chart_account_overview) | **GET** /api/v1/chart/account/overview | Dashboard chart with asset account balance information.
|
135
|
+
*OpenapiClient::ChartsApi* | [**get_chart_account_revenue**](docs/ChartsApi.md#get_chart_account_revenue) | **GET** /api/v1/chart/account/revenue | Dashboard chart with revenue account balance information.
|
136
|
+
*OpenapiClient::ChartsApi* | [**get_chart_category_overview**](docs/ChartsApi.md#get_chart_category_overview) | **GET** /api/v1/chart/category/overview | Dashboard chart with an overview of the users categories.
|
137
|
+
*OpenapiClient::ConfigurationApi* | [**get_configuration**](docs/ConfigurationApi.md#get_configuration) | **GET** /api/v1/configuration | Get Firefly III system configuration.
|
138
|
+
*OpenapiClient::ConfigurationApi* | [**set_configuration**](docs/ConfigurationApi.md#set_configuration) | **POST** /api/v1/configuration/{name} | Update configuration
|
139
|
+
*OpenapiClient::CurrenciesApi* | [**default_currency**](docs/CurrenciesApi.md#default_currency) | **POST** /api/v1/currencies/{code}/default | Make currency default currency.
|
140
|
+
*OpenapiClient::CurrenciesApi* | [**delete_currency**](docs/CurrenciesApi.md#delete_currency) | **DELETE** /api/v1/currencies/{code} | Delete a currency.
|
141
|
+
*OpenapiClient::CurrenciesApi* | [**disable_currency**](docs/CurrenciesApi.md#disable_currency) | **POST** /api/v1/currencies/{code}/disable | Disable a currency.
|
142
|
+
*OpenapiClient::CurrenciesApi* | [**enable_currency**](docs/CurrenciesApi.md#enable_currency) | **POST** /api/v1/currencies/{code}/enable | Enable a single currency.
|
143
|
+
*OpenapiClient::CurrenciesApi* | [**get_currency**](docs/CurrenciesApi.md#get_currency) | **GET** /api/v1/currencies/{code} | Get a single currency.
|
144
|
+
*OpenapiClient::CurrenciesApi* | [**list_account_by_currency**](docs/CurrenciesApi.md#list_account_by_currency) | **GET** /api/v1/currencies/{code}/accounts | List all accounts with this currency.
|
145
|
+
*OpenapiClient::CurrenciesApi* | [**list_available_budget_by_currency**](docs/CurrenciesApi.md#list_available_budget_by_currency) | **GET** /api/v1/currencies/{code}/available_budgets | List all available budgets with this currency.
|
146
|
+
*OpenapiClient::CurrenciesApi* | [**list_bill_by_currency**](docs/CurrenciesApi.md#list_bill_by_currency) | **GET** /api/v1/currencies/{code}/bills | List all bills with this currency.
|
147
|
+
*OpenapiClient::CurrenciesApi* | [**list_budget_limit_by_currency**](docs/CurrenciesApi.md#list_budget_limit_by_currency) | **GET** /api/v1/currencies/{code}/budget_limits | List all budget limits with this currency
|
148
|
+
*OpenapiClient::CurrenciesApi* | [**list_currency**](docs/CurrenciesApi.md#list_currency) | **GET** /api/v1/currencies | List all currencies.
|
149
|
+
*OpenapiClient::CurrenciesApi* | [**list_exchange_rate_by_currency**](docs/CurrenciesApi.md#list_exchange_rate_by_currency) | **GET** /api/v1/currencies/{code}/cer | List all known exchange rates with (from or to) this currency.
|
150
|
+
*OpenapiClient::CurrenciesApi* | [**list_recurrence_by_currency**](docs/CurrenciesApi.md#list_recurrence_by_currency) | **GET** /api/v1/currencies/{code}/recurrences | List all recurring transactions with this currency.
|
151
|
+
*OpenapiClient::CurrenciesApi* | [**list_rule_by_currency**](docs/CurrenciesApi.md#list_rule_by_currency) | **GET** /api/v1/currencies/{code}/rules | List all rules with this currency.
|
152
|
+
*OpenapiClient::CurrenciesApi* | [**list_transaction_by_currency**](docs/CurrenciesApi.md#list_transaction_by_currency) | **GET** /api/v1/currencies/{code}/transactions | List all transactions with this currency.
|
153
|
+
*OpenapiClient::CurrenciesApi* | [**store_currency**](docs/CurrenciesApi.md#store_currency) | **POST** /api/v1/currencies | Store a new currency
|
154
|
+
*OpenapiClient::CurrenciesApi* | [**update_currency**](docs/CurrenciesApi.md#update_currency) | **PUT** /api/v1/currencies/{code} | Update existing currency.
|
155
|
+
*OpenapiClient::CurrencyExchangeRatesApi* | [**get_exchange_rate**](docs/CurrencyExchangeRatesApi.md#get_exchange_rate) | **GET** /api/v1/cer | Get an exchange rate.
|
156
|
+
*OpenapiClient::ImportApi* | [**get_import**](docs/ImportApi.md#get_import) | **GET** /api/v1/import/{key} | Show info on a single import
|
157
|
+
*OpenapiClient::ImportApi* | [**list_import**](docs/ImportApi.md#list_import) | **GET** /api/v1/import/list | List al imports
|
158
|
+
*OpenapiClient::ImportApi* | [**list_transaction_by_import**](docs/ImportApi.md#list_transaction_by_import) | **GET** /api/v1/import/{key}/transactions | List all transactions related to the import job. The correlation is made through the tag.
|
159
|
+
*OpenapiClient::LinksApi* | [**delete_link_type**](docs/LinksApi.md#delete_link_type) | **DELETE** /api/v1/link_types/{id} | Permanently delete link type.
|
160
|
+
*OpenapiClient::LinksApi* | [**delete_transaction_link**](docs/LinksApi.md#delete_transaction_link) | **DELETE** /api/v1/transaction_links/{id} | Permanently delete link between transactions.
|
161
|
+
*OpenapiClient::LinksApi* | [**get_link_type**](docs/LinksApi.md#get_link_type) | **GET** /api/v1/link_types/{id} | Get single a link type.
|
162
|
+
*OpenapiClient::LinksApi* | [**get_transaction_link**](docs/LinksApi.md#get_transaction_link) | **GET** /api/v1/transaction_links/{id} | Get a single link.
|
163
|
+
*OpenapiClient::LinksApi* | [**list_link_type**](docs/LinksApi.md#list_link_type) | **GET** /api/v1/link_types | List all types of links.
|
164
|
+
*OpenapiClient::LinksApi* | [**list_transaction_by_link_type**](docs/LinksApi.md#list_transaction_by_link_type) | **GET** /api/v1/link_types/{id}/transactions | List all transactions under this link type.
|
165
|
+
*OpenapiClient::LinksApi* | [**list_transaction_link**](docs/LinksApi.md#list_transaction_link) | **GET** /api/v1/transaction_links | List all transaction links.
|
166
|
+
*OpenapiClient::LinksApi* | [**store_link_type**](docs/LinksApi.md#store_link_type) | **POST** /api/v1/link_types | Create a new link type
|
167
|
+
*OpenapiClient::LinksApi* | [**store_transaction_link**](docs/LinksApi.md#store_transaction_link) | **POST** /api/v1/transaction_links | Create a new link between transactions
|
168
|
+
*OpenapiClient::LinksApi* | [**update_link_type**](docs/LinksApi.md#update_link_type) | **PUT** /api/v1/link_types/{id} | Update existing link type.
|
169
|
+
*OpenapiClient::LinksApi* | [**update_transaction_link**](docs/LinksApi.md#update_transaction_link) | **PUT** /api/v1/transaction_links/{id} | Update an existing link between transactions.
|
170
|
+
*OpenapiClient::PiggyBanksApi* | [**delete_piggy_bank**](docs/PiggyBanksApi.md#delete_piggy_bank) | **DELETE** /api/v1/piggy_banks/{id} | Delete a piggy bank.
|
171
|
+
*OpenapiClient::PiggyBanksApi* | [**get_piggy_bank**](docs/PiggyBanksApi.md#get_piggy_bank) | **GET** /api/v1/piggy_banks/{id} | Get a single piggy bank.
|
172
|
+
*OpenapiClient::PiggyBanksApi* | [**list_event_by_piggy_bank**](docs/PiggyBanksApi.md#list_event_by_piggy_bank) | **GET** /api/v1/piggy_banks/{id}/events | List all events linked to a piggy bank.
|
173
|
+
*OpenapiClient::PiggyBanksApi* | [**list_piggy_bank**](docs/PiggyBanksApi.md#list_piggy_bank) | **GET** /api/v1/piggy_banks | List all piggy banks.
|
174
|
+
*OpenapiClient::PiggyBanksApi* | [**store_piggy_bank**](docs/PiggyBanksApi.md#store_piggy_bank) | **POST** /api/v1/piggy_banks | Store a new piggy bank
|
175
|
+
*OpenapiClient::PiggyBanksApi* | [**update_piggy_bank**](docs/PiggyBanksApi.md#update_piggy_bank) | **PUT** /api/v1/piggy_banks/{id} | Update existing piggy bank.
|
176
|
+
*OpenapiClient::PreferencesApi* | [**get_preference**](docs/PreferencesApi.md#get_preference) | **GET** /api/v1/preferences/{name} | Return a single preference.
|
177
|
+
*OpenapiClient::PreferencesApi* | [**list_preference**](docs/PreferencesApi.md#list_preference) | **GET** /api/v1/preferences | List all users preferences.
|
178
|
+
*OpenapiClient::PreferencesApi* | [**update_preference**](docs/PreferencesApi.md#update_preference) | **PUT** /api/v1/preferences/{name} | Update preference
|
179
|
+
*OpenapiClient::RecurrencesApi* | [**delete_recurrence**](docs/RecurrencesApi.md#delete_recurrence) | **DELETE** /api/v1/recurrences/{id} | Delete a recurring transaction.
|
180
|
+
*OpenapiClient::RecurrencesApi* | [**get_recurrence**](docs/RecurrencesApi.md#get_recurrence) | **GET** /api/v1/recurrences/{id} | Get a single recurring transaction.
|
181
|
+
*OpenapiClient::RecurrencesApi* | [**list_recurrence**](docs/RecurrencesApi.md#list_recurrence) | **GET** /api/v1/recurrences | List all recurring transactions.
|
182
|
+
*OpenapiClient::RecurrencesApi* | [**list_transaction_by_recurrence**](docs/RecurrencesApi.md#list_transaction_by_recurrence) | **GET** /api/v1/recurrences/{id}/transactions | List all transactions created by a recurring transaction.
|
183
|
+
*OpenapiClient::RecurrencesApi* | [**store_recurrence**](docs/RecurrencesApi.md#store_recurrence) | **POST** /api/v1/recurrences | Store a new recurring transaction
|
184
|
+
*OpenapiClient::RecurrencesApi* | [**trigger_recurrence**](docs/RecurrencesApi.md#trigger_recurrence) | **POST** /api/v1/recurrences/trigger | Trigger the creation of recurring transactions (like a cron job).
|
185
|
+
*OpenapiClient::RecurrencesApi* | [**update_recurrence**](docs/RecurrencesApi.md#update_recurrence) | **PUT** /api/v1/recurrences/{id} | Update existing recurring transaction.
|
186
|
+
*OpenapiClient::RuleGroupsApi* | [**delete_rule_group**](docs/RuleGroupsApi.md#delete_rule_group) | **DELETE** /api/v1/rule_groups/{id} | Delete a rule group.
|
187
|
+
*OpenapiClient::RuleGroupsApi* | [**fire_rule_group**](docs/RuleGroupsApi.md#fire_rule_group) | **POST** /api/v1/rule_groups/{id}/trigger | Fire the rule group on your transactions.
|
188
|
+
*OpenapiClient::RuleGroupsApi* | [**get_rule_group**](docs/RuleGroupsApi.md#get_rule_group) | **GET** /api/v1/rule_groups/{id} | Get a single rule group.
|
189
|
+
*OpenapiClient::RuleGroupsApi* | [**list_rule_by_group**](docs/RuleGroupsApi.md#list_rule_by_group) | **GET** /api/v1/rule_groups/{id}/rules | List rules in this rule group.
|
190
|
+
*OpenapiClient::RuleGroupsApi* | [**list_rule_group**](docs/RuleGroupsApi.md#list_rule_group) | **GET** /api/v1/rule_groups | List all rule groups.
|
191
|
+
*OpenapiClient::RuleGroupsApi* | [**store_rule_group**](docs/RuleGroupsApi.md#store_rule_group) | **POST** /api/v1/rule_groups | Store a new rule group.
|
192
|
+
*OpenapiClient::RuleGroupsApi* | [**test_rule_group**](docs/RuleGroupsApi.md#test_rule_group) | **GET** /api/v1/rule_groups/{id}/test | Test which transactions would be hit by the rule group. No changes will be made.
|
193
|
+
*OpenapiClient::RuleGroupsApi* | [**update_rule_group**](docs/RuleGroupsApi.md#update_rule_group) | **PUT** /api/v1/rule_groups/{id} | Update existing rule group.
|
194
|
+
*OpenapiClient::RulesApi* | [**delete_rule**](docs/RulesApi.md#delete_rule) | **DELETE** /api/v1/rules/{id} | Delete an rule.
|
195
|
+
*OpenapiClient::RulesApi* | [**fire_rule**](docs/RulesApi.md#fire_rule) | **POST** /api/v1/rules/{id}/trigger | Fire the rule on your transactions.
|
196
|
+
*OpenapiClient::RulesApi* | [**get_rule**](docs/RulesApi.md#get_rule) | **GET** /api/v1/rules/{id} | Get a single rule.
|
197
|
+
*OpenapiClient::RulesApi* | [**list_rule**](docs/RulesApi.md#list_rule) | **GET** /api/v1/rules | List all rules.
|
198
|
+
*OpenapiClient::RulesApi* | [**store_rule**](docs/RulesApi.md#store_rule) | **POST** /api/v1/rules | Store a new rule
|
199
|
+
*OpenapiClient::RulesApi* | [**test_rule**](docs/RulesApi.md#test_rule) | **GET** /api/v1/rules/{id}/test | Test which transactions would be hit by the rule. No changes will be made.
|
200
|
+
*OpenapiClient::RulesApi* | [**update_rule**](docs/RulesApi.md#update_rule) | **PUT** /api/v1/rules/{id} | Update existing rule.
|
201
|
+
*OpenapiClient::SummaryApi* | [**get_basic_summary**](docs/SummaryApi.md#get_basic_summary) | **GET** /api/v1/summary/basic | Returns basic sums of the users data.
|
202
|
+
*OpenapiClient::TagsApi* | [**delete_tag**](docs/TagsApi.md#delete_tag) | **DELETE** /api/v1/tags/{tag} | Delete an tag.
|
203
|
+
*OpenapiClient::TagsApi* | [**get_tag**](docs/TagsApi.md#get_tag) | **GET** /api/v1/tags/{tag} | Get a single tag.
|
204
|
+
*OpenapiClient::TagsApi* | [**get_tag_cloud**](docs/TagsApi.md#get_tag_cloud) | **GET** /api/v1/tag-cloud | Returns a basic tag cloud.
|
205
|
+
*OpenapiClient::TagsApi* | [**list_tag**](docs/TagsApi.md#list_tag) | **GET** /api/v1/tags | List all tags.
|
206
|
+
*OpenapiClient::TagsApi* | [**list_transaction_by_tag**](docs/TagsApi.md#list_transaction_by_tag) | **GET** /api/v1/tags/{tag}/transactions | List all transactions with this tag.
|
207
|
+
*OpenapiClient::TagsApi* | [**store_tag**](docs/TagsApi.md#store_tag) | **POST** /api/v1/tags | Store a new tag
|
208
|
+
*OpenapiClient::TagsApi* | [**update_tag**](docs/TagsApi.md#update_tag) | **PUT** /api/v1/tags/{tag} | Update existing tag.
|
209
|
+
*OpenapiClient::TransactionsApi* | [**delete_transaction**](docs/TransactionsApi.md#delete_transaction) | **DELETE** /api/v1/transactions/{id} | Delete a transaction.
|
210
|
+
*OpenapiClient::TransactionsApi* | [**get_transaction**](docs/TransactionsApi.md#get_transaction) | **GET** /api/v1/transactions/{id} | Get a single transaction.
|
211
|
+
*OpenapiClient::TransactionsApi* | [**get_transaction_by_journal**](docs/TransactionsApi.md#get_transaction_by_journal) | **GET** /api/v1/transaction-journals/{id} | Get a single transaction, based on one of the underlying transaction journals.
|
212
|
+
*OpenapiClient::TransactionsApi* | [**list_attachment_by_transaction**](docs/TransactionsApi.md#list_attachment_by_transaction) | **GET** /api/v1/transactions/{id}/attachments | Lists all attachments.
|
213
|
+
*OpenapiClient::TransactionsApi* | [**list_event_by_transaction**](docs/TransactionsApi.md#list_event_by_transaction) | **GET** /api/v1/transactions/{id}/piggy_bank_events | Lists all piggy bank events.
|
214
|
+
*OpenapiClient::TransactionsApi* | [**list_transaction**](docs/TransactionsApi.md#list_transaction) | **GET** /api/v1/transactions | List all the user's transactions.
|
215
|
+
*OpenapiClient::TransactionsApi* | [**store_transaction**](docs/TransactionsApi.md#store_transaction) | **POST** /api/v1/transactions | Store a new transaction
|
216
|
+
*OpenapiClient::TransactionsApi* | [**update_transaction**](docs/TransactionsApi.md#update_transaction) | **PUT** /api/v1/transactions/{id} | Update existing transaction.
|
217
|
+
*OpenapiClient::UsersApi* | [**delete_user**](docs/UsersApi.md#delete_user) | **DELETE** /api/v1/users/{id} | Delete a user.
|
218
|
+
*OpenapiClient::UsersApi* | [**get_user**](docs/UsersApi.md#get_user) | **GET** /api/v1/users/{id} | Get a single user.
|
219
|
+
*OpenapiClient::UsersApi* | [**list_user**](docs/UsersApi.md#list_user) | **GET** /api/v1/users | List all users.
|
220
|
+
*OpenapiClient::UsersApi* | [**store_user**](docs/UsersApi.md#store_user) | **POST** /api/v1/users | Store a new user
|
221
|
+
*OpenapiClient::UsersApi* | [**update_user**](docs/UsersApi.md#update_user) | **PUT** /api/v1/users/{id} | Update an existing user's information.
|
222
|
+
|
223
|
+
|
224
|
+
## Documentation for Models
|
225
|
+
|
226
|
+
- [OpenapiClient::Account](docs/Account.md)
|
227
|
+
- [OpenapiClient::AccountArray](docs/AccountArray.md)
|
228
|
+
- [OpenapiClient::AccountRead](docs/AccountRead.md)
|
229
|
+
- [OpenapiClient::AccountSingle](docs/AccountSingle.md)
|
230
|
+
- [OpenapiClient::AccountTypeFilter](docs/AccountTypeFilter.md)
|
231
|
+
- [OpenapiClient::AccountTypeProperty](docs/AccountTypeProperty.md)
|
232
|
+
- [OpenapiClient::Attachment](docs/Attachment.md)
|
233
|
+
- [OpenapiClient::AttachmentArray](docs/AttachmentArray.md)
|
234
|
+
- [OpenapiClient::AttachmentRead](docs/AttachmentRead.md)
|
235
|
+
- [OpenapiClient::AttachmentSingle](docs/AttachmentSingle.md)
|
236
|
+
- [OpenapiClient::AvailableBudget](docs/AvailableBudget.md)
|
237
|
+
- [OpenapiClient::AvailableBudgetArray](docs/AvailableBudgetArray.md)
|
238
|
+
- [OpenapiClient::AvailableBudgetRead](docs/AvailableBudgetRead.md)
|
239
|
+
- [OpenapiClient::AvailableBudgetSingle](docs/AvailableBudgetSingle.md)
|
240
|
+
- [OpenapiClient::BasicSummaryEntry](docs/BasicSummaryEntry.md)
|
241
|
+
- [OpenapiClient::Bill](docs/Bill.md)
|
242
|
+
- [OpenapiClient::BillArray](docs/BillArray.md)
|
243
|
+
- [OpenapiClient::BillPaidDates](docs/BillPaidDates.md)
|
244
|
+
- [OpenapiClient::BillRead](docs/BillRead.md)
|
245
|
+
- [OpenapiClient::BillSingle](docs/BillSingle.md)
|
246
|
+
- [OpenapiClient::Budget](docs/Budget.md)
|
247
|
+
- [OpenapiClient::BudgetArray](docs/BudgetArray.md)
|
248
|
+
- [OpenapiClient::BudgetLimit](docs/BudgetLimit.md)
|
249
|
+
- [OpenapiClient::BudgetLimitArray](docs/BudgetLimitArray.md)
|
250
|
+
- [OpenapiClient::BudgetLimitRead](docs/BudgetLimitRead.md)
|
251
|
+
- [OpenapiClient::BudgetLimitSingle](docs/BudgetLimitSingle.md)
|
252
|
+
- [OpenapiClient::BudgetRead](docs/BudgetRead.md)
|
253
|
+
- [OpenapiClient::BudgetSingle](docs/BudgetSingle.md)
|
254
|
+
- [OpenapiClient::BudgetSpent](docs/BudgetSpent.md)
|
255
|
+
- [OpenapiClient::Category](docs/Category.md)
|
256
|
+
- [OpenapiClient::CategoryArray](docs/CategoryArray.md)
|
257
|
+
- [OpenapiClient::CategoryEarned](docs/CategoryEarned.md)
|
258
|
+
- [OpenapiClient::CategoryRead](docs/CategoryRead.md)
|
259
|
+
- [OpenapiClient::CategorySingle](docs/CategorySingle.md)
|
260
|
+
- [OpenapiClient::CategorySpent](docs/CategorySpent.md)
|
261
|
+
- [OpenapiClient::ChartDataPoint](docs/ChartDataPoint.md)
|
262
|
+
- [OpenapiClient::ChartDataSet](docs/ChartDataSet.md)
|
263
|
+
- [OpenapiClient::ConfigurationUpdate](docs/ConfigurationUpdate.md)
|
264
|
+
- [OpenapiClient::Currency](docs/Currency.md)
|
265
|
+
- [OpenapiClient::CurrencyArray](docs/CurrencyArray.md)
|
266
|
+
- [OpenapiClient::CurrencyRead](docs/CurrencyRead.md)
|
267
|
+
- [OpenapiClient::CurrencySingle](docs/CurrencySingle.md)
|
268
|
+
- [OpenapiClient::ExchangeRate](docs/ExchangeRate.md)
|
269
|
+
- [OpenapiClient::ExchangeRateArray](docs/ExchangeRateArray.md)
|
270
|
+
- [OpenapiClient::ExchangeRateAttributes](docs/ExchangeRateAttributes.md)
|
271
|
+
- [OpenapiClient::ImportJob](docs/ImportJob.md)
|
272
|
+
- [OpenapiClient::ImportJobArray](docs/ImportJobArray.md)
|
273
|
+
- [OpenapiClient::ImportJobAttributes](docs/ImportJobAttributes.md)
|
274
|
+
- [OpenapiClient::ImportJobSingle](docs/ImportJobSingle.md)
|
275
|
+
- [OpenapiClient::LinkType](docs/LinkType.md)
|
276
|
+
- [OpenapiClient::LinkTypeArray](docs/LinkTypeArray.md)
|
277
|
+
- [OpenapiClient::LinkTypeRead](docs/LinkTypeRead.md)
|
278
|
+
- [OpenapiClient::LinkTypeSingle](docs/LinkTypeSingle.md)
|
279
|
+
- [OpenapiClient::Meta](docs/Meta.md)
|
280
|
+
- [OpenapiClient::MetaPagination](docs/MetaPagination.md)
|
281
|
+
- [OpenapiClient::ObjectLink](docs/ObjectLink.md)
|
282
|
+
- [OpenapiClient::ObjectLink0](docs/ObjectLink0.md)
|
283
|
+
- [OpenapiClient::PageLink](docs/PageLink.md)
|
284
|
+
- [OpenapiClient::PiggyBank](docs/PiggyBank.md)
|
285
|
+
- [OpenapiClient::PiggyBankArray](docs/PiggyBankArray.md)
|
286
|
+
- [OpenapiClient::PiggyBankEvent](docs/PiggyBankEvent.md)
|
287
|
+
- [OpenapiClient::PiggyBankEventArray](docs/PiggyBankEventArray.md)
|
288
|
+
- [OpenapiClient::PiggyBankEventAttributes](docs/PiggyBankEventAttributes.md)
|
289
|
+
- [OpenapiClient::PiggyBankRead](docs/PiggyBankRead.md)
|
290
|
+
- [OpenapiClient::PiggyBankSingle](docs/PiggyBankSingle.md)
|
291
|
+
- [OpenapiClient::Preference](docs/Preference.md)
|
292
|
+
- [OpenapiClient::PreferenceArray](docs/PreferenceArray.md)
|
293
|
+
- [OpenapiClient::PreferenceRead](docs/PreferenceRead.md)
|
294
|
+
- [OpenapiClient::PreferenceSingle](docs/PreferenceSingle.md)
|
295
|
+
- [OpenapiClient::Recurrence](docs/Recurrence.md)
|
296
|
+
- [OpenapiClient::RecurrenceArray](docs/RecurrenceArray.md)
|
297
|
+
- [OpenapiClient::RecurrenceRead](docs/RecurrenceRead.md)
|
298
|
+
- [OpenapiClient::RecurrenceRepetition](docs/RecurrenceRepetition.md)
|
299
|
+
- [OpenapiClient::RecurrenceSingle](docs/RecurrenceSingle.md)
|
300
|
+
- [OpenapiClient::RecurrenceTransaction](docs/RecurrenceTransaction.md)
|
301
|
+
- [OpenapiClient::Rule](docs/Rule.md)
|
302
|
+
- [OpenapiClient::RuleAction](docs/RuleAction.md)
|
303
|
+
- [OpenapiClient::RuleArray](docs/RuleArray.md)
|
304
|
+
- [OpenapiClient::RuleGroup](docs/RuleGroup.md)
|
305
|
+
- [OpenapiClient::RuleGroupArray](docs/RuleGroupArray.md)
|
306
|
+
- [OpenapiClient::RuleGroupRead](docs/RuleGroupRead.md)
|
307
|
+
- [OpenapiClient::RuleGroupSingle](docs/RuleGroupSingle.md)
|
308
|
+
- [OpenapiClient::RuleRead](docs/RuleRead.md)
|
309
|
+
- [OpenapiClient::RuleSingle](docs/RuleSingle.md)
|
310
|
+
- [OpenapiClient::RuleTrigger](docs/RuleTrigger.md)
|
311
|
+
- [OpenapiClient::SystemConfiguration](docs/SystemConfiguration.md)
|
312
|
+
- [OpenapiClient::SystemConfigurationData](docs/SystemConfigurationData.md)
|
313
|
+
- [OpenapiClient::SystemInfo](docs/SystemInfo.md)
|
314
|
+
- [OpenapiClient::SystemInfoData](docs/SystemInfoData.md)
|
315
|
+
- [OpenapiClient::TagArray](docs/TagArray.md)
|
316
|
+
- [OpenapiClient::TagCloud](docs/TagCloud.md)
|
317
|
+
- [OpenapiClient::TagCloudTag](docs/TagCloudTag.md)
|
318
|
+
- [OpenapiClient::TagModel](docs/TagModel.md)
|
319
|
+
- [OpenapiClient::TagRead](docs/TagRead.md)
|
320
|
+
- [OpenapiClient::TagSingle](docs/TagSingle.md)
|
321
|
+
- [OpenapiClient::Transaction](docs/Transaction.md)
|
322
|
+
- [OpenapiClient::TransactionArray](docs/TransactionArray.md)
|
323
|
+
- [OpenapiClient::TransactionLink](docs/TransactionLink.md)
|
324
|
+
- [OpenapiClient::TransactionLinkArray](docs/TransactionLinkArray.md)
|
325
|
+
- [OpenapiClient::TransactionLinkRead](docs/TransactionLinkRead.md)
|
326
|
+
- [OpenapiClient::TransactionLinkSingle](docs/TransactionLinkSingle.md)
|
327
|
+
- [OpenapiClient::TransactionRead](docs/TransactionRead.md)
|
328
|
+
- [OpenapiClient::TransactionSingle](docs/TransactionSingle.md)
|
329
|
+
- [OpenapiClient::TransactionSplit](docs/TransactionSplit.md)
|
330
|
+
- [OpenapiClient::TransactionTypeFilter](docs/TransactionTypeFilter.md)
|
331
|
+
- [OpenapiClient::User](docs/User.md)
|
332
|
+
- [OpenapiClient::UserArray](docs/UserArray.md)
|
333
|
+
- [OpenapiClient::UserRead](docs/UserRead.md)
|
334
|
+
- [OpenapiClient::UserSingle](docs/UserSingle.md)
|
335
|
+
- [OpenapiClient::ValidationError](docs/ValidationError.md)
|
336
|
+
- [OpenapiClient::ValidationErrorErrors](docs/ValidationErrorErrors.md)
|
337
|
+
|
338
|
+
|
339
|
+
## Documentation for Authorization
|
340
|
+
|
341
|
+
|
342
|
+
### firefly_iii_auth
|
343
|
+
|
344
|
+
|
345
|
+
- **Type**: OAuth
|
346
|
+
- **Flow**: accessCode
|
347
|
+
- **Authorization URL**: https://demo.firefly-iii.org/oauth/authorize
|
348
|
+
- **Scopes**: N/A
|
349
|
+
|
data/Rakefile
ADDED
data/docs/AboutApi.md
ADDED
@@ -0,0 +1,143 @@
|
|
1
|
+
# OpenapiClient::AboutApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://demo.firefly-iii.org*
|
4
|
+
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**get_about**](AboutApi.md#get_about) | **GET** /api/v1/about | System information end point. |
|
8
|
+
| [**get_current_user**](AboutApi.md#get_current_user) | **GET** /api/v1/about/user | Currently authenticated user endpoint. |
|
9
|
+
|
10
|
+
|
11
|
+
## get_about
|
12
|
+
|
13
|
+
> <SystemInfo> get_about
|
14
|
+
|
15
|
+
System information end point.
|
16
|
+
|
17
|
+
Returns general system information and versions of the (supporting) software.
|
18
|
+
|
19
|
+
### Examples
|
20
|
+
|
21
|
+
```ruby
|
22
|
+
require 'time'
|
23
|
+
require 'firefly_iii_client'
|
24
|
+
# setup authorization
|
25
|
+
FireflyIIIClient.configure do |config|
|
26
|
+
# Configure OAuth2 access token for authorization: firefly_iii_auth
|
27
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
28
|
+
end
|
29
|
+
|
30
|
+
api_instance = FireflyIIIClient::AboutApi.new
|
31
|
+
|
32
|
+
begin
|
33
|
+
# System information end point.
|
34
|
+
result = api_instance.get_about
|
35
|
+
p result
|
36
|
+
rescue FireflyIIIClient::ApiError => e
|
37
|
+
puts "Error when calling AboutApi->get_about: #{e}"
|
38
|
+
end
|
39
|
+
```
|
40
|
+
|
41
|
+
#### Using the get_about_with_http_info variant
|
42
|
+
|
43
|
+
This returns an Array which contains the response data, status code and headers.
|
44
|
+
|
45
|
+
> <Array(<SystemInfo>, Integer, Hash)> get_about_with_http_info
|
46
|
+
|
47
|
+
```ruby
|
48
|
+
|
49
|
+
begin
|
50
|
+
# System information end point.
|
51
|
+
data, status_code, headers = api_instance.get_about_with_http_info
|
52
|
+
p status_code # => 2xx
|
53
|
+
p headers # => { ... }
|
54
|
+
p data # => <SystemInfo>
|
55
|
+
rescue FireflyIIIClient::ApiError => e
|
56
|
+
puts "Error when calling AboutApi->get_about_with_http_info: #{e}"
|
57
|
+
end
|
58
|
+
```
|
59
|
+
|
60
|
+
### Parameters
|
61
|
+
|
62
|
+
This endpoint does not need any parameter.
|
63
|
+
|
64
|
+
### Return type
|
65
|
+
|
66
|
+
[**SystemInfo**](SystemInfo.md)
|
67
|
+
|
68
|
+
### Authorization
|
69
|
+
|
70
|
+
[firefly_iii_auth](../README.md#firefly_iii_auth)
|
71
|
+
|
72
|
+
### HTTP request headers
|
73
|
+
|
74
|
+
- **Content-Type**: Not defined
|
75
|
+
- **Accept**: application/json
|
76
|
+
|
77
|
+
|
78
|
+
## get_current_user
|
79
|
+
|
80
|
+
> <UserSingle> get_current_user
|
81
|
+
|
82
|
+
Currently authenticated user endpoint.
|
83
|
+
|
84
|
+
Returns the currently authenticated user.
|
85
|
+
|
86
|
+
### Examples
|
87
|
+
|
88
|
+
```ruby
|
89
|
+
require 'time'
|
90
|
+
require 'firefly_iii_client'
|
91
|
+
# setup authorization
|
92
|
+
FireflyIIIClient.configure do |config|
|
93
|
+
# Configure OAuth2 access token for authorization: firefly_iii_auth
|
94
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
95
|
+
end
|
96
|
+
|
97
|
+
api_instance = FireflyIIIClient::AboutApi.new
|
98
|
+
|
99
|
+
begin
|
100
|
+
# Currently authenticated user endpoint.
|
101
|
+
result = api_instance.get_current_user
|
102
|
+
p result
|
103
|
+
rescue FireflyIIIClient::ApiError => e
|
104
|
+
puts "Error when calling AboutApi->get_current_user: #{e}"
|
105
|
+
end
|
106
|
+
```
|
107
|
+
|
108
|
+
#### Using the get_current_user_with_http_info variant
|
109
|
+
|
110
|
+
This returns an Array which contains the response data, status code and headers.
|
111
|
+
|
112
|
+
> <Array(<UserSingle>, Integer, Hash)> get_current_user_with_http_info
|
113
|
+
|
114
|
+
```ruby
|
115
|
+
|
116
|
+
begin
|
117
|
+
# Currently authenticated user endpoint.
|
118
|
+
data, status_code, headers = api_instance.get_current_user_with_http_info
|
119
|
+
p status_code # => 2xx
|
120
|
+
p headers # => { ... }
|
121
|
+
p data # => <UserSingle>
|
122
|
+
rescue FireflyIIIClient::ApiError => e
|
123
|
+
puts "Error when calling AboutApi->get_current_user_with_http_info: #{e}"
|
124
|
+
end
|
125
|
+
```
|
126
|
+
|
127
|
+
### Parameters
|
128
|
+
|
129
|
+
This endpoint does not need any parameter.
|
130
|
+
|
131
|
+
### Return type
|
132
|
+
|
133
|
+
[**UserSingle**](UserSingle.md)
|
134
|
+
|
135
|
+
### Authorization
|
136
|
+
|
137
|
+
[firefly_iii_auth](../README.md#firefly_iii_auth)
|
138
|
+
|
139
|
+
### HTTP request headers
|
140
|
+
|
141
|
+
- **Content-Type**: Not defined
|
142
|
+
- **Accept**: application/json
|
143
|
+
|