Api test files for hurl.
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
POST http://localhost:3333/login
|
||||
[FormParams]
|
||||
email: jason@debian.org
|
||||
password: supersecretpassword
|
||||
|
||||
HTTP 200
|
||||
[Asserts]
|
||||
jsonpath "$.access_token" exists
|
||||
jsonpath "$.refresh_token" exists
|
||||
|
||||
[Captures]
|
||||
# We capture this so we can manually use it in curl/xh if we want
|
||||
last_token: jsonpath "$.access_token"
|
||||
Reference in New Issue
Block a user