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

Commit91ab379

Browse files
committed
Merge pull requestgithub#745 from github/update-1428083752
2 parentseac4343 +03a25ca commit91ab379

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

‎content/v3/enterprise/search_indexing.md‎

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ http(s)://<em>hostname</em>/api/v3
1919

2020
POST /staff/indexing_jobs
2121

22-
###Parameters
22+
###Input
2323

2424
Name | Type | Description
2525
--------|---------|--------------
@@ -37,16 +37,14 @@ Target | Description
3737
`:owner/:repository/code` | All the source code in a repository.
3838
`:owner/*/code` | All the source code in all of a user or organization's repositories.
3939

40-
###Response
41-
42-
<%= headers 202 %>
43-
<%= json(:indexing_success) %>
44-
4540
###Example
4641

4742
<preclass="terminal">
48-
$ curl -u jwatson -X POST "http://<em>hostname</em>/api/v3/staff/indexing_jobs?target=jwatson%2Flaughing-robot"
49-
{
50-
"message": "Repository \"jwatson/laughing-robot\" has been added to the indexing queue"
51-
}
43+
$ curl -u jwatson -X POST -H "Content-Type: application/json" -d '{"target": "kansaichris/japaning"}' "http://<em>hostname</em>/api/v3/staff/indexing_jobs"
5244
</pre>
45+
46+
47+
###Response
48+
49+
<%= headers 202 %>
50+
<%= json(:indexing_success) %>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp