diff --git a/scripts/hurl/rs/delivery.hurl b/scripts/hurl/rs/delivery.hurl index 1d4abd692..ec86bc53a 100644 --- a/scripts/hurl/rs/delivery.hurl +++ b/scripts/hurl/rs/delivery.hurl @@ -1,3 +1,4 @@ +# curl --header 'Content-Type: application/x-www-form-urlencoded' --data 'scope=flexion.*.report' --data 'client_assertion=$(jwt encode --exp=+5min --jti $(uuidgen) --alg RS256 -k $client -i $client -s $client -a $host --no-iat -S @/path/to/ucsd-epic-private-key.pem) --data 'client_assertion_type=urn:ietf:params:oauth:client-assertion-type:jwt-bearer' --data 'grant_type=client_credentials' 'http://localhost:7071/api/token' POST {{url}}/api/token Content-Type: application/x-www-form-urlencoded [FormParams] diff --git a/scripts/hurl/rs/history.hurl b/scripts/hurl/rs/history.hurl index 558c5b765..5eec369cf 100644 --- a/scripts/hurl/rs/history.hurl +++ b/scripts/hurl/rs/history.hurl @@ -1,3 +1,4 @@ +# curl --header 'Content-Type: application/x-www-form-urlencoded' --data 'scope=flexion.*.report' --data 'client_assertion=$(jwt encode --exp=+5min --jti $(uuidgen) --alg RS256 -k $client -i $client -s $client -a $host --no-iat -S @/path/to/ucsd-epic-private-key.pem) --data 'client_assertion_type=urn:ietf:params:oauth:client-assertion-type:jwt-bearer' --data 'grant_type=client_credentials' 'http://localhost:7071/api/token' POST {{url}}/api/token Content-Type: application/x-www-form-urlencoded [FormParams] @@ -11,5 +12,6 @@ HTTP 200 [Captures] token: jsonpath "$['access_token']" +# curl --header 'Authorization: Bearer $token' 'http://localhost:7071/api/waters/report/$submissionid/history' GET {{url}}/api/waters/report/{{submissionid}}/history Authorization: Bearer {{token}} diff --git a/scripts/hurl/rs/token.hurl b/scripts/hurl/rs/token.hurl index 6c8a3e8f6..d4479d6a3 100644 --- a/scripts/hurl/rs/token.hurl +++ b/scripts/hurl/rs/token.hurl @@ -1,3 +1,4 @@ +# curl --header 'Content-Type: application/x-www-form-urlencoded' --data 'scope=flexion.*.report' --data 'client_assertion=$(jwt encode --exp=+5min --jti $(uuidgen) --alg RS256 -k $client -i $client -s $client -a $host --no-iat -S @/path/to/ucsd-epic-private-key.pem) --data 'client_assertion_type=urn:ietf:params:oauth:client-assertion-type:jwt-bearer' --data 'grant_type=client_credentials' 'http://localhost:7071/api/token' POST {{url}}/api/token Content-Type: application/x-www-form-urlencoded [FormParams] diff --git a/scripts/hurl/rs/waters.hurl b/scripts/hurl/rs/waters.hurl index b168e95c4..ff42ad1fd 100644 --- a/scripts/hurl/rs/waters.hurl +++ b/scripts/hurl/rs/waters.hurl @@ -1,3 +1,4 @@ +# curl --header 'Content-Type: application/x-www-form-urlencoded' --data 'scope=flexion.*.report' --data 'client_assertion=$(jwt encode --exp=+5min --jti $(uuidgen) --alg RS256 -k $client -i $client -s $client -a $host --no-iat -S @/path/to/ucsd-epic-private-key.pem) --data 'client_assertion_type=urn:ietf:params:oauth:client-assertion-type:jwt-bearer' --data 'grant_type=client_credentials' 'http://localhost:7071/api/token' POST {{url}}/api/token Content-Type: application/x-www-form-urlencoded [FormParams] @@ -11,6 +12,7 @@ HTTP 200 [Captures] token: jsonpath "$['access_token']" +# curl --header 'Content-Type: application/hl7-v2' --header 'Client: flexion.simulated-hospital' --header 'Authorization: Bearer $token' --data-binary '@/path/to/message.hl7' 'http://localhost:7071/api/waters' POST {{url}}/api/waters Content-Type: {{content-type}} Client: {{client-id}}.{{client-sender}}