You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Alexander Rukletsov (JIRA)" <ji...@apache.org> on 2015/12/03 15:57:11 UTC

[jira] [Commented] (MESOS-3920) Considering changing /reserve, /unreserve endpoint syntax

    [ https://issues.apache.org/jira/browse/MESOS-3920?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15037876#comment-15037876 ] 

Alexander Rukletsov commented on MESOS-3920:
--------------------------------------------

I believe the scope and plan are to send a single JSON object for all operator endpoints. See the corresponding epic: https://issues.apache.org/jira/browse/MESOS-3914

> Considering changing /reserve, /unreserve endpoint syntax
> ---------------------------------------------------------
>
>                 Key: MESOS-3920
>                 URL: https://issues.apache.org/jira/browse/MESOS-3920
>             Project: Mesos
>          Issue Type: Bug
>            Reporter: Neil Conway
>            Priority: Minor
>              Labels: http, mesosphere, reservations
>
> Right now, the "reserve" and "unreserve" endpoints work as follows:
> 1. slaveID and resources are sent as two separate key-value pairs in the body of the request, which is URL-encoded ({{application/x-www-form-urlencoded}} media type).
> 2. resources is itself a JSON document.
> This is a bit weird: it would more idiomatic to send a single JSON document (using content-type {{application/json}}) with the required information. [ Updated: the initial bug description claimed that slaveID and resources were sent as query parameters, but that is incorrect. ]
> Obviously, there are some backward compatibility concerns if we want to change this.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)