diff --git a/scripts/hurl/rs/delivery.hurl b/scripts/hurl/rs/delivery.hurl new file mode 100644 index 000000000..1d4abd692 --- /dev/null +++ b/scripts/hurl/rs/delivery.hurl @@ -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}} diff --git a/scripts/hurl/rs/token.hurl b/scripts/hurl/rs/token.hurl new file mode 100644 index 000000000..6c8a3e8f6 --- /dev/null +++ b/scripts/hurl/rs/token.hurl @@ -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