Skip to content

Feature/api#82

Merged
waleedlatif1 merged 6 commits intomainfrom
feature/api
Feb 23, 2025
Merged

Feature/api#82
waleedlatif1 merged 6 commits intomainfrom
feature/api

Conversation

@waleedlatif1
Copy link
Collaborator

What does this PR do?

This PR introduces a one-click deploy as an API button in the control bar that allows users to deploy workflows as an API endpoint. As for now, each endpoint has its own corresponding key and we use that for validation, since we will leave the more sophisticated session/user validation for the SDK implementation.

Mandatory Tasks (DO NOT REMOVE)

  • [y] I have self-reviewed the code (A decent size PR without self-review might be rejected).
  • [y] I have updated the developer docs in /docs if this PR makes changes that would require a documentation change. If N/A, write N/A here and check the checkbox.
  • [y] I confirm automated tests are in place that prove my fix is effective or that my feature works.

How should this be tested?

This can be tested by clicking the deploy button, grabbing the API token/the example curl, and running it. So long as the key matches up, we can execute the workflow. Though not currently visible, we store the logs in the workflow_logs table where the user will be able to see the logs from all executions, regardless of how they were triggered (manual, scheduled, API).

@waleedlatif1 waleedlatif1 linked an issue Feb 23, 2025 that may be closed by this pull request
@vercel
Copy link

vercel bot commented Feb 23, 2025

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

Name Status Preview Comments Updated (UTC)
sim ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 23, 2025 9:45pm

@waleedlatif1 waleedlatif1 merged commit f52de5d into main Feb 23, 2025
3 checks passed
Copy link
Collaborator Author

@waleedlatif1 waleedlatif1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello

Copy link
Collaborator Author

@waleedlatif1 waleedlatif1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Helloooooooooo

Copy link
Collaborator Author

@waleedlatif1 waleedlatif1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hi

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.

One-Click Deploy as an API endpoint

2 participants