-
Notifications
You must be signed in to change notification settings - Fork 40
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
66/json api #73
66/json api #73
Conversation
Hi @JanKoppe, |
Btw, the old commits are still in |
This now returns valid json strings. Even for errors. I think we should move some of the modules around since the names do not fit that well anymore but I would do that in another pull request:
That way, we should hopefully also be able to get rid of the ugly circular dependencies |
Hey @lkiesow, I've rebased this to current master and fixed a small issue with serializing of event data. This tests fine on Python 3.7 as well. Can you take a quick look at this? I'm not sure where we exactly left this PR, and I'd love to get this out in the very near future. |
This patch adds tests and ensures that JSON with proper response codes is returned for all requests.
This patch fixes a minor issue where pyCA would end up with an internal server error in no content type was sent in an API request.
Generally looks good. I fixed a minor issue where you would get an internal server error when you don't send a content-type header but that's all I've found. I'll give it another look tomorrow but then likely merge it. Long term, we should maybe add pagination to listing requests like |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Finished the review.
Worked as expected after a few very minor modifications.
I've also added some documentation for the API.
This patch drops the hard requirement for content type specification for get requests since they do not contain a data body anyway.
This patch fixes the event status modification via API. Additionally, the output format is allowed to be used for input in contrast to only accepting the database internal representation.
don't merge yet, work in progress.