Skip to content

Commit

Permalink
Added hurl scripts for delivery and token RS endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
basiliskus committed Aug 1, 2024
1 parent cddabfa commit 5cdd542
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
15 changes: 15 additions & 0 deletions scripts/hurl/rs/delivery.hurl
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
POST {{url}}/api/token
Content-Type: application/x-www-form-urlencoded
[FormParams]
scope: {{client-id}}.*.report
client_assertion: {{jwt}}
client_assertion_type: urn:ietf:params:oauth:client-assertion-type:jwt-bearer
grant_type: client_credentials

HTTP 200

[Captures]
token: jsonpath "$['access_token']"

GET {{url}}/api/waters/report/{{submissionid}}/delivery
Authorization: Bearer {{token}}
7 changes: 7 additions & 0 deletions scripts/hurl/rs/token.hurl
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
POST {{url}}/api/token
Content-Type: application/x-www-form-urlencoded
[FormParams]
scope: {{client-id}}.*.report
client_assertion: {{jwt}}
client_assertion_type: urn:ietf:params:oauth:client-assertion-type:jwt-bearer
grant_type: client_credentials

0 comments on commit 5cdd542

Please sign in to comment.