pepkit / pephub

A web API and database for biological sample metadata
https://pephub.databio.org
BSD 2-Clause "Simplified" License
13 stars 2 forks source link

Annotate response model for all endpoints #303

Open nleroy917 opened 3 months ago

nleroy917 commented 3 months ago

We should mirror what we now do over in the BEDbase UI with auto-gen of TypeScript types for development. This requires that all endpoints are annotated with a response_model object, I believe.

Then we can add a package.json script to generate the types and switch over our queries to use that for response model annotation.