This is definitely not functional yet. Signed-off-by: Jacob Kiers <code@kiers.eu>
8.8 KiB
\CategoriesApi
All URIs are relative to https://demo.firefly-iii.org/api
Method | HTTP request | Description |
---|---|---|
delete_category | DELETE /v1/categories/{id} | Delete a category. |
get_category | GET /v1/categories/{id} | Get a single category. |
list_attachment_by_category | GET /v1/categories/{id}/attachments | Lists all attachments. |
list_category | GET /v1/categories | List all categories. |
list_transaction_by_category | GET /v1/categories/{id}/transactions | List all transactions in a category. |
store_category | POST /v1/categories | Store a new category |
update_category | PUT /v1/categories/{id} | Update existing category. |
delete_category
delete_category(id, x_trace_id) Delete a category.
Delete a category. Transactions will not be removed.
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
id | String | The ID of the category. | [required] | |
x_trace_id | Option<uuid::Uuid> | Unique identifier associated with this request. |
Return type
(empty response body)
Authorization
firefly_iii_auth, local_bearer_auth
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
get_category
models::CategorySingle get_category(id, x_trace_id, start, end) Get a single category.
Get a single category.
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
id | String | The ID of the category. | [required] | |
x_trace_id | Option<uuid::Uuid> | Unique identifier associated with this request. | ||
start | Option<String> | A date formatted YYYY-MM-DD, to show spent and earned info. | ||
end | Option<String> | A date formatted YYYY-MM-DD, to show spent and earned info. |
Return type
Authorization
firefly_iii_auth, local_bearer_auth
HTTP request headers
- Content-Type: Not defined
- Accept: application/vnd.api+json, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list_attachment_by_category
models::AttachmentArray list_attachment_by_category(id, x_trace_id, limit, page) Lists all attachments.
Lists all attachments.
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
id | String | The ID of the category. | [required] | |
x_trace_id | Option<uuid::Uuid> | Unique identifier associated with this request. | ||
limit | Option<i32> | Number of items per page. The default pagination is per 50 items. | ||
page | Option<i32> | Page number. The default pagination is per 50 items. |
Return type
Authorization
firefly_iii_auth, local_bearer_auth
HTTP request headers
- Content-Type: Not defined
- Accept: application/vnd.api+json, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list_category
models::CategoryArray list_category(x_trace_id, limit, page) List all categories.
List all categories.
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
x_trace_id | Option<uuid::Uuid> | Unique identifier associated with this request. | ||
limit | Option<i32> | Number of items per page. The default pagination is per 50 items. | ||
page | Option<i32> | Page number. The default pagination is per 50 items. |
Return type
Authorization
firefly_iii_auth, local_bearer_auth
HTTP request headers
- Content-Type: Not defined
- Accept: application/vnd.api+json, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list_transaction_by_category
models::TransactionArray list_transaction_by_category(id, x_trace_id, limit, page, start, end, r#type) List all transactions in a category.
List all transactions in a category, optionally limited to the date ranges specified.
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
id | String | The ID of the category. | [required] | |
x_trace_id | Option<uuid::Uuid> | Unique identifier associated with this request. | ||
limit | Option<i32> | Number of items per page. The default pagination is per 50 items. | ||
page | Option<i32> | Page number. The default pagination is per 50 items. | ||
start | Option<String> | A date formatted YYYY-MM-DD, to limit the result list. | ||
end | Option<String> | A date formatted YYYY-MM-DD, to limit the result list. | ||
r#type | Option<TransactionTypeFilter> | Optional filter on the transaction type(s) returned |
Return type
Authorization
firefly_iii_auth, local_bearer_auth
HTTP request headers
- Content-Type: Not defined
- Accept: application/vnd.api+json, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
store_category
models::CategorySingle store_category(category, x_trace_id) Store a new category
Creates a new category. The data required can be submitted as a JSON body or as a list of parameters.
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
category | Category | JSON array or key=value pairs with the necessary category information. See the model for the exact specifications. | [required] | |
x_trace_id | Option<uuid::Uuid> | Unique identifier associated with this request. |
Return type
Authorization
firefly_iii_auth, local_bearer_auth
HTTP request headers
- Content-Type: application/json, application/x-www-form-urlencoded
- Accept: application/vnd.api+json, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
update_category
models::CategorySingle update_category(id, category_update, x_trace_id) Update existing category.
Update existing category.
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
id | String | The ID of the category. | [required] | |
category_update | CategoryUpdate | JSON array with updated category information. See the model for the exact specifications. | [required] | |
x_trace_id | Option<uuid::Uuid> | Unique identifier associated with this request. |
Return type
Authorization
firefly_iii_auth, local_bearer_auth
HTTP request headers
- Content-Type: application/json, application/x-www-form-urlencoded
- Accept: application/vnd.api+json, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]