Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/ApiGenerator/Domain/Specification/Documentation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,13 @@ namespace ApiGenerator.Domain.Specification
public class Documentation
{
public string Description { get; set; }
public string Url { get; set; }

private string _url;
public string Url
{
get => _url;
set => _url = value?.Replace("http://", "https://");
}
}

public class DocumentationConverter : JsonConverter
Expand Down
4,708 changes: 4,545 additions & 163 deletions src/ApiGenerator/RestSpecification/Core/root.html

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
{
"cat.ml_data_frame_analytics":{
"documentation":{
"url":"http://www.elastic.co/guide/en/elasticsearch/reference/current/get-dfanalytics-stats.html"
},
"stability":"stable",
"url":{
"paths":[
{
"path":"/_cat/ml/data_frame/analytics",
"methods":[
"GET"
]
},
{
"path":"/_cat/ml/data_frame/analytics/{id}",
"methods":[
"GET"
],
"parts":{
"id":{
"type":"string",
"description":"The ID of the data frame analytics to fetch"
}
}
}
]
},
"params":{
"allow_no_match":{
"type":"boolean",
"required":false,
"description":"Whether to ignore if a wildcard expression matches no configs. (This includes `_all` string or when no configs have been specified)"
},
"bytes":{
"type":"enum",
"description":"The unit in which to display byte values",
"options":[
"b",
"k",
"kb",
"m",
"mb",
"g",
"gb",
"t",
"tb",
"p",
"pb"
]
},
"format":{
"type":"string",
"description":"a short version of the Accept header, e.g. json, yaml"
},
"h":{
"type":"list",
"description":"Comma-separated list of column names to display"
},
"help":{
"type":"boolean",
"description":"Return help information",
"default":false
},
"s":{
"type":"list",
"description":"Comma-separated list of column names or column aliases to sort by"
},
"time":{
"type":"enum",
"description":"The unit in which to display time values",
"options":[
"d (Days)",
"h (Hours)",
"m (Minutes)",
"s (Seconds)",
"ms (Milliseconds)",
"micros (Microseconds)",
"nanos (Nanoseconds)"
]
},
"v":{
"type":"boolean",
"description":"Verbose mode. Display column headers",
"default":false
}
}
}
}
67 changes: 44 additions & 23 deletions src/ApiGenerator/RestSpecification/XPack/root.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@



<link crossorigin="anonymous" media="all" integrity="sha512-Wr5yTs8gD42bv1Ll5KLXr7cXzuVcbKOcuHmifgt/6YlZuluDTyAJnfnYhNYKpgVK1F51ks8Y2QA+XENQoMp/PA==" rel="stylesheet" href="https://github.githubassets.com/assets/frameworks-5abe724ecf200f8d9bbf52e5e4a2d7af.css" />
<link crossorigin="anonymous" media="all" integrity="sha512-DnBQhWGJ7icZU4LPhD6FlaZ9IrBOmbP4/4bEfpGQRbCLwutaFNqbuAaM8Y/w7IygRCMuOybM7fLDGe+UV9TEjQ==" rel="stylesheet" href="https://github.githubassets.com/assets/site-0e7050856189ee27195382cf843e8595.css" />
<link crossorigin="anonymous" media="all" integrity="sha512-/Kdj6P6WRk2SG1AIisQL1y+ZbNnTv1a+pX/4yP0e13VjZ5s+uYXnQOx+NKpXpBPqzyB/JscjxW7D30/a5DneZA==" rel="stylesheet" href="https://github.githubassets.com/assets/github-fca763e8fe96464d921b50088ac40bd7.css" />
<link crossorigin="anonymous" media="all" integrity="sha512-ZUjVod2EvYMDbGqRSyW0rpfgBq3i+gnR/4PfrzLsy5f20oIcRfgFQFVKgi3Ztp917bP1K/kdP5q8+nAlJ3+cFA==" rel="stylesheet" href="https://github.githubassets.com/assets/frameworks-6548d5a1dd84bd83036c6a914b25b4ae.css" />
<link crossorigin="anonymous" media="all" integrity="sha512-HNV7VuXI98SSFimaE7r8eVsgrmzC37AMNXw1GrNbOl4wN3ATov+SdHusRTAAf4NPoRsUcOOQyYsOCA0AcN4m0w==" rel="stylesheet" href="https://github.githubassets.com/assets/site-1cd57b56e5c8f7c49216299a13bafc79.css" />
<link crossorigin="anonymous" media="all" integrity="sha512-CKBn/UfyE+yEuqeavkB8Y5xld809yQJ0Evsa+pOoHP8jlBS0TGBeKIiOs17M57SuJMEZl3wjXuB2pexW8oEeuA==" rel="stylesheet" href="https://github.githubassets.com/assets/github-08a067fd47f213ec84baa79abe407c63.css" />



