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

add a replay endpoint to the API #10

Open
pulkitsinghal opened this issue Sep 13, 2016 · 0 comments
Open

add a replay endpoint to the API #10

pulkitsinghal opened this issue Sep 13, 2016 · 0 comments

Comments

@pulkitsinghal
Copy link
Contributor

Let's say we created a job via a curl request that had a payload (env and stdin etc.) and in response we ended up with JOB_ID=aaa

To take the feature set further, how about adding an endpoint like:
POST /api/jobs/<JOB_ID>/replay
which will automatically create another job and return a new JOB_ID=bbb

The merit is that we don't post the request data again and therefore we don't make a human error when trying to replay something from the past.

@pulkitsinghal pulkitsinghal changed the title add a replay api endpoint add a replay endpoint to the API Sep 13, 2016
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

No branches or pull requests

1 participant