Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenAPI Codegen #1103

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

OpenAPI Codegen #1103

wants to merge 2 commits into from

Conversation

neo773
Copy link
Contributor

@neo773 neo773 commented Jan 8, 2025

This is WIP PR to codegen OpenAPI routes for type safe API calls, significantly improving code quality, reducing bugs and speeding up development time.

Navigate to this URL to download the spec file.
http://127.0.0.1:3030/openapi.json

This can now be used to generate type safe API client in any language.

Todo

  • Swap all API calls in Tauri frontend to use the new client.
  • Maybe publish @screenpipe/api for developers?

Demo:

a.mp4

Copy link

vercel bot commented Jan 8, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
screenpipe ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 8, 2025 0:13am

@neo773 neo773 changed the title add openapi codegen OpenAPI Codegen Jan 8, 2025
@louis030195
Copy link
Collaborator

why not, but not really a priority, i personally never use openapi and wasted so much time trying to make SDKs in the past with it which was not worthwhile (even in bigtech teams, we gave up on it, too hard to maintain)

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.

2 participants