Skip to content

Commit a6e098f

Browse files
committed
Merge branch 'main' of github.com:firefly-iii/api-docs
2 parents f54777b + 91a21cd commit a6e098f

File tree

2 files changed

+107
-25
lines changed

2 files changed

+107
-25
lines changed

firefly-iii-2.0.12-v1.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ servers:
55
info:
66
title: Firefly III API v2.0.12
77
description: |
8-
This is the 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. You may use the "Authorize" button to try the API below. This file was last generated on 2024-01-03T07:10:56+00:00
8+
This is the 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. You may use the "Authorize" button to try the API below. This file was last generated on 2024-03-16T05:34:43+00:00
99

1010
Please keep in mind that the demo site does not accept requests from curl, colly, wget, etc. You must use a browser or a tool like Postman to make requests. Too many script kiddies out there, sorry about that.
1111
version: "2.0.12"
@@ -19053,7 +19053,7 @@ components:
1905319053
type: string
1905419054
format: string
1905519055
example: "tag1"
19056-
description: "The accompanying value the trigger responds to. This value is often mandatory, but this depends on the trigger."
19056+
description: "The accompanying value the trigger responds to. This value is often mandatory, but this depends on the trigger. If the rule trigger is something like 'has any tag', submit the string 'true'."
1905719057
order:
1905819058
type: integer
1905919059
format: int32

firefly-iii-2.0.12-v2.yaml

+105-23
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ servers:
55
info:
66
title: Firefly III API v2.0.12
77
description: |
8-
This is the 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. You may use the "Authorize" button to try the API below. This file was last generated on 2024-01-03T07:10:56+00:00
8+
This is the 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. You may use the "Authorize" button to try the API below. This file was last generated on 2024-03-16T05:34:43+00:00
99
1010
Please keep in mind that the demo site does not accept requests from curl, colly, wget, etc. You must use a browser or a tool like Postman to make requests. Too many script kiddies out there, sorry about that.
1111
version: "2.0.12"
@@ -807,14 +807,14 @@ paths:
807807
schema:
808808
$ref: '#/components/schemas/InternalExceptionResponse'
809809

810-
/v2/budgets/{id}/budgeted:
810+
/v2/budgets/{id}:
811811
get:
812+
operationId: getBudget
813+
description: |
814+
Get a single budget.
815+
summary: Get all limits for a budget.
812816
tags:
813817
- budgets
814-
operationId: getBudgetedForBudget
815-
summary: Returns the budgeted amount for the given budget in the given period.
816-
description: |
817-
Returns the budgeted amount for the given budget in the given period.
818818
parameters:
819819
- name: X-Trace-Id
820820
in: header
@@ -846,8 +846,14 @@ paths:
846846
schema:
847847
type: string
848848
example: "123"
849-
description: The ID of the budget.
849+
description: The ID of the requested budget.
850850
responses:
851+
200:
852+
description: A list of budget limits applicable to this budget.
853+
content:
854+
application/vnd.api+json:
855+
schema:
856+
$ref: '#/components/schemas/BudgetV2Single'
851857
401:
852858
description: Unauthenticated
853859
content:
@@ -876,19 +882,6 @@ paths:
876882
schema:
877883
$ref: '#/components/schemas/InternalExceptionResponse'
878884

879-
422:
880-
description: 'Validation error. The body will have the exact details.'
881-
content:
882-
application/json:
883-
schema:
884-
$ref: '#/components/schemas/ValidationErrorResponse'
885-
886-
200:
887-
description: An array of sums.
888-
content:
889-
application/json:
890-
schema:
891-
$ref: '#/components/schemas/TransactionSumArray'
892885
/v2/budgets/{id}/spent:
893886
get:
894887
tags:
@@ -1046,6 +1039,88 @@ paths:
10461039
application/json:
10471040
schema:
10481041
$ref: '#/components/schemas/TransactionSumArray'
1042+
/v2/budgets/{id}/budgeted:
1043+
get:
1044+
tags:
1045+
- budgets
1046+
operationId: getBudgetedForBudget
1047+
summary: Returns the budgeted amount for the given budget in the given period.
1048+
description: |
1049+
Returns the budgeted amount for the given budget in the given period.
1050+
parameters:
1051+
- name: X-Trace-Id
1052+
in: header
1053+
description: Unique identifier associated with this request.
1054+
required: false
1055+
schema:
1056+
type: string
1057+
format: uuid
1058+
- in: query
1059+
name: start
1060+
description: |
1061+
A date formatted YYYY-MM-DD.
1062+
required: true
1063+
schema:
1064+
type: string
1065+
format: date
1066+
- in: query
1067+
name: end
1068+
description: |
1069+
A date formatted YYYY-MM-DD.
1070+
required: true
1071+
schema:
1072+
type: string
1073+
format: date
1074+
1075+
- in: path
1076+
name: id
1077+
required: true
1078+
schema:
1079+
type: string
1080+
example: "123"
1081+
description: The ID of the budget.
1082+
responses:
1083+
401:
1084+
description: Unauthenticated
1085+
content:
1086+
application/json:
1087+
schema:
1088+
$ref: '#/components/schemas/UnauthenticatedResponse'
1089+
1090+
404:
1091+
description: Page not found
1092+
content:
1093+
application/json:
1094+
schema:
1095+
$ref: '#/components/schemas/NotFoundResponse'
1096+
1097+
400:
1098+
description: Bad request
1099+
content:
1100+
application/json:
1101+
schema:
1102+
$ref: '#/components/schemas/BadRequestResponse'
1103+
1104+
500:
1105+
description: Internal exception
1106+
content:
1107+
application/json:
1108+
schema:
1109+
$ref: '#/components/schemas/InternalExceptionResponse'
1110+
1111+
422:
1112+
description: 'Validation error. The body will have the exact details.'
1113+
content:
1114+
application/json:
1115+
schema:
1116+
$ref: '#/components/schemas/ValidationErrorResponse'
1117+
1118+
200:
1119+
description: An array of sums.
1120+
content:
1121+
application/json:
1122+
schema:
1123+
$ref: '#/components/schemas/TransactionSumArray'
10491124
/v2/budgets/sum/spent:
10501125
get:
10511126
tags:
@@ -2299,10 +2374,10 @@ components:
22992374
data:
23002375
type: array
23012376
items:
2302-
$ref: '#/components/schemas/BudgetLimitReadV2'
2377+
$ref: '#/components/schemas/BudgetLimitV2Read'
23032378
meta:
23042379
$ref: '#/components/schemas/Meta'
2305-
BudgetLimitReadV2:
2380+
BudgetLimitV2Read:
23062381
type: object
23072382
required:
23082383
- type
@@ -2312,7 +2387,7 @@ components:
23122387
type:
23132388
type: string
23142389
format: string
2315-
example: "budget_limits"
2390+
example: "budget-limits"
23162391
description: "Immutable value"
23172392
id:
23182393
type: string
@@ -2378,6 +2453,13 @@ components:
23782453
example: "2"
23792454
attributes:
23802455
$ref: '#/components/schemas/BudgetV2'
2456+
BudgetV2Single:
2457+
type: object
2458+
required:
2459+
- data
2460+
properties:
2461+
data:
2462+
$ref: '#/components/schemas/BudgetV2Read'
23812463
ChartDataPointV2:
23822464
type: object
23832465
properties:

0 commit comments

Comments
 (0)