Skip to content

Commit 370ec7f

Browse files
AP: remove hardcoded /home/myuser/ paths from curl examples in userguides
Replace @/home/myuser/login.dat etc. with @login.dat so examples work from any working directory. Identified by Gemini code review. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 5ee1b07 commit 370ec7f

File tree

2 files changed

+20
-20
lines changed

2 files changed

+20
-20
lines changed

src/site/xdoc/docs/json-springboot-tomcat11-userguide.xml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -448,10 +448,10 @@ sender configuration to your axis2.xml file:</p>
448448
Invoking the client for a login that returns a token can be done as follows:
449449
</p>
450450
<pre>
451-
curl -v -H "Content-Type: application/json" -X POST --data @/home/myuser/login.dat http://localhost:8080/services/loginService
451+
curl -v -H "Content-Type: application/json" -X POST --data @login.dat http://localhost:8080/services/loginService
452452
</pre>
453453
<p>
454-
Where the contents of /home/myuser/login.dat are:
454+
Where the contents of login.dat are:
455455
</p>
456456
<pre>
457457
{"doLogin":[{"arg0":{"email":java-dev@axis.apache.org,"credentials":userguide}}]}
@@ -467,10 +467,10 @@ Invoking the client for a Test Service that validates a sample token can be done
467467
follows:
468468
</p>
469469
<pre>
470-
curl -v -H "Authorization: Bearer 95104Rn2I2oEATfuI90N" -H "Content-Type: application/json" -X POST --data @/home/myuser/test.dat http://localhost:8080/services/testws'
470+
curl -v -H "Authorization: Bearer 95104Rn2I2oEATfuI90N" -H "Content-Type: application/json" -X POST --data @test.dat http://localhost:8080/services/testws'
471471
</pre>
472472
<p>
473-
Where the contents of /home/myuser/test.dat are below. arg0 is a var name
473+
Where the contents of test.dat are below. arg0 is a var name
474474
and is used by Axis2 as part of its reflection based code:
475475
</p>
476476
<pre>
@@ -496,11 +496,11 @@ Here are examples of how to invoke the service using cURL:</p>
496496
curl -v -H "Authorization: Bearer 95104Rn2I2oEATfuI90N" \
497497
-H "Content-Type: application/json" \
498498
-X POST \
499-
--data @/home/myuser/small_dataset.dat \
499+
--data @small_dataset.dat \
500500
https://localhost:8443/services/BigDataH2Service
501501
</pre>
502502

503-
<p>Where the contents of /home/myuser/small_dataset.dat are:</p>
503+
<p>Where the contents of small_dataset.dat are:</p>
504504

