File tree Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ http(s)://<em>hostname</em>/api/v3
19
19
20
20
POST /staff/indexing_jobs
21
21
22
- ### Parameters
22
+ ### Input
23
23
24
24
Name | Type | Description
25
25
--------|---------|--------------
@@ -37,16 +37,14 @@ Target | Description
37
37
` :owner/:repository/code ` | All the source code in a repository.
38
38
` :owner/*/code ` | All the source code in all of a user or organization's repositories.
39
39
40
- ### Response
41
-
42
- <%= headers 202 %>
43
- <%= json(: indexing_success ) %>
44
-
45
40
### Example
46
41
47
42
<pre class =" 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"
52
44
</pre >
45
+
46
+
47
+ ### Response
48
+
49
+ <%= headers 202 %>
50
+ <%= json(: indexing_success ) %>
You can’t perform that action at this time.
0 commit comments