You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by vi...@apache.org on 2016/12/12 00:59:42 UTC
mesos git commit: Change `Accept-Type` to `Accept` in operator api
docs.
Repository: mesos
Updated Branches:
refs/heads/master 3dac2664f -> eabae6e75
Change `Accept-Type` to `Accept` in operator api docs.
The `Accept` header is the one that is actually used.
This closes #194
Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/eabae6e7
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/eabae6e7
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/eabae6e7
Branch: refs/heads/master
Commit: eabae6e7570eb48cb0cd41a78f47543f9f3506fd
Parents: 3dac266
Author: Nicholas Sun <ol...@gmail.com>
Authored: Sun Dec 11 16:59:23 2016 -0800
Committer: Vinod Kone <vi...@gmail.com>
Committed: Sun Dec 11 16:59:23 2016 -0800
----------------------------------------------------------------------
docs/operator-http-api.md | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/mesos/blob/eabae6e7/docs/operator-http-api.md
----------------------------------------------------------------------
diff --git a/docs/operator-http-api.md b/docs/operator-http-api.md
index 4f4c39e..3ad86c0 100644
--- a/docs/operator-http-api.md
+++ b/docs/operator-http-api.md
@@ -14,7 +14,7 @@ The base URL at `/api/v1` is utilized as the single endpoint on both masters and
Similar to the [Scheduler](scheduler-http-api.md) and [Executor](executor-http-api.md) HTTP APIs, the endpoints only accept HTTP POST requests. The request body should be encoded in JSON (**Content-Type: application/json**) or protobuf (**Content-Type: application/x-protobuf**).
-For requests that Mesos can answer synchronously and immediately, an HTTP response with status **200 OK**, possibly including response body encoded in JSON or Protobuf is sent. The encoding depends on the **Accept-Type** header present in the request (default is JSON). Also, note that responses will be gzip compressed if **Accept-Encoding** header is set to "gzip".
+For requests that Mesos can answer synchronously and immediately, an HTTP response with status **200 OK**, possibly including response body encoded in JSON or Protobuf is sent. The encoding depends on the **Accept** header present in the request (default is JSON). Also, note that responses will be gzip compressed if **Accept-Encoding** header is set to "gzip".
For requests that require the master to process the request asynchronously (e.g., `RESERVE_RESOURCES`), an HTTP response with status **202 Accepted** is sent. For the requests that result in a never ending stream of events (`SUBSCRIBE`), a streaming HTTP response with [RecordIO](scheduler-http-api.md#recordio-response-format) encoding is sent. Currently, gzip compression is not supported for streaming response.
@@ -40,7 +40,7 @@ POST /api/v1/ HTTP/1.1
Host: masterhost:5050
Content-Type: application/json
-Accept-Type: application/json
+Accept: application/json
{
\u201ctype\u201d : \u201cGET_VERSION\u201d
@@ -77,7 +77,7 @@ POST /api/v1/ HTTP/1.1
Host: masterhost:5050
Content-Type: application/json
-Accept-Type: application/json
+Accept: application/json
{
\u201ctype\u201d : \u201cSET_LOGGING_LEVEL\u201d,