{"action":"created","issue":{"url":"https://api.github.com/repos/elastic/elasticsearch/issues/20545","repository_url":"https://api.github.com/repos/elastic/elasticsearch","labels_url":"https://api.github.com/repos/elastic/elasticsearch/issues/20545/labels{/name}","comments_url":"https://api.github.com/repos/elastic/elasticsearch/issues/20545/comments","events_url":"https://api.github.com/repos/elastic/elasticsearch/issues/20545/events","html_url":"https://github.com/elastic/elasticsearch/pull/20545","id":177717874,"number":20545,"title":"Provides a cat api endpoint for templates.","user":{"login":"a2lin","id":1472550,"avatar_url":"https://avatars.githubusercontent.com/u/1472550?v=3","gravatar_id":"","url":"https://api.github.com/users/a2lin","html_url":"https://github.com/a2lin","followers_url":"https://api.github.com/users/a2lin/followers","following_url":"https://api.github.com/users/a2lin/following{/other_user}","gists_url":"https://api.github.com/users/a2lin/gists{/gist_id}","starred_url":"https://api.github.com/users/a2lin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/a2lin/subscriptions","organizations_url":"https://api.github.com/users/a2lin/orgs","repos_url":"https://api.github.com/users/a2lin/repos","events_url":"https://api.github.com/users/a2lin/events{/privacy}","received_events_url":"https://api.github.com/users/a2lin/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/elastic/elasticsearch/labels/:CAT%20API","name":":CAT API","color":"009800"},{"url":"https://api.github.com/repos/elastic/elasticsearch/labels/feature","name":"feature","color":"328a58"},{"url":"https://api.github.com/repos/elastic/elasticsearch/labels/review","name":"review","color":"0052cc"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-09-19T07:18:20Z","updated_at":"2016-09-19T13:32:37Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/elastic/elasticsearch/pulls/20545","html_url":"https://github.com/elastic/elasticsearch/pull/20545","diff_url":"https://github.com/elastic/elasticsearch/pull/20545.diff","patch_url":"https://github.com/elastic/elasticsearch/pull/20545.patch"},"body":"Adds a cat api endpoint: `/_cat/templates` and its more specific version, `/_cat/templates/{name}`.\r\n\r\nIt looks something like:\r\n```\r\n$ curl \"localhost:9200/_cat/templates?v\"\r\nname                  template     order version\r\nsushi_california_roll *avocado*    1     1\r\npizza_hawaiian        *pineapples* 1\r\npizza_pepperoni       *pepperoni*  1\r\n```\r\n\r\nThe specified version (only allows * globs) looks like:\r\n```\r\n$ curl \"localhost:9200/_cat/templates/pizza*\"\r\nname            template     order version\r\npizza_hawaiian  *pineapples* 1\r\npizza_pepperoni *pepperoni*  1\r\n```\r\n\r\nPartially specified columns:\r\n```\r\n$ curl \"localhost:9200/_cat/templates/pizza*?v=true&h=name,template\"\r\nname            template\r\npizza_hawaiian  *pineapples*\r\npizza_pepperoni *pepperoni*\r\n```\r\n\r\nThe help text:\r\n```\r\n$ curl \"localhost:9200/_cat/templates/pizza*?help\"\r\nname     | n | template name\r\ntemplate | t | template pattern string\r\norder    | o | template application order number\r\nversion  | v | version\r\n```\r\n\r\nCloses #20467 "},"comment":{"url":"https://api.github.com/repos/elastic/elasticsearch/issues/comments/247993795","html_url":"https://github.com/elastic/elasticsearch/pull/20545#issuecomment-247993795","issue_url":"https://api.github.com/repos/elastic/elasticsearch/issues/20545","id":247993795,"user":{"login":"s1monw","id":973334,"avatar_url":"https://avatars.githubusercontent.com/u/973334?v=3","gravatar_id":"","url":"https://api.github.com/users/s1monw","html_url":"https://github.com/s1monw","followers_url":"https://api.github.com/users/s1monw/followers","following_url":"https://api.github.com/users/s1monw/following{/other_user}","gists_url":"https://api.github.com/users/s1monw/gists{/gist_id}","starred_url":"https://api.github.com/users/s1monw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/s1monw/subscriptions","organizations_url":"https://api.github.com/users/s1monw/orgs","repos_url":"https://api.github.com/users/s1monw/repos","events_url":"https://api.github.com/users/s1monw/events{/privacy}","received_events_url":"https://api.github.com/users/s1monw/received_events","type":"User","site_admin":false},"created_at":"2016-09-19T13:32:37Z","updated_at":"2016-09-19T13:32:37Z","body":"LGTM"}}
{"actor":{"display_login":"s1monw"}}