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 REST API #25

Closed
12 of 14 tasks
bonzini opened this issue Dec 5, 2017 · 5 comments
Closed
12 of 14 tasks

Add REST API #25

bonzini opened this issue Dec 5, 2017 · 5 comments
Labels
feature This is a user-visible feature

Comments

@bonzini
Copy link
Contributor

bonzini commented Dec 5, 2017

This would make it possible to integrate Patchew with external applications, such as IFTTT's "Maker channel" or Jenkins.

Todo list:

  • basic read-only API
  • "Results" infrastructure
    • separate endpoint for results (/project/[id]/series/[msgid]/results) instead of including them in the details view
    • project results (/project/{id}/results)
    • Refactor 'results' into a database table to allow posting arbitrary results via the REST API (see issue Introduce Result model #73)
  • basic write support for series/messages (flags, reviewers, ...)
  • add missing features of the old API
  • Token authentication
@bonzini bonzini added the feature This is a user-visible feature label Dec 12, 2017
@bonzini
Copy link
Contributor Author

bonzini commented Nov 26, 2018

Search on results is there, but applier-get and tester-get atomically change the result to pending too and do more updates. Ideas welcome on whether this should become a separate action, or whether PATCH could be used too...

@bonzini
Copy link
Contributor Author

bonzini commented May 2, 2019

Applier-get and tester-get should be respectively GET on /series/unapplied/ and POST on /projects/ID/get-test.

@bonzini
Copy link
Contributor Author

bonzini commented May 13, 2019

Posted support for token authentication.

@bonzini
Copy link
Contributor Author

bonzini commented May 15, 2019

And everything that's missing is now available at bonzini/patchew#rest-client.

@bonzini
Copy link
Contributor Author

bonzini commented May 17, 2019

Merged.

@bonzini bonzini closed this as completed May 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature This is a user-visible feature
Projects
None yet
Development

No branches or pull requests

1 participant