505505
<pre>
506506
{"processBigDataSet":[{"arg0":{
@@ -520,11 +520,11 @@ curl -v -H "Authorization: Bearer 95104Rn2I2oEATfuI90N" \
520520
curl -v -H "Authorization: Bearer 95104Rn2I2oEATfuI90N" \
521521
-H "Content-Type: application/json" \
522522
-X POST \
523-
--data @/home/myuser/medium_dataset.dat \
523+
--data @medium_dataset.dat \
524524
https://localhost:8443/services/BigDataH2Service
525525
</pre>
526526

527-
<p>Where the contents of /home/myuser/medium_dataset.dat are:</p>
527+
<p>Where the contents of medium_dataset.dat are:</p>
528528

529529
<pre>
530530
{"processBigDataSet":[{"arg0":{
@@ -544,11 +544,11 @@ curl -v -H "Authorization: Bearer 95104Rn2I2oEATfuI90N" \
544544
curl -v -H "Authorization: Bearer 95104Rn2I2oEATfuI90N" \
545545
-H "Content-Type: application/json" \
546546
-X POST \
547-
--data @/home/myuser/large_dataset.dat \
547+
--data @large_dataset.dat \
548548
https://localhost:8443/services/BigDataH2Service
549549
</pre>
550550

551-
<p>Where the contents of /home/myuser/large_dataset.dat are:</p>
551+
<p>Where the contents of large_dataset.dat are:</p>
552552

553553
<pre>
554554
{"processBigDataSet":[{"arg0":{

src/site/xdoc/docs/json-springboot-userguide.xml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -349,10 +349,10 @@ sender configuration to your axis2.xml file:</p>
349349
Invoking the client for a login that returns a token can be done as follows:
350350
</p>
351351
<pre>
352-
curl -v -H "Content-Type: application/json" -X POST --data @/home/myuser/login.dat http://localhost:8080/axis2-json-api/services/loginService
352+
curl -v -H "Content-Type: application/json" -X POST --data @login.dat http://localhost:8080/axis2-json-api/services/loginService
353353
</pre>
354354
<p>
355-
Where the contents of /home/myuser/login.dat are:
355+
Where the contents of login.dat are:
356356
</p>
357357
<pre>
358358
{"doLogin":[{"arg0":{"email":java-dev@axis.apache.org,"credentials":userguide}}]}
@@ -368,10 +368,10 @@ Invoking the client for a Test Service that validates a sample token can be done
368368
follows:
369369
</p>
370370
<pre>
371-
curl -v -H "Authorization: Bearer 95104Rn2I2oEATfuI90N" -H "Content-Type: application/json" -X POST --data @/home/myuser/test.dat http://localhost:8080/axis2-json-api/services/testws'
371+
curl -v -H "Authorization: Bearer 95104Rn2I2oEATfuI90N" -H "Content-Type: application/json" -X POST --data @test.dat http://localhost:8080/axis2-json-api/services/testws'
372372
</pre>
373373
<p>
374-
Where the contents of /home/myuser/test.dat are below. arg0 is a var name
374+
Where the contents of test.dat are below. arg0 is a var name
375375
and is used by Axis2 as part of its reflection based code:
376376
</p>
377377
<pre>
@@ -397,11 +397,11 @@ Here are examples of how to invoke the service using cURL:</p>
397397
curl -v -H "Authorization: Bearer 95104Rn2I2oEATfuI90N" \
398398
-H "Content-Type: application/json" \
399399
-X POST \
400-
--data @/home/myuser/small_dataset.dat \
400+
--data @small_dataset.dat \
401401
https://localhost:8443/axis2-json-api/services/BigDataH2Service
402402
</pre>
403403

404-
<p>Where the contents of /home/myuser/small_dataset.dat are:</p>
404+
<p>Where the contents of small_dataset.dat are:</p>
405405

406406
<pre>
407407
{"processBigDataSet":[{"arg0":{
@@ -421,11 +421,11 @@ curl -v -H "Authorization: Bearer 95104Rn2I2oEATfuI90N" \
421421
curl -v -H "Authorization: Bearer 95104Rn2I2oEATfuI90N" \
422422
-H "Content-Type: application/json" \
423423
-X POST \
424-
--data @/home/myuser/medium_dataset.dat \
424+
--data @medium_dataset.dat \
425425
https://localhost:8443/axis2-json-api/services/BigDataH2Service
426426
</pre>
427427

428-
<p>Where the contents of /home/myuser/medium_dataset.dat are:</p>
428+
<p>Where the contents of medium_dataset.dat are:</p>
429429

430430
<pre>
431431
{"processBigDataSet":[{"arg0":{
@@ -445,11 +445,11 @@ curl -v -H "Authorization: Bearer 95104Rn2I2oEATfuI90N" \
445445
curl -v -H "Authorization: Bearer 95104Rn2I2oEATfuI90N" \
446446
-H "Content-Type: application/json" \
447447
-X POST \
448-
--data @/home/myuser/large_dataset.dat \
448+
--data @large_dataset.dat \
449449
https://localhost:8443/axis2-json-api/services/BigDataH2Service
450450
</pre>
451451

452-
<p>Where the contents of /home/myuser/large_dataset.dat are:</p>
452+
<p>Where the contents of large_dataset.dat are:</p>
453453

454454
<pre>
455455
{"processBigDataSet":[{"arg0":{

0 commit comments

Comments
 (0)