Skip to content

Add Swagger security, OpenAPI 3.1, tests, and FTS migration (#885, #884, #883, #882, #881) - #981

Open
Muhammadjazuli wants to merge 1 commit into
MettaChain:mainfrom
Muhammadjazuli:feat/swagger-auth-docs-tests-fts
Open

Add Swagger security, OpenAPI 3.1, tests, and FTS migration (#885, #884, #883, #882, #881)#981
Muhammadjazuli wants to merge 1 commit into
MettaChain:mainfrom
Muhammadjazuli:feat/swagger-auth-docs-tests-fts

Conversation

@Muhammadjazuli

@Muhammadjazuli Muhammadjazuli commented Jul 26, 2026

Copy link
Copy Markdown

Changes

Add OpenAPI/Swagger security scheme definitions (Closes #885)

  • Added @ApiBearerAuth('access-token') to all protected controllers (auth, admin, properties, search, users, dashboard, documents, sessions, favorites, property-views)

Create API documentation generation pipeline with OpenAPI 3.1 (Closes #884)

  • Upgrade to OpenAPI 3.1.0 specification
  • Add new tags: Transactions, Blockchain, Search, Documents, Notifications, Analytics

Create comprehensive integration tests for database interactions (Closes #883)

  • PrismaTestHelper class for test database setup/teardown
  • Property integration test with CRUD operations

Add unit tests for services (Closes #886)

  • search.service.spec.ts with tests for all public methods
  • property-views.service.spec.ts with tests for view recording and deduplication

Add database migration for full-text search indexes (#881)

  • tsvector column for searchable fields
  • GIN index for full-text search
  • Auto-update trigger for search vector

…tion

- Add OpenAPI/Swagger security scheme definitions (MettaChain#885): @ApiBearerAuth on all protected controllers
- Upgrade to OpenAPI 3.1 (MettaChain#884): Add .setOpenAPI('3.1.0'), new tags for Transactions, Blockchain, Search, Documents, Notifications, Analytics
- Create database integration test helpers (MettaChain#883): PrismaTestHelper class and property integration test
- Add unit tests for services (MettaChain#882): search.service.spec.ts, property-views.service.spec.ts
- Add full-text search migration (MettaChain#881): tsvector column, GIN index, auto-update trigger for properties
@drips-wave

drips-wave Bot commented Jul 26, 2026

Copy link
Copy Markdown

@Muhammadjazuli Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant