Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit344d400

Browse files
committed
Merge pull requestgithub#746 from github/search-indexing-update
Add update fromgithub#745 to Enterprise docs
2 parents20a3387 +49c052a commit344d400

File tree

3 files changed

+25
-34
lines changed

3 files changed

+25
-34
lines changed

‎enterprise/11.10.340/v3/enterprise/search_indexing/index.html‎

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ <h2 id="queue-an-indexing-job">Queue an indexing job</h2>
6666
<pre><code>POST /api/v3/staff/indexing_jobs
6767
</code></pre>
6868

69-
<h3id="parameters">Parameters</h3>
69+
<h3id="input">Input</h3>
7070

7171
<table>
7272
<thead>
@@ -127,25 +127,22 @@ <h3 id="parameters">Parameters</h3>
127127
</tbody>
128128
</table>
129129

130+
<h3id="example">Example</h3>
131+
132+
<preclass="terminal">
133+
$ curl -u jwatson -X POST -H "Content-Type: application/json" -d '{"target": "kansaichris/japaning"}' "http://<em>hostname</em>/api/v3/staff/indexing_jobs"
134+
</pre>
135+
130136
<h3id="response">Response</h3>
131137

132-
<preclass="headers no-response"><code>Status: 202 Accepted
138+
<preclass="headers"><code>Status: 202 Accepted
133139
X-RateLimit-Limit: 5000
134140
X-RateLimit-Remaining: 4999</code></pre>
135141

136-
<pre><codeclass="language-javascript highlight"><spanclass="p">{</span>
142+
<preclass="body-response"><codeclass="language-javascript highlight"><spanclass="p">{</span>
137143
<spanclass="s2">"message"</span><spanclass="p">:</span><spanclass="s2">"Repository 'kansaichris/japaning' has been added to the indexing queue"</span>
138144
<spanclass="p">}</span></code></pre>
139145

140-
<h3id="example">Example</h3>
141-
142-
<preclass="terminal">
143-
$ curl -u jwatson -X POST "http://<em>hostname</em>/api/v3/staff/indexing_jobs?target=jwatson%2Flaughing-robot"
144-
{
145-
"message": "Repository \"jwatson/laughing-robot\" has been added to the indexing queue"
146-
}
147-
</pre>
148-
149146
</div>
150147

151148
<divid="js-sidebar"class="sidebar-shell">

‎enterprise/2.0/v3/enterprise/search_indexing/index.html‎

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ <h2 id="queue-an-indexing-job">Queue an indexing job</h2>
7272
<pre><code>POST /staff/indexing_jobs
7373
</code></pre>
7474

75-
<h3id="parameters">Parameters</h3>
75+
<h3id="input">Input</h3>
7676

7777
<table>
7878
<thead>
@@ -133,25 +133,22 @@ <h3 id="parameters">Parameters</h3>
133133
</tbody>
134134
</table>
135135

136+
<h3id="example">Example</h3>
137+
138+
<preclass="terminal">
139+
$ curl -u jwatson -X POST -H "Content-Type: application/json" -d '{"target": "kansaichris/japaning"}' "http://<em>hostname</em>/api/v3/staff/indexing_jobs"
140+
</pre>
141+
136142
<h3id="response">Response</h3>
137143

138-
<preclass="headers no-response"><code>Status: 202 Accepted
144+
<preclass="headers"><code>Status: 202 Accepted
139145
X-RateLimit-Limit: 5000
140146
X-RateLimit-Remaining: 4999</code></pre>
141147

142-
<pre><codeclass="language-javascript highlight"><spanclass="p">{</span>
148+
<preclass="body-response"><codeclass="language-javascript highlight"><spanclass="p">{</span>
143149
<spanclass="s2">"message"</span><spanclass="p">:</span><spanclass="s2">"Repository 'kansaichris/japaning' has been added to the indexing queue"</span>
144150
<spanclass="p">}</span></code></pre>
145151

146-
<h3id="example">Example</h3>
147-
148-
<preclass="terminal">
149-
$ curl -u jwatson -X POST "http://<em>hostname</em>/api/v3/staff/indexing_jobs?target=jwatson%2Flaughing-robot"
150-
{
151-
"message": "Repository \"jwatson/laughing-robot\" has been added to the indexing queue"
152-
}
153-
</pre>
154-
155152
</div>
156153

157154
<divid="js-sidebar"class="sidebar-shell">

‎enterprise/2.1/v3/enterprise/search_indexing/index.html‎

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ <h2 id="queue-an-indexing-job">Queue an indexing job</h2>
7272
<pre><code>POST /staff/indexing_jobs
7373
</code></pre>
7474

75-
<h3id="parameters">Parameters</h3>
75+
<h3id="input">Input</h3>
7676

7777
<table>
7878
<thead>
@@ -133,6 +133,12 @@ <h3 id="parameters">Parameters</h3>
133133
</tbody>
134134
</table>
135135

136+
<h3id="example">Example</h3>
137+
138+
<preclass="terminal">
139+
$ curl -u jwatson -X POST -H "Content-Type: application/json" -d '{"target": "kansaichris/japaning"}' "http://<em>hostname</em>/api/v3/staff/indexing_jobs"
140+
</pre>
141+
136142
<h3id="response">Response</h3>
137143

138144
<preclass="headers"><code>Status: 202 Accepted
@@ -143,15 +149,6 @@ <h3 id="response">Response</h3>
143149
<spanclass="s2">"message"</span><spanclass="p">:</span><spanclass="s2">"Repository 'kansaichris/japaning' has been added to the indexing queue"</span>
144150
<spanclass="p">}</span></code></pre>
145151

146-
<h3id="example">Example</h3>
147-
148-
<preclass="terminal">
149-
$ curl -u jwatson -X POST "http://<em>hostname</em>/api/v3/staff/indexing_jobs?target=jwatson%2Flaughing-robot"
150-
{
151-
"message": "Repository \"jwatson/laughing-robot\" has been added to the indexing queue"
152-
}
153-
</pre>
154-
155152
</div>
156153

157154
<divid="js-sidebar"class="sidebar-shell">

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp