Skip to content

Add secret-free Bruno API collection - #379

Merged
ashrafee-dev merged 1 commit into
ashrafee-dev:mainfrom
JairVilleda:feat/263-bruno-api-collection
Nov 26, 2026
Merged

ashrafee-dev merged 1 commit into
ashrafee-dev:mainfrom
JairVilleda:feat/263-bruno-api-collection

Conversation

@JairVilleda

@JairVilleda JairVilleda commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Outcome

Adds a secret-free Bruno API collection with local mock responses for testing the ScamShield API endpoints. Fixes #263.

Changes

  • Added Bruno requests for health, readiness, text analysis, audio analysis, and invalid-token authentication.
  • Added a local Python mock server that returns fixed responses without contacting production services.
  • Added unit tests covering authentication behavior, including unauthorized requests with large request bodies.
  • Added documentation for importing and running the collection locally.
  • Added a local environment using a placeholder API token.
  • No production API code, Docker configuration, or dependencies were changed.

Verification

  • python3 -m unittest discover -s examples/bruno-collection -p "test_*.py" — 3 tests passed.
  • "$(npm prefix -g)/bin/bru" run -r --env local — 5 requests passed, 3 Bruno tests passed, and 16 assertions passed.
  • bash scripts/check.sh — 55 tests passed; Pylint scored 10.00/10.
  • git diff --cached --check — passed.
  • All Bruno requests were verified against the local mock server. No production API requests were made.

Review notes

The collection is intended for local, offline testing. The API token in the local environment is a placeholder and must be replaced only when testing against a real API. The mock server uses fixed responses and does not require external services.

I used AI tools as coding assistance during development, but I reviewed the implementation and personally ran the tests and verification commands listed above.

@vercel

vercel Bot commented Nov 26, 2026

Copy link
Copy Markdown

@JairVilleda is attempting to deploy a commit to the ashrafee-dev's projects Team on Vercel.

A member of the Team first needs to authorize it.

@vercel

vercel Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
scamshield-api Ready Ready Preview Nov 26, 2026 5:19pm UTC

@ashrafee-dev
ashrafee-dev merged commit d61348d into ashrafee-dev:main Nov 26, 2026
2 of 3 checks passed
@ashrafee-dev

Copy link
Copy Markdown
Owner

Thanks for your contributions! @JairVilleda

@JairVilleda

Copy link
Copy Markdown
Contributor Author

Thanks for merging this! I'm glad the Bruno collection is now part of the project.

This branch was successfully deployed

1 active deployment
Preview – scamshield-api — 24cab4e4 Deployed Nov 26, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a secret-free Bruno API collection

2 participants