Expand All @@ -42,7 +42,7 @@



<meta name="request-id" content="A224:2C646:8B6F2:DBB09:5E41B8DE" data-pjax-transient="true" /><meta name="html-safe-nonce" content="e945098b1aa2d88fb8afb48d85dfdbb381ec5e9b" data-pjax-transient="true" /><meta name="visitor-payload" content="eyJyZWZlcnJlciI6bnVsbCwicmVxdWVzdF9pZCI6IkEyMjQ6MkM2NDY6OEI2RjI6REJCMDk6NUU0MUI4REUiLCJ2aXNpdG9yX2lkIjoiODM2OTQzMTAwMjY2OTQ5NjU0MiIsInJlZ2lvbl9lZGdlIjoiYW1zIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9" data-pjax-transient="true" /><meta name="visitor-hmac" content="b0ce388244da3043050ac1b08419952a6ad800240d912890ede28140da185f52" data-pjax-transient="true" />
<meta name="request-id" content="B1B4:1D25A:1311286:1C18780:5E4D1601" data-pjax-transient="true"/><meta name="html-safe-nonce" content="659d40eeb402494e8daf470bad8968179482055c" data-pjax-transient="true"/><meta name="visitor-payload" content="eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMUI0OjFEMjVBOjEzMTEyODY6MUMxODc4MDo1RTREMTYwMSIsInZpc2l0b3JfaWQiOiIxMjE4ODI5Mzk5OTAyODM3NzciLCJyZWdpb25fZWRnZSI6ImFtcyIsInJlZ2lvbl9yZW5kZXIiOiJhbXMifQ==" data-pjax-transient="true"/><meta name="visitor-hmac" content="eec886c3a76a9b3d39981132bb2d0e1864458f583f162f26b25803e798231307" data-pjax-transient="true"/>



Expand Down Expand Up @@ -78,7 +78,7 @@

<meta name="enabled-features" content="MARKETPLACE_FEATURED_BLOG_POSTS,MARKETPLACE_INVOICED_BILLING,MARKETPLACE_SOCIAL_PROOF_CUSTOMERS,MARKETPLACE_TRENDING_SOCIAL_PROOF,MARKETPLACE_RECOMMENDATIONS,MARKETPLACE_PENDING_INSTALLATIONS,RELATED_ISSUES">

<meta http-equiv="x-pjax-version" content="b41dafcb41e2ceb6409cd7968585d6e9">
<meta http-equiv="x-pjax-version" content="2e63e6bd8ece9826eb61af0c1a5496f1">


