mirror of
https://github.com/xfarrow/blink
synced 2025-06-27 09:03:02 +02:00
Update API tests
This commit is contained in:
@ -0,0 +1,22 @@
|
||||
meta {
|
||||
name: RequestNewPassword
|
||||
type: http
|
||||
seq: 1
|
||||
}
|
||||
|
||||
post {
|
||||
url: http://localhost:3000/api/resetpassword/request
|
||||
body: json
|
||||
auth: none
|
||||
}
|
||||
|
||||
headers {
|
||||
Content-Type: application/json
|
||||
User-Agent: insomnia/2023.5.8
|
||||
}
|
||||
|
||||
body:json {
|
||||
{
|
||||
"email": "john@mail.org"
|
||||
}
|
||||
}
|
@ -0,0 +1,23 @@
|
||||
meta {
|
||||
name: ResetNewPassword
|
||||
type: http
|
||||
seq: 2
|
||||
}
|
||||
|
||||
post {
|
||||
url: http://localhost:3000/api/resetpassword/reset
|
||||
body: json
|
||||
auth: none
|
||||
}
|
||||
|
||||
headers {
|
||||
Content-Type: application/json
|
||||
User-Agent: insomnia/2023.5.8
|
||||
}
|
||||
|
||||
body:json {
|
||||
{
|
||||
"secret": "360837853e2d3cf799c709b44720b4e3",
|
||||
"password": "password"
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user