added addresses endpoints

This commit is contained in:
Daniel Goc
2026-04-09 12:21:56 +02:00
parent 75997ab15b
commit 1083ab7a61
17 changed files with 684 additions and 15 deletions

View File

@@ -0,0 +1,31 @@
info:
name: add-new-address
type: http
seq: 1
http:
method: POST
url: http://localhost:3000/api/v1/restricted/addresses/add-new-address?country_id=1
params:
- name: country_id
value: "1"
type: query
body:
type: json
data: |-
{
"postal_code": "31-154",
"city": "Kraków",
"voivodeship": "małopolskie",
"street": "Długa",
"building_no": "5",
"apartment_no": "7",
"recipient": "Jan Kowalski"
}
auth: inherit
settings:
encodeUrl: true
timeout: 0
followRedirects: true
maxRedirects: 5

View File

@@ -0,0 +1,19 @@
info:
name: delete-address
type: http
seq: 4
http:
method: DELETE
url: http://localhost:3000/api/v1/restricted/addresses/delete-address?address_id=1
params:
- name: address_id
value: "1"
type: query
auth: inherit
settings:
encodeUrl: true
timeout: 0
followRedirects: true
maxRedirects: 5

View File

@@ -0,0 +1,7 @@
info:
name: addresses
type: folder
seq: 10
request:
auth: inherit

View File

@@ -0,0 +1,19 @@
info:
name: get-template
type: http
seq: 5
http:
method: GET
url: http://localhost:3000/api/v1/restricted/addresses/get-template?country_id=3
params:
- name: country_id
value: "3"
type: query
auth: inherit
settings:
encodeUrl: true
timeout: 0
followRedirects: true
maxRedirects: 5

View File

@@ -0,0 +1,33 @@
info:
name: modify-address
type: http
seq: 2
http:
method: POST
url: http://localhost:3000/api/v1/restricted/addresses/modify-address?country_id=1&address_id=1
params:
- name: country_id
value: "1"
type: query
- name: address_id
value: "1"
type: query
body:
type: json
data: |-
{
"postal_code": "31-154",
"city": "Kraków",
"voivodeship": "śląskie",
"street": "Długa",
"building_no": "5",
"recipient": "Adam Adamowicz"
}
auth: inherit
settings:
encodeUrl: true
timeout: 0
followRedirects: true
maxRedirects: 5

View File

@@ -0,0 +1,15 @@
info:
name: retrieve-addresses
type: http
seq: 3
http:
method: GET
url: http://localhost:3000/api/v1/restricted/addresses/retrieve-addresses
auth: inherit
settings:
encodeUrl: true
timeout: 0
followRedirects: true
maxRedirects: 5

View File

@@ -0,0 +1,15 @@
info:
name: download-file
type: http
seq: 3
http:
method: GET
url: http://localhost:3000/api/v1/restricted/storage/download-file/dest/src/cccc.txt
auth: inherit
settings:
encodeUrl: true
timeout: 0
followRedirects: true
maxRedirects: 5

View File

@@ -0,0 +1,15 @@
info:
name: list-content
type: http
seq: 2
http:
method: GET
url: http://localhost:3000/api/v1/restricted/storage/list-content/dest/src
auth: inherit
settings:
encodeUrl: true
timeout: 0
followRedirects: true
maxRedirects: 5