-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinsomnia_collection.yaml
More file actions
2391 lines (2181 loc) · 73.2 KB
/
Copy pathinsomnia_collection.yaml
File metadata and controls
2391 lines (2181 loc) · 73.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
type: spec.insomnia.rest/5.0
schema_version: "5.1"
name: FastAPI 0.1.0
meta:
id: wrk_b1ca2a787ba843aca58523d384b45351
created: 1774551410133
modified: 1774551410133
description: ""
collection:
- name: Auth
meta:
id: fld_2186064692034a3881200c2098acb210
created: 1774551410137
modified: 1774551410137
sortKey: -1774551410137
description: Authentication
children:
- url: "{{ _.base_url }}/api/auth/token"
name: Login For Access Token
meta:
id: req_77624977dfa241da8149eb5f761c4da6
created: 1774551410143
modified: 1775065077833
isPrivate: false
description: >-
Authenticate a user and return a JWT access token.
Validates the provided username and password against the database.
If successful, generates a JWT token valid for the duration
specified in the application settings.
Args:
form_data: OAuth2 password request form containing username and password.
user_service: Dependency injected user service.
Returns:
A Token object containing the JWT string and token type.
Raises:
HTTPException: 401 Unauthorized if credentials are invalid.
sortKey: -1774551410143
method: POST
body:
mimeType: application/x-www-form-urlencoded
params:
- name: username
value: "{{ _.oauth2Username }}"
description: ""
disabled: false
- name: password
value: "{{ _.oauth2Password }}"
description: ""
disabled: false
headers:
- name: Content-Type
value: application/x-www-form-urlencoded
disabled: false
settings:
renderRequestBody: true
encodeUrl: true
followRedirects: global
cookies:
send: true
store: true
rebuildPath: true
- name: Users
meta:
id: fld_0ad4ac7df64b44fd824644892d2a5808
created: 1774551410140
modified: 1775065097934
sortKey: -1774551410140
description: User management
children:
- url: "{{ _.base_url }}/api/users/me/"
name: Update User Me
meta:
id: req_18d56e34b15f4b50aa105b0fea3f6e2a
created: 1774551410144
modified: 1774879866000
isPrivate: false
description: |-
Update the profile of the currently authenticated user.
Allows updating email, full name, active status, or password.
Fields left as null or omitted will not be modified.
Args:
user_update_in: Payload containing the fields to update.
current_user: The user decoded from the JWT token (with DB ID).
user_service: Dependency injected user service.
Returns:
The updated user profile.
sortKey: -1774551410144
method: PATCH
body:
mimeType: application/json
text: |-
{
"email": "manager@example.com",
"full_name": "System Manager",
"disabled": false,
"plain_password": "{{ _.password }}"
}
headers:
- name: Content-Type
value: application/json
disabled: false
settings:
renderRequestBody: true
encodeUrl: true
followRedirects: global
cookies:
send: true
store: true
rebuildPath: true
- url: "{{ _.base_url }}/api/users/me/"
name: Read User Me
meta:
id: req_d963403d6a424762be6e2243e8752b67
created: 1774551410144
modified: 1774553493444
isPrivate: false
description: |-
Get the profile of the currently authenticated user.
Args:
current_user: The user decoded from the JWT token.
Returns:
The current user's profile information.
sortKey: -1774551410144
method: GET
settings:
renderRequestBody: true
encodeUrl: true
followRedirects: global
cookies:
send: true
store: true
rebuildPath: true
authentication:
type: bearer
token: "{% response 'body', 'req_77624977dfa241da8149eb5f761c4da6',
'b64::JC5hY2Nlc3NfdG9rZW4=::46b', 'always', 60 %}"
- name: Checking
meta:
id: fld_ba3331f4dcd546619b413424791b9931
created: 1774551410141
modified: 1775065441756
sortKey: -1774551410141
description: Checking accounts
children:
- url: "{{ _.base_url }}/api/individual-clients/{{ _.client_id
}}/checking-accounts/"
name: Read Checking Accounts
meta:
id: req_f4dbdfeeab7d41c088dfbfa8f3ebe69b
created: 1774551410149
modified: 1775065319972
isPrivate: false
description: |-
List all checking accounts for a specific client.
Args:
client_id: The ID of the client whose accounts to retrieve.
checking_account_service: Dependency injected service.
offset: Pagination offset.
limit: Maximum number of records to return (max 100).
Returns:
A list of checking accounts.
sortKey: -1774551410149
method: GET
parameters:
- name: offset
value: "0"
disabled: true
- name: limit
value: "100"
disabled: true
scripts:
afterResponse: |-
const json = JSON.parse(insomnia.response.body)
if (json.length > 0) {
insomnia.environment.set("account_id", json[0].id)
}
settings:
renderRequestBody: true
encodeUrl: true
followRedirects: global
cookies:
send: true
store: true
rebuildPath: true
- url: "{{ _.base_url }}/api/individual-clients/{{ _.client_id
}}/checking-accounts/{{ _.account_id }}"
name: Read Checking Account
meta:
id: req_69e8edb7c6e2456c9262cd0b087624cf
created: 1774551410150
modified: 1775065363011
isPrivate: false
description: >-
Retrieve details of a specific checking account.
Ensures the account belongs to the specified client.
Args:
client_id: The ID of the client.
account_id: The ID of the checking account to retrieve.
checking_account_service: Dependency injected service.
Returns:
The requested checking account.
Raises:
HTTPException: 404 if the account is not found or does not belong to the client.
sortKey: -1774551410150
method: GET
settings:
renderRequestBody: true
encodeUrl: true
followRedirects: global
cookies:
send: true
store: true
rebuildPath: true
- url: "{{ _.base_url }}/api/individual-clients/{{ _.client_id
}}/checking-accounts/"
name: Create Checking Account
meta:
id: req_beca5dc88bf74e75a258a53dbad702b8
created: 1774551410150
modified: 1775065424753
isPrivate: false
description: |-
Create a new checking account for a specific client.
Args:
client_id: The ID of the client opening the account.
account_in: Payload containing checking account details.
checking_account_service: Dependency injected service.
Returns:
The newly created checking account.
Raises:
HTTPException: 404 if the client does not exist.
sortKey: -1774551410150
method: POST
body:
mimeType: application/json
text: |-
{
"balance": 100,
"number": 1,
"branch": "central",
"limit": 10000,
"withdrawal_limit": 5000
}
headers:
- name: Content-Type
value: application/json
disabled: false
settings:
renderRequestBody: true
encodeUrl: true
followRedirects: global
cookies:
send: true
store: true
rebuildPath: true
- url: "{{ _.base_url }}/api/individual-clients/{{ _.client_id
}}/checking-accounts/{{ _.account_id }}"
name: Update Checking Account
meta:
id: req_9ed652f3050d498ca0a2955da5576006
created: 1774551410151
modified: 1774879884907
isPrivate: false
description: >-
Update a specific checking account partially.
Args:
client_id: The ID of the client.
account_id: The ID of the checking account to update.
account_in: Payload with the fields to update.
checking_account_service: Dependency injected service.
Returns:
The updated checking account.
Raises:
HTTPException: 404 if the account is not found or does not belong to the client.
sortKey: -1774551410151
method: PATCH
body:
mimeType: application/json
text: |-
{
"balance": 0,
"number": 0,
"branch": "string",
"limit": 0,
"withdrawal_limit": 0
}
headers:
- name: Content-Type
value: application/json
disabled: false
settings:
renderRequestBody: true
encodeUrl: true
followRedirects: global
cookies:
send: true
store: true
rebuildPath: true
- url: "{{ _.base_url }}/api/individual-clients/{{ _.client_id
}}/checking-accounts/{{ _.account_id }}"
name: Delete Checking Account
meta:
id: req_158c5d3a0aa44b50bd1f51ecc0b3b000
created: 1774551410162
modified: 1774879879619
isPrivate: false
description: >-
Delete a specific checking account.
This operation also deletes the underlying base account
representation.
Args:
client_id: The ID of the client.
account_id: The ID of the checking account to delete.
checking_account_service: Dependency injected service.
Returns:
None (200 OK) if successful.
Raises:
HTTPException: 404 if the account is not found or does not belong to the client.
sortKey: -1774551410162
method: DELETE
settings:
renderRequestBody: true
encodeUrl: true
followRedirects: global
cookies:
send: true
store: true
rebuildPath: true
authentication:
type: bearer
token: "{% response 'body', 'req_77624977dfa241da8149eb5f761c4da6',
'b64::JC5hY2Nlc3NfdG9rZW4=::46b', 'always', 60 %}"
- name: Individual
meta:
id: fld_cfcc964a18084a94ad9c0dfae9e2ea9d
created: 1774551410141
modified: 1775065150770
sortKey: -1774551410141
description: Individual clients
children:
- url: "{{ _.base_url }}/api/individual-clients/"
name: Create Individual Client
meta:
id: req_8313f5e4f1994e8eb2cb9d9be4989801
created: 1774551410145
modified: 1774880427014
isPrivate: false
description: >-
Create a new individual client.
This operation also creates the underlying base client
representation.
Args:
individual_client: Payload containing individual client details.
individual_client_service: Dependency injected service.
Returns:
The newly created individual client.
sortKey: -1774551410145
method: POST
body:
mimeType: application/json
text: |-
{
"address": "Individual client",
"name": "Individual client",
"cpf": "111.111.111-11",
"date_of_birth": "2001-01-01"
}
headers:
- name: Content-Type
value: application/json
disabled: false
settings:
renderRequestBody: true
encodeUrl: true
followRedirects: global
cookies:
send: true
store: true
rebuildPath: true
- url: "{{ _.base_url }}/api/individual-clients/"
name: Read Individual Clients
meta:
id: req_d58c571301ca48509e73a0bcee066d1a
created: 1774551410145
modified: 1774882053333
isPrivate: false
description: |-
List all individual clients.
Args:
individual_client_service: Dependency injected service.
offset: Pagination offset.
limit: Maximum number of records to return (max 100).
Returns:
A list of individual clients.
sortKey: -1774551410145
method: GET
parameters:
- name: offset
value: "0"
disabled: true
- name: limit
value: "100"
disabled: true
scripts:
afterResponse: |-
const json = JSON.parse(insomnia.response.body)
if (json.length > 0) {
insomnia.environment.set("client_id", json[0].id)
}
settings:
renderRequestBody: true
encodeUrl: true
followRedirects: global
cookies:
send: true
store: true
rebuildPath: true
- url: "{{ _.base_url }}/api/individual-clients/{{ _.client_id }}/"
name: Read Individual Client
meta:
id: req_56134d5d1b7b4076971b7875f7175320
created: 1774551410146
modified: 1775065180486
isPrivate: false
description: |-
Retrieve details of a specific individual client.
Args:
client_id: The ID of the client to retrieve.
individual_client_service: Dependency injected service.
Returns:
The requested individual client.
Raises:
HTTPException: 404 if the client is not found.
sortKey: -1774551410146
method: GET
settings:
renderRequestBody: true
encodeUrl: true
followRedirects: global
cookies:
send: true
store: true
rebuildPath: true
- url: "{{ _.base_url }}/api/individual-clients/{{ _.client_id }}"
name: Update Individual Client
meta:
id: req_31c6489d4bee4fe08b7a95d810e9d14f
created: 1774551410147
modified: 1774551410147
isPrivate: false
description: |-
Update a specific individual client partially.
Args:
client_id: The ID of the client to update.
individual_client: Payload with the fields to update.
individual_client_service: Dependency injected service.
Returns:
The updated individual client.
Raises:
HTTPException: 404 if the client is not found.
sortKey: -1774551410147
method: PATCH
body:
mimeType: application/json
text: |-
{
"address": "string",
"name": "string",
"cpf": "string",
"date_of_birth": "string"
}
headers:
- name: Content-Type
value: application/json
disabled: false
authentication:
type: oauth2
grantType: password
accessTokenUrl: auth/token
clientId: "{{ _.oauth2ClientId }}"
clientSecret: "{{ _.oauth2ClientSecret }}"
scope: ""
username: "{{ _.oauth2Username }}"
password: "{{ _.oauth2Password }}"
settings:
renderRequestBody: true
encodeUrl: true
followRedirects: global
cookies:
send: true
store: true
rebuildPath: true
- url: "{{ _.base_url }}/api/individual-clients/{{ _.client_id }}"
name: Delete Individual Client
meta:
id: req_956f6661781e4d01af58e31f6b49e57e
created: 1774551410147
modified: 1775065247644
isPrivate: false
description: >-
Delete a specific individual client.
This operation also deletes the underlying base client
representation.
Args:
client_id: The ID of the client to delete.
individual_client_service: Dependency injected service.
Returns:
None (200 OK) if successful.
Raises:
HTTPException: 404 if the client is not found.
sortKey: -1774551410147
method: DELETE
settings:
renderRequestBody: true
encodeUrl: true
followRedirects: global
cookies:
send: true
store: true
rebuildPath: true
authentication:
type: bearer
token: "{% response 'body', 'req_77624977dfa241da8149eb5f761c4da6',
'b64::JC5hY2Nlc3NfdG9rZW4=::46b', 'always', 60 %}"
- name: Deposit
meta:
id: fld_5da7b1de7d9545eea4da5f29e62f6250
created: 1774551410142
modified: 1775065723021
sortKey: -1774551410142
description: Deposits
children:
- url: "{{ _.base_url }}/api/checking-accounts/{{ _.account_id }}/deposits/"
name: Read Deposits
meta:
id: req_f4f6431240ab4d9eb17d613df973d6c4
created: 1774551410163
modified: 1775065693526
isPrivate: false
description: |-
List all deposit transactions for a specific account.
Args:
account_id: The ID of the account.
deposit_service: Dependency injected service.
offset: Pagination offset.
limit: Maximum number of records to return.
Returns:
A list of deposit transactions.
sortKey: -1774551410163
method: GET
parameters:
- name: offset
value: "0"
disabled: true
- name: limit
value: "100"
disabled: true
scripts:
afterResponse: |-
const json = JSON.parse(insomnia.response.body)
if (json.length > 0) {
insomnia.environment.set("deposit_id", json[0].id)
}
settings:
renderRequestBody: true
encodeUrl: true
followRedirects: global
cookies:
send: true
store: true
rebuildPath: true
- url: "{{ _.base_url }}/api/checking-accounts/{{ _.account_id }}/deposits/"
name: Create Deposit
meta:
id: req_e1ba2941246a4f57a88cafd5827b351c
created: 1774551410164
modified: 1775065706266
isPrivate: false
description: |-
Create a new deposit transaction for an account.
Increases the account balance by the specified deposit value.
Args:
account_id: The ID of the account receiving the deposit.
deposit: Payload containing the deposit value.
deposit_service: Dependency injected service.
Returns:
The registered deposit transaction.
Raises:
HTTPException: 404 if the account is not found.
sortKey: -1774551410164
method: POST
body:
mimeType: application/json
text: |-
{
"value": 100
}
headers:
- name: Content-Type
value: application/json
disabled: false
settings:
renderRequestBody: true
encodeUrl: true
followRedirects: global
cookies:
send: true
store: true
rebuildPath: true
- url: "{{ _.base_url }}/api/checking-accounts/{{ _.account_id }}/deposits/{{
_.deposit_id }}"
name: Read Deposit
meta:
id: req_0323121bcc8642818377bce56c8ad227
created: 1774551410165
modified: 1775065765545
isPrivate: false
description: >-
Retrieve details of a specific deposit transaction.
Enforces that the transaction belongs to the specified account.
Args:
account_id: The ID of the account.
transaction_id: The ID of the deposit transaction.
deposit_service: Dependency injected service.
Returns:
The requested deposit transaction.
Raises:
HTTPException: 404 if not found or does not belong to the account.
sortKey: -1774551410165
method: GET
settings:
renderRequestBody: true
encodeUrl: true
followRedirects: global
cookies:
send: true
store: true
rebuildPath: true
- url: "{{ _.base_url }}/api/checking-accounts/{{ _.account_id }}/deposits/{{
_.deposit_id }}"
name: Delete Deposit
meta:
id: req_bf3469478c324c079a9f54314e8997bb
created: 1774551410166
modified: 1775065772274
isPrivate: false
description: >-
Delete a specific deposit transaction.
Decreases the account balance, reverting the original deposit.
Args:
account_id: The ID of the account.
transaction_id: The ID of the deposit transaction to delete.
deposit_service: Dependency injected service.
Returns:
None (200 OK) if successful.
Raises:
HTTPException: 404 if not found or does not belong to the account.
sortKey: -1774551410166
method: DELETE
settings:
renderRequestBody: true
encodeUrl: true
followRedirects: global
cookies:
send: true
store: true
rebuildPath: true
authentication:
type: bearer
token: "{% response 'body', 'req_77624977dfa241da8149eb5f761c4da6',
'b64::JC5hY2Nlc3NfdG9rZW4=::46b', 'always', 60 %}"
- name: Withdrawal
meta:
id: fld_698a90e726a64811893e8ceb28f624b7
created: 1774551410142
modified: 1775065594572
sortKey: -1774551410142
description: Withdrawals
children:
- url: "{{ _.base_url }}/api/checking-accounts/{{ _.account_id }}/withdrawals/"
name: Read Withdrawals
meta:
id: req_6e491be187ef4c3bb89da759ac586746
created: 1774551410167
modified: 1775065593160
isPrivate: false
description: |-
List all withdrawal transactions for a specific account.
Args:
account_id: The ID of the account.
withdrawal_service: Dependency injected service.
offset: Pagination offset.
limit: Maximum number of records to return.
Returns:
A list of withdrawal transactions.
sortKey: -1774551410167
method: GET
parameters:
- name: offset
value: "0"
disabled: true
- name: limit
value: "100"
disabled: true
scripts:
afterResponse: |-
const json = JSON.parse(insomnia.response.body)
if (json.length > 0) {
insomnia.environment.set("withdrawal_id", json[0].id)
}
settings:
renderRequestBody: true
encodeUrl: true
followRedirects: global
cookies:
send: true
store: true
rebuildPath: true
- url: "{{ _.base_url }}/api/checking-accounts/{{ _.account_id }}/withdrawals/{{
_.withdrawal_id }}"
name: Delete Withdrawal
meta:
id: req_7ec7c3636b8e4ed3b36124a3da161e68
created: 1774551410168
modified: 1775065517757
isPrivate: false
description: >-
Delete a specific withdrawal transaction.
Increases the account balance, reverting the original withdrawal.
Args:
account_id: The ID of the account.
transaction_id: The ID of the withdrawal transaction to delete.
withdrawal_service: Dependency injected service.
Returns:
None (200 OK) if successful.
Raises:
HTTPException: 404 if not found or does not belong to the account.
sortKey: -1774551410168
method: DELETE
authentication:
type: oauth2
grantType: password
accessTokenUrl: auth/token
clientId: "{{ _.oauth2ClientId }}"
clientSecret: "{{ _.oauth2ClientSecret }}"
scope: ""
username: "{{ _.oauth2Username }}"
password: "{{ _.oauth2Password }}"
settings:
renderRequestBody: true
encodeUrl: true
followRedirects: global
cookies:
send: true
store: true
rebuildPath: true
- url: "{{ _.base_url }}/api/checking-accounts/{{ _.account_id }}/withdrawals/"
name: Create Withdrawal
meta:
id: req_ad25de01580744faa5287a52763acd46
created: 1774551410168
modified: 1775065578071
isPrivate: false
description: >-
Create a new withdrawal transaction for an account.
Decreases the account balance by the specified withdrawal value.
Enforces business rules such as balance limits and withdrawal count.
Args:
account_id: The ID of the account making the withdrawal.
withdrawal: Payload containing the withdrawal value.
withdrawal_service: Dependency injected service.
Returns:
The registered withdrawal transaction.
Raises:
HTTPException: 404 if account not found, or 400 for business rule failures.
sortKey: -1774551410168
method: POST
body:
mimeType: application/json
text: |-
{
"value": 100
}
headers:
- name: Content-Type
value: application/json
disabled: false
settings:
renderRequestBody: true
encodeUrl: true
followRedirects: global
cookies:
send: true
store: true
rebuildPath: true
- url: "{{ _.base_url }}/api/checking-accounts/{{ _.account_id }}/withdrawals/{{
_.withdrawal_id }}"
name: Read Withdrawal
meta:
id: req_ce20746ce53142e1acb6136d10046bff
created: 1774551410168
modified: 1775065619076
isPrivate: false
description: >-
Retrieve details of a specific withdrawal transaction.
Enforces that the transaction belongs to the specified account.
Args:
account_id: The ID of the account.
transaction_id: The ID of the withdrawal transaction.
withdrawal_service: Dependency injected service.
Returns:
The requested withdrawal transaction.
Raises:
HTTPException: 404 if not found or does not belong to the account.
sortKey: -1774551410168
method: GET
settings:
renderRequestBody: true
encodeUrl: true
followRedirects: global
cookies:
send: true
store: true
rebuildPath: true
authentication:
type: bearer
token: "{% response 'body', 'req_77624977dfa241da8149eb5f761c4da6',
'b64::JC5hY2Nlc3NfdG9rZW4=::46b', 'always', 60 %}"
cookieJar:
name: Default Jar
meta:
id: jar_418f9f9fd53149a59752580acf88a8942d2a69e5
created: 1774551410344
modified: 1775065723018
environments:
name: Base environment
meta:
id: env_537067c342f84ecc9a7767331cea0b3c
created: 1774551410136
modified: 1775065723021
isPrivate: false
data:
base_url: "{{ _.scheme }}://{{ _.host }}{{ _.base_path }}"
subEnvironments:
- name: OpenAPI env example.com
meta:
id: env_d1b55a7512f4491bbf76ffe3efa58c50
created: 1774551410136
modified: 1775065723020
isPrivate: false
sortKey: 1774551410136
data:
scheme: http
base_path: ""
host: 127.0.0.1:8000
oauth2ClientId: clientId
oauth2ClientSecret: clientSecret
oauth2Username: "{{ _.username }}"
oauth2Password: "{{ _.password }}"
client_id: 1
account_id: 1
withdrawal_id: 1
deposit_id: 2
spec:
contents:
openapi: 3.1.0
info:
title: FastAPI
version: 0.1.0
paths:
/api/auth/token:
post:
tags:
- Auth
summary: Login For Access Token
description: >-
Authenticate a user and return a JWT access token.
Validates the provided username and password against the database.
If successful, generates a JWT token valid for the duration
specified in the application settings.
Args:
form_data: OAuth2 password request form containing username and password.
user_service: Dependency injected user service.
Returns:
A Token object containing the JWT string and token type.
Raises:
HTTPException: 401 Unauthorized if credentials are invalid.
operationId: login_for_access_token_api_auth_token_post
requestBody:
content:
application/x-www-form-urlencoded:
schema:
$ref: "#/components/schemas/Body_login_for_access_token_api_auth_token_post"
required: true
responses:
"200":