@@ -83,9 +83,9 @@ Each of these directories was created with `cvs checkout` command (with
83
83
appropriate arguments to get given branch) and will be treated by OpenGrok
84
84
as a project.
85
85
86
- ### 3.2 Messages
86
+ ### 3.2 Web services
87
87
88
- See https://github.com/oracle/opengrok/wiki/Messages
88
+ See https://github.com/oracle/opengrok/wiki/Web-services
89
89
90
90
## 4. OpenGrok install
91
91
@@ -259,8 +259,8 @@ It basically works like this:
259
259
* this will create ` /var/opengrok/etc/configuration.xml ` with basic set of
260
260
properties. If more is needed use:
261
261
262
- ```
263
- Messages -n config -t set "set propertyXY = valueFOO "
262
+ ``` bash
263
+ curl -d " ${value} " -H " Content-Type: text/plain " -X PUT " ${webapp_uri} /api/v1/configuration/ ${property} "
264
264
```
265
265
266
266
2. add a new project ** foo** :
@@ -273,8 +273,8 @@ It basically works like this:
273
273
searchable. Store the config in a file so that indexer can see the project
274
274
and its repositories:
275
275
276
- ```
277
- Messages -n config -t getconf > /var/opengrok/etc/configuration.xml
276
+ ```bash
277
+ curl "${webapp_uri}/api/v1/configuration" > /var/opengrok/etc/configuration.xml
278
278
```
279
279
280
280
3. index the project. It will become searchable after that.
@@ -287,11 +287,11 @@ It basically works like this:
287
287
4. make the project `indexed` status of the project persistent so that if
288
288
webapp is redeployed the project will be still visible:
289
289
290
- ```
291
- Messages -n config -t getconf > /var/opengrok/etc/configuration.xml
290
+ ```bash
291
+ curl "${webapp_uri}/api/v1/configuration" > /var/opengrok/etc/configuration.xml
292
292
```
293
293
294
- If an *add* message is sent that matches existing project, the list of
294
+ If an * add project * REST API call is invoked that matches existing project, the list of
295
295
repositories for that project will be refreshed. This is handy when repositories
296
296
are added/deleted.
297
297
0 commit comments