<link href="https://github.com/elastic/elasticsearch/commits/master.atom" rel="alternate" title="Recent Commits to elasticsearch:master" type="application/atom+xml">
Expand Down Expand Up @@ -260,7 +260,7 @@ <h4 class="text-gray-light text-normal text-mono f5 mb-2 border-top pt-3">Conne
spellcheck="false"
autocomplete="off"
>
<input type="hidden" value="meQhfLpqBj+3r0iPC1jzy4zzVRnFWV15lY94/WCPHmiotimjtj4I0uG30/f7jNvk4nhthjXYmngyTOFdgu3WXw==" data-csrf="true" class="js-data-jump-to-suggestions-path-csrf" />
<input type="hidden" data-csrf="true" class="js-data-jump-to-suggestions-path-csrf" value="dmqXuZDeqaWhRBrBvfa9tXHeKoEG1adLnCmPqdJQQdTKtqprHB83s4FEOhpmKIMekLpaIqJLGTlBnUgjzELTag==" />
<input type="hidden" class="js-site-search-type-field" name="type" >
<img src="https://github.githubassets.com/images/search-key-slash.svg" alt="" class="mr-2 header-search-key-slash">

Expand Down Expand Up @@ -409,6 +409,11 @@ <h4 class="text-gray-light text-normal text-mono f5 mb-2 border-top pt-3">Conne
</div>




<div class="js-notification-shelf-not-found-error" hidden></div>




<div class="application-main " data-commit-hovercards-enabled>
Expand All @@ -419,6 +424,7 @@ <h4 class="text-gray-light text-normal text-mono f5 mb-2 border-top pt-3">Conne







Expand All @@ -429,7 +435,7 @@ <h4 class="text-gray-light text-normal text-mono f5 mb-2 border-top pt-3">Conne



<div class="pagehead repohead readability-menu bg-gray-light pb-0 pt-3 pb-0">
<div class="pagehead repohead hx_repohead readability-menu bg-gray-light pb-0 pt-3 pb-0">

<div class="container-lg mb-4 px-3 d-flex">

Expand Down Expand Up @@ -460,7 +466,7 @@ <h1 class="public d-flex flex-wrap flex-items-center break-word float-none ">
<svg class="octicon octicon-eye v-align-text-bottom" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M8.06 2C3 2 0 8 0 8s3 6 8.06 6C13 14 16 8 16 8s-3-6-7.94-6zM8 12c-2.2 0-4-1.78-4-4 0-2.2 1.8-4 4-4 2.22 0 4 1.8 4 4 0 2.22-1.78 4-4 4zm2-4c0 1.11-.89 2-2 2-1.11 0-2-.89-2-2 0-1.11.89-2 2-2 1.11 0 2 .89 2 2z"/></svg>
Watch
</a> <a class="social-count" href="/elastic/elasticsearch/watchers"
aria-label="2785 users are watching this repository">
aria-label="2782 users are watching this repository">
2.8k
</a>

Expand All @@ -473,8 +479,8 @@ <h1 class="public d-flex flex-wrap flex-items-center break-word float-none ">
Star
</a>
<a class="social-count js-social-count" href="/elastic/elasticsearch/stargazers"
aria-label="46944 users starred this repository">
46.9k
aria-label="47080 users starred this repository">
47.1k
</a>

</li>
Expand All @@ -485,8 +491,8 @@ <h1 class="public d-flex flex-wrap flex-items-center break-word float-none ">
Fork
</a>
<a href="/elastic/elasticsearch/network/members" class="social-count"
aria-label="15937 users forked this repository">
15.9k
aria-label="16000 users forked this repository">
16k
</a>
</li>
</ul>
Expand All @@ -510,7 +516,7 @@ <h1 class="public d-flex flex-wrap flex-items-center break-word float-none ">
<a itemprop="url" data-hotkey="g i" class="js-selected-navigation-item reponav-item" data-selected-links="repo_issues repo_labels repo_milestones /elastic/elasticsearch/issues" href="/elastic/elasticsearch/issues">
<div class="d-inline"><svg class="octicon octicon-issue-opened" viewBox="0 0 14 16" version="1.1" width="14" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M7 2.3c3.14 0 5.7 2.56 5.7 5.7s-2.56 5.7-5.7 5.7A5.71 5.71 0 011.3 8c0-3.14 2.56-5.7 5.7-5.7zM7 1C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7-3.14-7-7-7zm1 3H6v5h2V4zm0 6H6v2h2v-2z"/></svg></div>
<span itemprop="name">Issues</span>
<span class="Counter">2,166</span>
<span class="Counter">2,197</span>
<meta itemprop="position" content="2">
</a> </span>

