fatebook icon indicating copy to clipboard operation
fatebook copied to clipboard

API v1: all endpoints conform to OpenAPI spec

Open jonnyspicer opened this issue 1 year ago • 2 comments

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.tsx into their own files

Testing

Wrote basic unit tests for public-facing APIs, tested all endpoints in Preview with Postman

jonnyspicer avatar Sep 27 '24 17:09 jonnyspicer

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

vercel[bot] avatar Sep 27 '24 17:09 vercel[bot]

TODO: try to fix CORS issue from Discord (will do this after initial review)

jonnyspicer avatar Nov 12 '24 15:11 jonnyspicer