Skip to content

Commit

Permalink
Updates for course
Browse files Browse the repository at this point in the history
  • Loading branch information
johnfitzpatrick committed Oct 31, 2023
1 parent 2069822 commit 6e30d30
Show file tree
Hide file tree
Showing 9 changed files with 83 additions and 41 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,20 @@
_id: env_6314879a72bad3aae58da44d2b79e6baf276045e
type: Environment
parentId: wrk_3bb7d2cce8874df1acc63b859f801136
modified: 1671035424374
modified: 1698765483557
created: 1671035424372
name: Base environment
data:
scheme: http
base_path: ""
host: localhost:3000
base_url: "{{ scheme }}://{{ host }}{{ base_path }}"
dataPropertyOrder: null
dataPropertyOrder:
"&":
- scheme
- base_path
- host
- base_url
color: null
isPrivate: false
metaSortKey: 1671035424372
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
_id: env_95ee49e28cf04cd7844db894c225fb1b
type: Environment
parentId: env_6314879a72bad3aae58da44d2b79e6baf276045e
modified: 1671035675874
modified: 1698765474527
created: 1671035647746
name: localdev
data:
Expand Down
34 changes: 34 additions & 0 deletions .insomnia/Request/req_aff22b43eaaf44528d264b0b781cc445.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
_id: req_aff22b43eaaf44528d264b0b781cc445
type: Request
parentId: wrk_3bb7d2cce8874df1acc63b859f801136
modified: 1671036338417
created: 1671036282497
url: "{{ base_url }}/transactions/{{ id }} "
name: Update a transaction
description: ""
method: PATCH
body:
mimeType: application/json
text: |-
{
"source": "DE8412325587359375895",
"senderName": "Max Mustermann",
"destination": "GR872659435350353",
"amount": 10.2,
"currency": "STG",
"subject": "The money we have talked about",
"id": "b88f7029-fa93-41a5-9462-4884e544bf63"
}
parameters: []
headers:
- name: Content-Type
value: application/json
authentication: {}
metaSortKey: -1671036282497
isPrivate: false
settingStoreCookies: true
settingSendCookies: true
settingDisableRenderRequestBody: false
settingEncodeUrl: true
settingRebuildPath: true
settingFollowRedirects: global
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
_id: req_41bbd2fb6a39471188bff30201f7010c
_id: req_wrk_3bb7d2cce8874df1acc63b859f80113623ac4fbb
type: Request
parentId: fld_27d4137e2fd34caa9cbf174d458b8861
modified: 1687789710709
created: 1687789710709
url: "{{ _.base_url }}/transactions/{{ _.id }}"
parentId: wrk_3bb7d2cce8874df1acc63b859f801136
modified: 1671035424348
created: 1671035424348
url: "{{ base_url }}/transactions/{{ id }}"
name: Cancel a transaction
description: ""
method: DELETE
Expand All @@ -13,9 +13,9 @@ headers: []
authentication:
type: apikey
key: apikey
value: "{{ _.apikey }}"
value: "{{ apikey }}"
addTo: header
metaSortKey: -1687789710709
metaSortKey: -1671035424348
isPrivate: false
settingStoreCookies: true
settingSendCookies: true
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
_id: req_e595bff6bf344d1eae98ae3b454fca4e
_id: req_wrk_3bb7d2cce8874df1acc63b859f80113696c324be
type: Request
parentId: fld_27d4137e2fd34caa9cbf174d458b8861
modified: 1687789710707
created: 1687789710707
url: "{{ _.base_url }}/transactions"
parentId: wrk_3bb7d2cce8874df1acc63b859f801136
modified: 1671035424365
created: 1671035424365
url: "{{ base_url }}/transactions"
name: Create new transaction
description: ""
method: POST
Expand All @@ -14,9 +14,9 @@ headers: []
authentication:
type: apikey
key: apikey
value: "{{ _.apikey }}"
value: "{{ apikey }}"
addTo: header
metaSortKey: -1687789710707
metaSortKey: -1671035424365
isPrivate: false
settingStoreCookies: true
settingSendCookies: true
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
_id: req_61451122e5a84bb4a07efe609b061843
_id: req_wrk_3bb7d2cce8874df1acc63b859f801136bac61fd8
type: Request
parentId: fld_27d4137e2fd34caa9cbf174d458b8861
modified: 1687789710705
created: 1687789710705
url: "{{ _.base_url }}/transactions"
parentId: wrk_3bb7d2cce8874df1acc63b859f801136
modified: 1671035424369
created: 1671035424369
url: "{{ base_url }}/transactions"
name: List all transactions
description: ""
method: GET
Expand All @@ -13,9 +13,9 @@ headers: []
authentication:
type: apikey
key: apikey
value: "{{ _.apikey }}"
value: "{{ apikey }}"
addTo: header
metaSortKey: -1687789710705
metaSortKey: -1671035424369
isPrivate: false
settingStoreCookies: true
settingSendCookies: true
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
_id: req_f85df57a00a946b79fa390de8237065a
_id: req_wrk_3bb7d2cce8874df1acc63b859f801136f7902e25
type: Request
parentId: fld_27d4137e2fd34caa9cbf174d458b8861
modified: 1687789710709
created: 1687789710709
url: "{{ _.base_url }}/transactions/{{ _.id }}"
parentId: wrk_3bb7d2cce8874df1acc63b859f801136
modified: 1671035718199
created: 1671035424362
url: "{{ base_url }}/transactions/{{ id }}"
name: Get specific transaction
description: ""
method: GET
Expand All @@ -13,9 +13,9 @@ headers: []
authentication:
type: apikey
key: apikey
value: "{{ _.apikey }}"
value: "{{ apikey }}"
addTo: header
metaSortKey: -1687789710709
metaSortKey: -1671035424362
isPrivate: false
settingStoreCookies: true
settingSendCookies: true
Expand Down
10 changes: 0 additions & 10 deletions .insomnia/RequestGroup/fld_27d4137e2fd34caa9cbf174d458b8861.yml

This file was deleted.

10 changes: 10 additions & 0 deletions .insomnia/UnitTest/ut_74e89eb2cf6540eb93ddfc7f7772a798.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
_id: ut_74e89eb2cf6540eb93ddfc7f7772a798
type: UnitTest
parentId: uts_9729807abb1143879655f15c8341dec4
modified: 1671036391923
created: 1671036388774
requestId: req_aff22b43eaaf44528d264b0b781cc445
name: Patch Transaction Returns 200
code: |-
const response1 = await insomnia.send();
expect(response1.status).to.equal(200);

0 comments on commit 6e30d30

Please sign in to comment.