Expand All @@ -519,7 +525,7 @@ <h1 class="public d-flex flex-wrap flex-items-center break-word float-none ">
<a data-hotkey="g p" data-skip-pjax="true" itemprop="url" class="js-selected-navigation-item reponav-item" data-selected-links="repo_pulls checks /elastic/elasticsearch/pulls" href="/elastic/elasticsearch/pulls">
<div class="d-inline"><svg class="octicon octicon-git-pull-request" viewBox="0 0 12 16" version="1.1" width="12" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M11 11.28V5c-.03-.78-.34-1.47-.94-2.06C9.46 2.35 8.78 2.03 8 2H7V0L4 3l3 3V4h1c.27.02.48.11.69.31.21.2.3.42.31.69v6.28A1.993 1.993 0 0010 15a1.993 1.993 0 001-3.72zm-1 2.92c-.66 0-1.2-.55-1.2-1.2 0-.65.55-1.2 1.2-1.2.65 0 1.2.55 1.2 1.2 0 .65-.55 1.2-1.2 1.2zM4 3c0-1.11-.89-2-2-2a1.993 1.993 0 00-1 3.72v6.56A1.993 1.993 0 002 15a1.993 1.993 0 001-3.72V4.72c.59-.34 1-.98 1-1.72zm-.8 10c0 .66-.55 1.2-1.2 1.2-.65 0-1.2-.55-1.2-1.2 0-.65.55-1.2 1.2-1.2.65 0 1.2.55 1.2 1.2zM2 4.2C1.34 4.2.8 3.65.8 3c0-.65.55-1.2 1.2-1.2.65 0 1.2.55 1.2 1.2 0 .65-.55 1.2-1.2 1.2z"/></svg></div>
<span itemprop="name">Pull requests</span>
<span class="Counter">311</span>
<span class="Counter">315</span>
<meta itemprop="position" content="4">
</a> </span>

Expand Down Expand Up @@ -549,6 +555,8 @@ <h1 class="public d-flex flex-wrap flex-items-center break-word float-none ">


</div>


<div class="container-lg clearfix new-discussion-timeline px-3">
<div class="repository-content ">

Expand Down Expand Up @@ -596,10 +604,10 @@ <h1 class="public d-flex flex-wrap flex-items-center break-word float-none ">



<include-fragment src="/elastic/elasticsearch/tree-commit/bb62ebfa3dd2a199182154b2bbadb076b31c1eb0/x-pack/plugin/src/test/resources/rest-api-spec/api" class="commit-tease commit-loader">
<include-fragment src="/elastic/elasticsearch/tree-commit/a2c1f2d1219f481a46b001d15b6454dd65c958d7/x-pack/plugin/src/test/resources/rest-api-spec/api" class="commit-tease commit-loader">
<div class="blank loader-loading">
<img alt="" class="loader" src="https://github.githubassets.com/images/spinners/octocat-spinner-32-EAF2F5.gif" width="16" height="16" />
Fetching latest commit…
<img alt="" class="loader" src="https://github.githubassets.com/images/spinners/octocat-spinner-32-EAF2F5.gif" width="16" height="16" />
Fetching latest commit…
</div>
<div class="loader-error">
Cannot retrieve the latest commit at this time.
Expand All @@ -608,7 +616,7 @@ <h1 class="public d-flex flex-wrap flex-items-center break-word float-none ">


