Skip to content

Commit

Permalink
Merge branch 'develop' into align-develop-20241122
Browse files Browse the repository at this point in the history
  • Loading branch information
beetlecrunch authored Nov 22, 2024
2 parents e07cf77 + cd3422b commit 9327e8e
Show file tree
Hide file tree
Showing 385 changed files with 38,637 additions and 6,726 deletions.
2 changes: 2 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
save-prefix=
auto-install-peers = false
strict-peer-dependencies = true
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ headers {
body:multipart-form {
name: testone 2
prettyName: testone 2
doc: @file(/Users/ecamel/Downloads/Backend for Frontend Micro Service.postman_collection.json)
doc: @file()
}

docs {
Expand Down
2 changes: 1 addition & 1 deletion collections/bff/authorization/get Session Token.bru
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ headers {

body:json {
{
"identity_token": {{JWT}}
"identity_token": "{{process.env.JWT}}"
}
}

Expand Down
8 changes: 3 additions & 5 deletions collections/bff/catalog/Add new e-service document.bru
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ post {
}

params:path {
eServiceId: 26f433e1-2c3c-4022-a14e-3c300baefc51
descriptorId: abafb202-4f61-42bf-be2f-4efa5d4d0bc4
eServiceId: {{eserviceId}}
descriptorId: {{descriptorId}}
}

headers {
Expand All @@ -21,10 +21,8 @@ headers {
Content-Type: multipart/form-data
}



body:multipart-form {
kind: INTERFACE
prettyName: asdasd
doc: @file(/Users/ecamel/Downloads/Interfaccia.yaml)
doc: @file()
}
2 changes: 1 addition & 1 deletion collections/bff/catalog/Import Eservice.bru
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ headers {
body:json {
{
"filename": "054d02f9-7beb-4443-994a-062c4157672e_1635b970-eb99-4c12-8a51-aac884dfd648.zip",
"url": "http://localhost:9000/interop-application-import-export-local/local/eservices-import/69e2865e-65ab-4e48-a638-2037a9ee2ee7/054d02f9-7beb-4443-994a-062c4157672e_1635b970-eb99-4c12-8a51-aac884dfd648.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=testawskey%2F20241001%2Feu-central-1%2Fs3%2Faws4_request&X-Amz-Date=20241001T132035Z&X-Amz-Expires=5000&X-Amz-Signature=b24b9928969cd58351e7c5d6c25e509c7b6f1436fc5835ef54c0331972b94c40&X-Amz-SignedHeaders=host&x-id=PutObject"
"url": "http://localhost:9000/interop-application-import-export-local/local/eservices-import/69e2865e-65ab-4e48-a638-2037a9ee2ee7/054d02f9-7beb-4443-994a-062c4157672e_1635b970-eb99-4c12-8a51-aac884dfd648.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=testawskey%2F20241001%2Feu-south-1%2Fs3%2Faws4_request&X-Amz-Date=20241001T132035Z&X-Amz-Expires=5000&X-Amz-Signature=b24b9928969cd58351e7c5d6c25e509c7b6f1436fc5835ef54c0331972b94c40&X-Amz-SignedHeaders=host&x-id=PutObject"
}
}
2 changes: 1 addition & 1 deletion collections/bff/catalog/Import Eservices.bru
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ headers {

body:multipart-form {
filename: f07b1c49-38fc-445e-a103-c2c156ae85ca_3bb5154d-eebc-42fd-9ea9-32b5be48e434.zip
url: http://localhost:9000/interop-application-import-export-local/local/eservices-import/69e2865e-65ab-4e48-a638-2037a9ee2ee7/f07b1c49-38fc-445e-a103-c2c156ae85ca_3bb5154d-eebc-42fd-9ea9-32b5be48e434.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=testawskey%2F20241001%2Feu-central-1%2Fs3%2Faws4_request&X-Amz-Date=20241001T140847Z&X-Amz-Expires=5000&X-Amz-Signature=d57f527006fce0a819c381821c688aa9d211a38f250f8bc450ff661ca06923d2&X-Amz-SignedHeaders=host&x-id=PutObject
url: http://localhost:9000/interop-application-import-export-local/local/eservices-import/69e2865e-65ab-4e48-a638-2037a9ee2ee7/f07b1c49-38fc-445e-a103-c2c156ae85ca_3bb5154d-eebc-42fd-9ea9-32b5be48e434.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=testawskey%2F20241001%2Feu-south-1%2Fs3%2Faws4_request&X-Amz-Date=20241001T140847Z&X-Amz-Expires=5000&X-Amz-Signature=d57f527006fce0a819c381821c688aa9d211a38f250f8bc450ff661ca06923d2&X-Amz-SignedHeaders=host&x-id=PutObject
}
6 changes: 2 additions & 4 deletions collections/bff/catalog/Publish the selected descriptor.bru
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,11 @@ post {
}

params:path {
eServiceId: <uuid>
descriptorId: <uuid>
eServiceId: {{eserviceId}}
descriptorId: {{descriptorId}}
}

headers {
Authorization: {{JWT}}
x-correlation-id: {{correlation-id}}
}


20 changes: 20 additions & 0 deletions collections/bff/delegation/Approve Delegation.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
meta {
name: Approve delegation
type: http
seq: 1
}

post {
url: {{host-bff}}/producer/delegations/:delegationId/approve
body: none
auth: none
}

params:path {
delegationId: dd10132c-f3c9-45cf-994c-3a312bc4ab4e
}

headers {
Authorization: {{JWT}}
X-Correlation-Id: {{correlation-id}}
}
23 changes: 23 additions & 0 deletions collections/bff/delegation/Create Delegation.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
meta {
name: Create new delegation
type: http
seq: 1
}

post {
url: {{host-bff}}/producer/delegations
body: json
auth: none
}

body:json {
{
"eserviceId": "2f19b864-0fdc-4d2d-b01f-52bfad74fd34",
"delegateId": "aada3e71-c544-4fa0-beb8-81274ae0addf"
}
}

headers {
Authorization: {{JWT}}
X-Correlation-Id: {{correlation-id}}
}
20 changes: 20 additions & 0 deletions collections/bff/delegation/Get Delegation ById.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
meta {
name: Retrieves a delegation by ID
type: http
seq: 1
}

get {
url: {{host-bff}}/delegations/:delegationId
body: none
auth: none
}

params:path {
delegationId: dd10132c-f3c9-45cf-994c-3a312bc4ab4e
}

headers {
Authorization: {{JWT}}
X-Correlation-Id: {{correlation-id}}
}
26 changes: 26 additions & 0 deletions collections/bff/delegation/Get Delegations.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
meta {
name: List delegations
type: http
seq: 1
}

get {
url: {{host-bff}}/delegations?offset=0&limit=50
body: none
auth: none
}

params:query {
offset: 0
limit: 50
~kind: DELEGATED_PRODUCER
~states: WAITING_FOR_APPROVAL
~delegatorIds:
~delegateIds:
~eserviceIds:
}

headers {
Authorization: {{JWT}}
X-Correlation-Id: {{correlation-id}}
}
26 changes: 26 additions & 0 deletions collections/bff/delegation/Reject Delegation.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
meta {
name: Reject delegation
type: http
seq: 1
}

post {
url: {{host-bff}}/producer/delegations/:delegationId/reject
body: json
auth: none
}

body:json {
{
"rejectionReason": "I'm not feel comfortable with this delegation"
}
}

params:path {
delegationId: dd10132c-f3c9-45cf-994c-3a312bc4ab4e
}

headers {
Authorization: {{JWT}}
X-Correlation-Id: {{correlation-id}}
}
20 changes: 20 additions & 0 deletions collections/bff/delegation/Revoke Delegation.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
meta {
name: Revoke a delegation by ID
type: http
seq: 1
}

delete {
url: {{host-bff}}/producer/delegations/:delegationId
body: none
auth: none
}

params:path {
delegationId: dd10132c-f3c9-45cf-994c-3a312bc4ab4e
}

headers {
Authorization: {{JWT}}
X-Correlation-Id: {{correlation-id}}
}
1 change: 1 addition & 0 deletions collections/collection.bru
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
vars:pre-request {
tenantId: 69e2865e-65ab-4e48-a638-2037a9ee2ee7
tenantId2: 0cf1db41-3085-43a6-9e4c-57e0fb81a916
userId1: f07ddb8f-17f9-47d4-b31e-35d1ac10e521
userId2: 2a1614d7-c1aa-4148-895f-dcadb75b6660
keyEncodedPem: LS0tLS1CRUdJTiBQVUJMSUMgS0VZLS0tLS0KTUlHZk1BMEdDU3FHU0liM0RRRUJBUVVBQTRHTkFEQ0JpUUtCZ1FETUVrdEZVVyszY2VWN01FT2RBVG5ZYWc3eQpJc3JtRDZ6eVBTZHhJTDlJczNmdnlGREMvbnVCWVFpa3Izampjc21aREdTN0RGKzNWRUJ3UXFYUldGM3NObElRCnFIc21Td2x2NjZ2ZDQ0OHEzSXpSb1JBWktGMGc3c3BGcUJ5bi9DTXZaM0RET2xVK2V0c2xDYWRNa084UktyM1YKd2xqQjFJdk90TWtCd2lLTU53SURBUUFCCi0tLS0tRU5EIFBVQkxJQyBLRVktLS0tLQo=
Expand Down
30 changes: 30 additions & 0 deletions collections/delegation/List delegations.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
meta {
name: List delegations
type: http
seq: 1
}

get {
url: {{host-delegation}}/delegations?offset=0&limit=50
body: none
auth: none
}

params:query {
offset: 0
limit: 50
~kind: DELEGATED_PRODUCER
~delegationStates: WAITING_FOR_APPROVAL
~delegatorIds:
~delegateIds:
~eserviceIds:
}

headers {
Authorization: {{JWT}}
X-Correlation-Id: {{correlation-id}}
}

vars:post-response {
delegationId: res.body.results.at(-1).id
}
20 changes: 20 additions & 0 deletions collections/delegation/Retrieves a delegation.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
meta {
name: Retrieves a delegation
type: http
seq: 2
}

get {
url: {{host-delegation}}/delegations/:delegationId
body: none
auth: none
}

params:path {
delegationId: {{delegationId}}
}

headers {
Authorization: {{JWT}}
X-Correlation-Id: {{correlation-id}}
}
11 changes: 11 additions & 0 deletions collections/delegation/health/Health status endpoint.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
meta {
name: Health status endpoint
type: http
seq: 1
}

get {
url: {{host-delegation}}/status
body: none
auth: none
}
20 changes: 20 additions & 0 deletions collections/delegation/producer/Approves a delegation.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
meta {
name: Approves a delegation
type: http
seq: 2
}

post {
url: {{host-delegation}}/producer/delegations/:delegationId/approve
body: none
auth: none
}

params:path {
delegationId: {{delegationId}}
}

headers {
Authorization: {{JWT2}}
X-Correlation-Id: {{correlation-id}}
}
27 changes: 27 additions & 0 deletions collections/delegation/producer/Delegation Creation.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
meta {
name: Delegation Creation
type: http
seq: 1
}

post {
url: {{host-delegation}}/producer/delegations
body: json
auth: none
}

headers {
Authorization: {{JWT}}
X-Correlation-Id: {{correlation-id}}
}

body:json {
{
"eserviceId": "{{eserviceId}}",
"delegateId": "{{tenantId2}}"
}
}

vars:post-response {
delegationId: res.body.id
}
26 changes: 26 additions & 0 deletions collections/delegation/producer/Rejects a delegation.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
meta {
name: Rejects a delegation
type: http
seq: 3
}

post {
url: {{host-delegation}}/producer/delegations/:delegationId/reject
body: json
auth: none
}

params:path {
delegationId: {{delegationId}}
}

headers {
Authorization: {{JWT2}}
X-Correlation-Id: {{correlation-id}}
}

body:json {
{
"rejectionReason": "test rejection reason"
}
}
20 changes: 20 additions & 0 deletions collections/delegation/producer/Revoke a delegation.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
meta {
name: Revoke a delegation
type: http
seq: 4
}

delete {
url: {{host-delegation}}/producer/delegations/:delegationId
body: none
auth: none
}

params:path {
delegationId: {{delegationId}}
}

headers {
Authorization: {{JWT}}
X-Correlation-Id: {{correlation-id}}
}
Loading

0 comments on commit 9327e8e

Please sign in to comment.