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
1919
2020 POST /staff/indexing_jobs
2121
22- ### Parameters
22+ ### Input
2323
2424Name | 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<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"
5244</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