fatebook
fatebook copied to clipboard
API v1: all endpoints conform to OpenAPI spec
Pull Request: API v1 - all endpoints conform to OpenAPI spec
Related Issue
[Asana ref](API v1: all endpoints conform to OpenAPI spec)
Changes Made
- Added zod-prisma-types library and generated zod types from prisma schema
- Added return types to all public-facing APIs
- Updated getQuestion and createQuestion APIs to be compliant with OpenAPI schema
- Bumped API version to v1
- Added debug config for Jest tests
- Refactored utility functions in
question_router.tsxinto their own files
Testing
Wrote basic unit tests for public-facing APIs, tested all endpoints in Preview with Postman
The latest updates on your projects. Learn more about Vercel for Git ↗︎
| Name | Status | Preview | Comments | Updated (UTC) |
|---|---|---|---|---|
| forecast-bot | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Dec 17, 2024 1:25pm |
TODO: try to fix CORS issue from Discord (will do this after initial review)