浏览代码

[SPEC] Removed create.json
Create is a special API that is most simply and safely
implemented by calling the index() api with op_type
set to true.

Clinton Gormley 11 年之前
父节点
当前提交
20b37416e3
共有 1 个文件被更改,包括 0 次插入84 次删除
  1. 0 84
      rest-api-spec/api/create.json

+ 0 - 84
rest-api-spec/api/create.json

@@ -1,84 +0,0 @@
-{
-  "create": {
-    "documentation": "http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/docs-index_.html",
-    "methods": ["POST", "PUT"],
-    "url": {
-      "path": "/{index}/{type}",
-      "paths": ["/{index}/{type}", "/{index}/{type}/{id}/_create"],
-      "parts": {
-        "id": {
-          "type" : "string",
-          "description" : "Document ID"
-        },
-        "index": {
-          "type" : "string",
-          "required" : true,
-          "description" : "The name of the index"
-        },
-        "type": {
-          "type" : "string",
-          "required" : true,
-          "description" : "The type of the document"
-        }
-      },
-      "params": {
-        "consistency": {
-          "type" : "enum",
-          "options" : ["one", "quorum", "all"],
-          "description" : "Explicit write consistency setting for the operation"
-        },
-        "id": {
-          "type" : "string",
-          "description" : "Specific document ID (when the POST method is used)"
-        },
-        "parent": {
-          "type" : "string",
-          "description" : "ID of the parent document"
-        },
-        "percolate": {
-          "type" : "string",
-          "description" : "Percolator queries to execute while indexing the document"
-        },
-        "refresh": {
-          "type" : "boolean",
-          "description" : "Refresh the index after performing the operation"
-        },
-        "replication": {
-          "type" : "enum",
-          "options" : ["sync","async"],
-          "default" : "sync",
-          "description" : "Specific replication type"
-        },
-        "routing": {
-          "type" : "string",
-          "description" : "Specific routing value"
-        },
-        "timeout": {
-          "type" : "time",
-          "description" : "Explicit operation timeout"
-        },
-        "timestamp": {
-          "type" : "time",
-          "description" : "Explicit timestamp for the document"
-        },
-        "ttl": {
-          "type" : "duration",
-          "description" : "Expiration time for the document"
-        },
-        "version" : {
-          "type" : "number",
-          "description" : "Explicit version number for concurrency control"
-        },
-        "version_type": {
-          "type" : "enum",
-          "options" : ["internal","external"],
-          "description" : "Specific version type"
-        }
-      }
-    },
-    "body": {
-      "description" : "The document",
-      "required" : true
-    }
-  }
-}