Open wanghaisheng opened 9 years ago
https://github.com/elastic/elasticsearch/tree/master/rest-api-spec
{
"indices.create": {
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-create-index.html",
"methods": ["PUT", "POST"],
"url": {
"path": "/{index}",
"paths": ["/{index}"],
"parts": {
"index": {
"type" : "string",
"required" : true,
"description" : "The name of the index"
}
},
"params": {
"timeout": {
"type" : "time",
"description" : "Explicit operation timeout"
}
}
},
"body": {
"description" : "The configuration for the index (`settings` and `mappings`)"
}
}
}
在RESTFUL API里面对于查询参数的另一种处理是 POST [base]/[type]/_search{?[parameters]{&_format=[mime-type]}}
This has exactly the same semantics as the equivalent GET command. All these search interactions take a series of parameters that are a series of name'='value pairs encoded in the URL (or as an application/x-www-form-urlencoded submission for a POST). (See W3C HTML forms). Searches are processed as specified for the Search handling mechanism.
http://hl7-fhir.github.io/parameters.html
generate document URL: [base]/Composition/$Generate a Document 为什么没有POST PUT等方法的定义和说明