{
  "get_source": {
    "documentation": {
      "url": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-get",
      "description": "Get a document's source"
    },
    "stability": "stable",
    "visibility": "public",
    "headers": {
      "accept": [
        "application/json"
      ]
    },
    "url": {
      "paths": [
        {
          "path": "/{index}/_source/{id}",
          "methods": [
            "GET"
          ],
          "parts": {
            "id": {
              "type": "string",
              "description": "The document ID"
            },
            "index": {
              "type": "string",
              "description": "The name of the index"
            }
          }
        }
      ]
    },
    "params": {
      "preference": {
        "type": "string",
        "description": "Specify the node or shard the operation should be performed on (default: random)"
      },
      "realtime": {
        "type": "boolean",
        "default": true,
        "description": "Specify whether to perform the operation in realtime or search mode"
      },
      "refresh": {
        "type": "boolean",
        "default": false,
        "description": "Refresh the shard containing the document before performing the operation"
      },
      "routing": {
        "type": "list",
        "description": "Specific routing value"
      },
      "_source": {
        "type": "list",
        "description": "True or false to return the _source field or not, or a list of fields to return"
      },
      "_source_excludes": {
        "type": "list",
        "description": "A list of fields to exclude from the returned _source field"
      },
      "_source_includes": {
        "type": "list",
        "description": "A list of fields to extract and return from the _source field"
      },
      "version": {
        "type": "long",
        "description": "Explicit version number for concurrency control"
      },
      "version_type": {
        "type": "enum",
        "options": [
          "internal",
          "external",
          "external_gte"
        ],
        "description": "Specific version type"
      }
    }
  }
}