<include-fragment class="file-wrap" src="/elastic/elasticsearch/file-list/master/x-pack/plugin/src/test/resources/rest-api-spec/api">
<a class="d-none js-permalink-shortcut" data-hotkey="y" href="/elastic/elasticsearch/tree/bb62ebfa3dd2a199182154b2bbadb076b31c1eb0/x-pack/plugin/src/test/resources/rest-api-spec/api">Permalink</a>
<a class="d-none js-permalink-shortcut" data-hotkey="y" href="/elastic/elasticsearch/tree/a2c1f2d1219f481a46b001d15b6454dd65c958d7/x-pack/plugin/src/test/resources/rest-api-spec/api">Permalink</a>

<table class="files js-navigation-container js-active-navigation-container" data-pjax>
<thead>
Expand Down Expand Up @@ -649,6 +657,22 @@ <h1 class="public d-flex flex-wrap flex-items-center break-word float-none ">
<span class="css-truncate css-truncate-target"></span>
</td>
</tr>
<tr class="js-navigation-item">
<td class="icon">
<svg aria-label="file" class="octicon octicon-file" viewBox="0 0 12 16" version="1.1" width="12" height="16" role="img"><path fill-rule="evenodd" d="M6 5H2V4h4v1zM2 8h7V7H2v1zm0 2h7V9H2v1zm0 2h7v-1H2v1zm10-7.5V14c0 .55-.45 1-1 1H1c-.55 0-1-.45-1-1V2c0-.55.45-1 1-1h7.5L12 4.5zM11 5L8 2H1v12h10V5z"/></svg>
<img width="16" height="16" class="spinner" alt="" src="https://github.githubassets.com/images/spinners/octocat-spinner-32.gif" />
</td>
<td class="content">
<span class="css-truncate css-truncate-target"><a class="js-navigation-open" title="cat.ml_data_frame_analytics.json" id="6b87ef4808c48f22024d27786251b037-f8e3f4c46ea1ecd0cdfd6d264f2b11f0d8606517" href="/elastic/elasticsearch/blob/master/x-pack/plugin/src/test/resources/rest-api-spec/api/cat.ml_data_frame_analytics.json">cat.ml_data_frame_analytics.json</a></span>
</td>
<td class="message">
<span class="css-truncate css-truncate-target">
</span>
</td>
<td class="age">
<span class="css-truncate css-truncate-target"></span>
</td>
</tr>
<tr class="js-navigation-item">
<td class="icon">
<svg aria-label="file" class="octicon octicon-file" viewBox="0 0 12 16" version="1.1" width="12" height="16" role="img"><path fill-rule="evenodd" d="M6 5H2V4h4v1zM2 8h7V7H2v1zm0 2h7V9H2v1zm0 2h7v-1H2v1zm10-7.5V14c0 .55-.45 1-1 1H1c-.55 0-1-.45-1-1V2c0-.55.45-1 1-1h7.5L12 4.5zM11 5L8 2H1v12h10V5z"/></svg>
Expand Down Expand Up @@ -3560,9 +3584,9 @@ <h1 class="public d-flex flex-wrap flex-items-center break-word float-none ">


<script crossorigin="anonymous" async="async" integrity="sha512-0ME9ftiuUHsYYdeBdLtPHbeL4j0UjTAy9YxHpX0AaZLPPex/JTS5mmHozk8Bnp2czMkd3FmK8DfVID7zxmD5OA==" type="application/javascript" id="js-conditional-compat" data-src="https://github.githubassets.com/assets/compat-bootstrap-d0c13d7e.js"></script>
<script crossorigin="anonymous" integrity="sha512-3H5DpgtWsQ6Fe2vBcKjkSmOXvXzISvus5d4D0vQYirHtOTh6xhTJss0rX+7Vvg8ThKo9vOYAGWzZ/P7N9HFqyQ==" type="application/javascript" src="https://github.githubassets.com/assets/frameworks-dc7e43a6.js"></script>
<script crossorigin="anonymous" integrity="sha512-X05w7XvoTXbYlPzf+7O1zoqnJFmcZglL7ScKn3ntB9SmLg/1n8D/cNKIKDk7gtKSJ5PegWSCl44onkA40k4xuA==" type="application/javascript" src="https://github.githubassets.com/assets/frameworks-5f4e70ed.js"></script>

