generated from CDCgov/template
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added hurl scripts for delivery and token RS endpoints (#1219)
- Loading branch information
1 parent
cddabfa
commit b6431bd
Showing
2 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |