[Patchew-devel] [PATCH v2] rest: add api/v1/messages endpoint (POST support)
Paolo Bonzini
pbonzini at redhat.com
Fri May 18 11:36:18 UTC 2018
On 16/05/2018 17:45, Shubham Jain wrote:
>
>
> - create() does json->MboxMessage and uses the MboxMessage to do
> p.recognizes(m)
>
> How to create MboxMessage from json?
By writing new code (e.g. "if isinstance(argument, dict)" in
MboxMessage's constructor). :)
But it can be sorted out later.
As agreed on IRC, the next step can be to move update-project-head's
implementation mostly out of api/views.py, so that we can add it to the
REST API.
Paolo
More information about the Patchew-devel
mailing list