<script crossorigin="anonymous" async="async" integrity="sha512-sZT18rg46eyF0sqSjPYMbuzxyQcNNTo8yunrsoECEUcgmN5WYG4pGy6TfQenjEb+zp4WsKI4MLqIKf/ZL66QJQ==" type="application/javascript" src="https://github.githubassets.com/assets/github-bootstrap-b194f5f2.js"></script>
<script crossorigin="anonymous" async="async" integrity="sha512-ZP7K9qwdVB2XvLqj5YhjAYr14NLGXPrxxYQpRjyUU0tI1WNahUL1fv5i1eWLMviB3G6t/13jD+F8D96vBK30oA==" type="application/javascript" src="https://github.githubassets.com/assets/github-bootstrap-64fecaf6.js"></script>



Expand All @@ -3589,9 +3613,6 @@ <h1 class="public d-flex flex-wrap flex-items-center break-word float-none ">
</div>
</div>


<div class="js-notification-shelf-not-found-error" hidden></div>

<div aria-live="polite" class="js-global-screen-reader-notice sr-only"></div>

</body>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,66 @@ public bool? Verbose
}
}

///<summary>Request options for MlDatafeeds <para>http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-datafeed-stats.html</para></summary>
///<summary>Request options for MlDataFrameAnalytics <para>https://www.elastic.co/guide/en/elasticsearch/reference/current/get-dfanalytics-stats.html</para></summary>
public class MlDataFrameAnalyticsRequestParameters : RequestParameters<MlDataFrameAnalyticsRequestParameters>
{
public override HttpMethod DefaultHttpMethod => HttpMethod.GET;
public override bool SupportsBody => false;
///<summary>Whether to ignore if a wildcard expression matches no configs. (This includes `_all` string or when no configs have been specified)</summary>
public bool? AllowNoMatch
{
get => Q<bool? >("allow_no_match");
set => Q("allow_no_match", value);
}

///<summary>The unit in which to display byte values</summary>
public Bytes? Bytes
{
get => Q<Bytes? >("bytes");
set => Q("bytes", value);
}

///<summary>a short version of the Accept header, e.g. json, yaml</summary>
public string Format
{
get => Q<string>("format");
set
{
Q("format", value);
SetAcceptHeader(value);
}
}

///<summary>Comma-separated list of column names to display</summary>
public string[] Headers
{
get => Q<string[]>("h");
set => Q("h", value);
}

///<summary>Return help information</summary>
public bool? Help
{
get => Q<bool? >("help");
set => Q("help", value);
}

///<summary>Comma-separated list of column names or column aliases to sort by</summary>
public string[] SortByColumns
{
get => Q<string[]>("s");
set => Q("s", value);
}

///<summary>Verbose mode. Display column headers</summary>
public bool? Verbose
{
get => Q<bool? >("v");
set => Q("v", value);
}
}

///<summary>Request options for MlDatafeeds <para>https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-datafeed-stats.html</para></summary>
public class MlDatafeedsRequestParameters : RequestParameters<MlDatafeedsRequestParameters>
{
public override HttpMethod DefaultHttpMethod => HttpMethod.GET;
Expand Down Expand Up @@ -516,7 +575,7 @@ public bool? Verbose
}
}

///<summary>Request options for MlJobs <para>http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-job-stats.html</para></summary>
///<summary>Request options for MlJobs <para>https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-job-stats.html</para></summary>
public class MlJobsRequestParameters : RequestParameters<MlJobsRequestParameters>
{
public override HttpMethod DefaultHttpMethod => HttpMethod.GET;
Expand Down
Loading