Add typeless API for exists_source

This commit is contained in:
Seth Michael Larson
2020-06-03 10:38:35 -05:00
committed by GitHub
parent 99d026502c
commit 5db3482b5c
9 changed files with 183 additions and 160 deletions
@@ -0,0 +1,9 @@
{% extends "base" %}
{% block request %}
if doc_type in SKIP_IN_PATH:
path = _make_path(index, "_source", id)
else:
path = _make_path(index, doc_type, id, "_source")
return await self.transport.perform_request("{{ api.method }}", path, params=params, headers=headers)
{% endblock %}