[PATCH] [frontend] Chroot details API now uses GET instead of POST

Miroslav Suchý msuchy at redhat.com
Thu Feb 13 11:15:58 UTC 2014


On 02/13/2014 11:58 AM, Matej Stuchlik wrote:
> ---
>   coprs_frontend/coprs/views/api_ns/api_general.py | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/coprs_frontend/coprs/views/api_ns/api_general.py b/coprs_frontend/coprs/views/api_ns/api_general.py
> index d43d0dd..0a673d2 100644
> --- a/coprs_frontend/coprs/views/api_ns/api_general.py
> +++ b/coprs_frontend/coprs/views/api_ns/api_general.py
> @@ -321,7 +321,7 @@ def copr_modify_chroot(username, coprname, chrootname):
>       jsonout.status_code = httpcode
>       return jsonout
>
> - at api_ns.route('/coprs/<username>/<coprname>/detail/<chrootname>/', methods=["POST"])
> + at api_ns.route('/coprs/<username>/<coprname>/detail/<chrootname>/', methods=["GET"])
>   def copr_chroot_details(username, coprname, chrootname):
>       copr = coprs_logic.CoprsLogic.get(flask.g.user, username, coprname).first()
>       chroot = coprs_logic.MockChrootsLogic.get_from_name(chrootname, active_only=True).first()
>

Applied. Thanks.

-- 
Miroslav Suchy, RHCE, RHCDS
Red Hat, Senior Software Engineer, #brno, #devexp, #fedora-buildsys


More information about the copr-devel mailing list