Skip to content

Commit

Permalink
Merge pull request #162 from mattrltrent/endpoint_effiency
Browse files Browse the repository at this point in the history
feat: Endpoint Speed Checker
  • Loading branch information
mattrltrent authored Aug 28, 2023
2 parents e9eb786 + c126451 commit 9938c9f
Show file tree
Hide file tree
Showing 15 changed files with 222 additions and 72 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,9 @@ docker exec -it confesi-db psql -U postgres confesi
# generate a new `confesi.dbml`
./scripts/database dbml

# endpoint speed checker
go run ./scripts/main.go --test-endpoints-speed

# seed data (use the POSTGRES_DSN found in `/scripts/test` not `.env`)
export POSTGRES_DSN=""
export MASK_SECRET="" # Found in `.env`
Expand Down
36 changes: 21 additions & 15 deletions features/admin/requests.http

Large diffs are not rendered by default.

8 changes: 5 additions & 3 deletions features/auth/requests.http
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Content-Type: application/json
PATCH http://127.0.0.1:8080/api/v1/auth/update-email
Content-Type: application/json
X-AppCheck-Token: kXfeSRgYTnoUztu6MO8FndqiRayoBaJqyDKQmoqvX3V9sZVlep/cm7cP!mgd-B9H
Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6IjYzODBlZjEyZjk1ZjkxNmNhZDdhNGNlMzg4ZDJjMmMzYzIzMDJmZGUiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTI2MDQ1NjUsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MjYwNDU2NSwiZXhwIjoxNjkyNjA4MTY1LCJlbWF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XRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.dnfzRjR_pYKwDg5vjnHmFGvJj7gRKsCNyApva3x4QpTtOCbisydqh-e7SNNwEvB0EZ6EaNa4tBODI2OkMVb7XPY0F7RHsCDnZNGmQ5n4aVbdQl88LCAniWFqGoTvEOOobaQbi4UVpuyfQKrwGkOr_v9mxxtqUmSA9pABC2rR7YuIPO9sX7MseY6iGrQArBmHI_LzeTYzZAuWiyDizN1UUOvBKb5z6wKAL43mcESAjmN4JKNdQJNPf2GpebCeZUBmT0ds23ZfjC6Tb_etEabD4CcEbTczl1Gen-8T35Sp16qkCIKduKbj63IjDDh0YC41ZA-1Rp_sSJ9kBNrFj0QD4w

{
"email": "[email protected]"
Expand All @@ -25,13 +25,15 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6IjYzODBlZjEyZjk1ZjkxNmNhZDdhNG

POST http://127.0.0.1:8080/api/v1/auth/resend-verification-email
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6IjYzODBlZjEyZjk1ZjkxNmNhZDdhNGNlMzg4ZDJjMmMzYzIzMDJmZGUiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTI2MDQ1NjUsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MjYwNDU2NSwiZXhwIjoxNjkyNjA4MTY1LCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haW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ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.dnfzRjR_pYKwDg5vjnHmFGvJj7gRKsCNyApva3x4QpTtOCbisydqh-e7SNNwEvB0EZ6EaNa4tBODI2OkMVb7XPY0F7RHsCDnZNGmQ5n4aVbdQl88LCAniWFqGoTvEOOobaQbi4UVpuyfQKrwGkOr_v9mxxtqUmSA9pABC2rR7YuIPO9sX7MseY6iGrQArBmHI_LzeTYzZAuWiyDizN1UUOvBKb5z6wKAL43mcESAjmN4JKNdQJNPf2GpebCeZUBmT0ds23ZfjC6Tb_etEabD4CcEbTczl1Gen-8T35Sp16qkCIKduKbj63IjDDh0YC41ZA-1Rp_sSJ9kBNrFj0QD4w

{}

### Send password reset email

POST http://127.0.0.1:8080/api/v1/auth/send-password-reset-email
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6IjYzODBlZjEyZjk1ZjkxNmNhZDdhNGNlMzg4ZDJjMmMzYzIzMDJmZGUiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTI2MDQ1NjUsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MjYwNDU2NSwiZXhwIjoxNjkyNjA4MTY1LCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ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SNNwEvB0EZ6EaNa4tBODI2OkMVb7XPY0F7RHsCDnZNGmQ5n4aVbdQl88LCAniWFqGoTvEOOobaQbi4UVpuyfQKrwGkOr_v9mxxtqUmSA9pABC2rR7YuIPO9sX7MseY6iGrQArBmHI_LzeTYzZAuWiyDizN1UUOvBKb5z6wKAL43mcESAjmN4JKNdQJNPf2GpebCeZUBmT0ds23ZfjC6Tb_etEabD4CcEbTczl1Gen-8T35Sp16qkCIKduKbj63IjDDh0YC41ZA-1Rp_sSJ9kBNrFj0QD4w

{
"email": "[email protected]"
Expand Down
Loading

0 comments on commit 9938c9f

Please sign in to comment.