Commit 0cb6a7aa1a93b75882605b7761b02820b67f5bde
1 parent
2cfa3a1a
Exists in
master
and in
109 other branches
add info for apidoc
Showing
9 changed files
with
39 additions
and
12 deletions
Show diff stats
help/Methods_AMDA.xml
... | ... | @@ -1380,7 +1380,7 @@ of a set of typically orthogonal axes. |
1380 | 1380 | |
1381 | 1381 | <wsdl:service name="Methods_AMDA"> |
1382 | 1382 | <wsdl:port name="Methods_AMDAPort" binding="tns:Methods_AMDASoapBinding"> |
1383 | - <soap:address location="http://cdpp3.irap.omp.eu/php/AMDA_METHODS_WSDL.php"/> | |
1383 | + <soap:address location="http://amda.irap.omp.eu/php/AMDA_METHODS_WSDL.php"/> | |
1384 | 1384 | </wsdl:port> |
1385 | 1385 | </wsdl:service> |
1386 | 1386 | </wsdl:definitions> |
... | ... |
php/rest/getDataset.php
... | ... | @@ -20,10 +20,13 @@ |
20 | 20 | * @apiSuccess {String} success `true` |
21 | 21 | * @apiSuccess {String} dataFileURLs URL of the files matching the criteria. If the file is empty, there is no data |
22 | 22 | * matching these criteria. |
23 | + * @apiSuccess {String} status status of the job ( done | in_progress ) | |
23 | 24 | * |
24 | 25 | * @apiSuccessExample Success-Response: |
25 | 26 | * HTTP/1.1 200 OK |
27 | + * [success] => 1 | |
26 | 28 | * http://amda.irap.omp.eu/AMDA/data/WSRESULT/getdataset_ace-imf-all_20130923T090000_20130924T130000.txt |
29 | + * [status] => done | |
27 | 30 | * |
28 | 31 | * @apiErrorExample Error-Response: |
29 | 32 | * {"error":"Cannot find info file for dataset ace-imf-any"} |
... | ... |
php/rest/getObsDataTree.php
... | ... | @@ -12,7 +12,12 @@ |
12 | 12 | * |
13 | 13 | * @apiSuccessExample Success-Response: |
14 | 14 | * HTTP/1.1 200 OK |
15 | - * http://amda.irap.omp.eu/AMDA/data/WSRESULT/obsdatatree_impex_20180727_AmdaLocalDataBaseParameters.xml | |
15 | + * [success] => 1 | |
16 | + * [WorkSpace] => stdClass Object | |
17 | + * ( | |
18 | + * [LocalDataBaseParameters] => http://amda.irap.omp.eu/AMDA/data/WSRESULT/obsdatatree_impex_20180919_AmdaLocalDataBaseParameters.xml | |
19 | + * ) | |
20 | + * | |
16 | 21 | * |
17 | 22 | * @apiErrorExample Error-Response: |
18 | 23 | * {"error":"No Amda Local DataBase Parameters description file"} |
... | ... |
php/rest/getOrbites.php
... | ... | @@ -31,11 +31,14 @@ |
31 | 31 | * |
32 | 32 | * @apiSuccess {String} success `true` |
33 | 33 | * @apiSuccess {String} url_XYZ URL of the file containing the points. |
34 | + * @apiSuccess {String} status status of the job ( done | in_progress ) | |
34 | 35 | * |
35 | 36 | |
36 | 37 | * @apiSuccessExample Success-Response: |
37 | 38 | * HTTP/1.1 200 OK |
38 | - * http://amda.irap.omp.eu/AMDA//data/WSRESULT/getorbites_ace_xyz_gse_km_20130923T090000_20130924T130000.txt | |
39 | + * [success] => 1 | |
40 | + * http://amda.irap.omp.eu/AMDA/data/WSRESULT/getorbites_ace_xyz_gse_km_20130923T090000_20130924T130000.txt | |
41 | + * [status] => done | |
39 | 42 | * |
40 | 43 | * @apiErrorExample Error-Response: |
41 | 44 | * {"error":"Cannot find orbit data for ACE1 for 2013-09-23T09:00-2013-09-24T13:00 in km GSE( - )"} |
... | ... |
php/rest/getParameter.php
... | ... | @@ -22,10 +22,13 @@ |
22 | 22 | * @apiSuccess {String} success `true` |
23 | 23 | * @apiSuccess {String} dataFileURLs URL of the files matching the criteria. If the file is empty, there is no data |
24 | 24 | * matching these criteria. |
25 | + * @apiSuccess {String} status status of the job ( done | in_progress ) | |
25 | 26 | * |
26 | 27 | * @apiSuccessExample Success-Response: |
27 | 28 | * HTTP/1.1 200 OK |
28 | - * http://amda.irap.omp.eu/AMDA/data/WSRESULT/getparameter_c1_hia_dens_20130923T090000_20130924T130000.txt | |
29 | + * [success] => 1 | |
30 | + * [dataFileURLS] => http://amda.irap.omp.eu/AMDA/data/WSRESULT/getparameter_c1_hia_dens_20130923T090000_20130924T130000.txt | |
31 | + * [status] => done | |
29 | 32 | * |
30 | 33 | * @apiErrorExample Error-Response: |
31 | 34 | * {"error":"Exception detected : Cannot find parameter local file c1_hia_dens1"} |
... | ... |
php/rest/getParameterList.php
... | ... | @@ -15,7 +15,18 @@ |
15 | 15 | |
16 | 16 | * @apiSuccessExample Success-Response: |
17 | 17 | * HTTP/1.1 200 OK |
18 | - * http://amda.irap.omp.eu/AMDA//data/WSRESULT/parameterlist_impex_20180912_AmdaLocalDataBaseParameters.xml | |
18 | + * [success] => 1 | |
19 | + * [ParameterList] => stdClass Object | |
20 | + * ( | |
21 | + * [LocalDataBaseParameters] => http://amda.irap.omp.eu/AMDA/data/WSRESULT/parameterlist_impex_20180919_AmdaLocalDataBaseParameters.xml | |
22 | + * ) | |
23 | + * or with userID | |
24 | + * ( | |
25 | + * [UserDefinedParameters] => http://amda.irap.omp.eu/AMDA/data/WSRESULT/parameterlist_userID_20180919_UserDefinedParameters.xml | |
26 | + * [LocalDataBaseParameters] => http://amda.irap.omp.eu/AMDA/data/WSRESULT/parameterlist_userID_20180919_AmdaLocalDataBaseParameters.xml | |
27 | + * ) | |
28 | + * | |
29 | + * | |
19 | 30 | * |
20 | 31 | * @apiErrorExample Error-Response: |
21 | 32 | * {"error":"Login procedure failed for impex1 : Check your password"} |
... | ... |
php/rest/getStatus.php
... | ... | @@ -15,7 +15,7 @@ |
15 | 15 | * |
16 | 16 | * @apiSuccessExample Success-Response: |
17 | 17 | * HTTP/1.1 200 OK |
18 | - * {"success":true,"status":"in progress"} | |
18 | + * {"success":true,"status":"in progress"} or | |
19 | 19 | * {"success":true,"status":"done","dataFileURLs":"http://amda.irap.omp.eu/AMDA/data/WSRESULT/getparameter_c1_hia_dens_20010923T090000_20130924T130000.txt"} |
20 | 20 | * |
21 | 21 | * @apiErrorExample Error-Response: |
... | ... |
php/rest/getTimeTable.php
... | ... | @@ -14,8 +14,9 @@ |
14 | 14 | * @apiSuccess {String} ttFileURL URL of the XML file containing the Time Table (VOTable format) |
15 | 15 | * |
16 | 16 | * @apiSuccessExample Success-Response: |
17 | - * HTTP/1.1 200 OK | |
18 | - * http://amda.irap.omp.eu/AMDA/data/WSRESULT/timetable_impex_20180912_sharedtimeTable_0.xml | |
17 | + * HTTP/1.1 200 OK | |
18 | + * [success] => 1 | |
19 | + * [ttFileURL] => http://amda.irap.omp.eu/AMDA/data/WSRESULT/timetable_userID_20180919_tt_0.xml | |
19 | 20 | * |
20 | 21 | * @apiErrorExample Error-Response: |
21 | 22 | * {"error":"No such table sharedtimeTable_100 for user impex"} |
... | ... |
php/rest/getTimeTablesList.php
1 | 1 | <?php |
2 | 2 | |
3 | 3 | /** |
4 | - * @api {get} getTimeTablesList.php getTimeTableList | |
4 | + * @api {get} getTimeTablesList.php getTimeTablesList | |
5 | 5 | * @apiDescription Provides the private list of Time Tables (Time Table or TT) owned by a user. When called without |
6 | 6 | * userID, this web-service returns the list of shared Time Tables. |
7 | 7 | * |
8 | - * @apiName getTimeTableList | |
8 | + * @apiName getTimeTablesList | |
9 | 9 | * @apiGroup webservices |
10 | 10 | * |
11 | 11 | * @apiParam {String} [userID] Identifier of the user in AMDA. |
... | ... | @@ -15,8 +15,9 @@ |
15 | 15 | * @apiSuccess {String} TimeTablesList URL of the XML file, which contains the list of Time Tables. |
16 | 16 | * |
17 | 17 | * @apiSuccessExample Success-Response: |
18 | - * HTTP/1.1 200 OK | |
19 | - * http://amda.irap.omp.eu/data/WSRESULT/timetables_impex_20180905.xml | |
18 | + * HTTP/1.1 200 OK | |
19 | + * [success] => 1 | |
20 | + * [TimeTablesList] => http://amda.irap.omp.eu/data/WSRESULT/timetables_impex_20180905.xml | |
20 | 21 | * |
21 | 22 | * @apiErrorExample Error-Response: |
22 | 23 | * {"error": "Workspace Error : Cannot load TimeTable list for userID"} |
... | ... |