Changeset 985 for trunk/zoo-project/zoo-services
- Timestamp:
- Mar 9, 2021, 10:00:04 AM (4 years ago)
- Location:
- trunk/zoo-project/zoo-services/utils/open-api
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-project/zoo-services/utils/open-api/static/openapi.js
r968 r985 37 37 function loadRequest(){ 38 38 var requestObject={ 39 "id": System["JSON_STR"]["id"], 39 40 "inputs":{}, 40 41 "outputs":{}, … … 62 63 if($('input[name="oapi_ioAsArray"]').val()=="true"){ 63 64 cInput["input"]["format"]={ 64 "m imeType": $(this).parent().prev().find("select").val()65 "mediaType": $(this).parent().prev().find("select").val() 65 66 }; 66 67 cInput["input"]["href"]=$(this).val(); 67 68 }else{ 68 69 cInput["format"]={ 69 "m imeType": $(this).parent().prev().find("select").val()70 "mediaType": $(this).parent().prev().find("select").val() 70 71 }; 71 72 cInput["href"]=$(this).val(); … … 115 116 var selector="select[name='format_"+cName+"']"; 116 117 cOutput["format"]={ 117 "m imeType": $(selector).val()118 "mediaType": $(selector).val() 118 119 }; 119 120 } -
trunk/zoo-project/zoo-services/utils/open-api/templates/index.html
r984 r985 160 160 #set cFormats=[] 161 161 #for j in range(len($obj["input"]["formats"])) 162 #set $cFormats+=[$obj["input"]["formats"][$j]["m imeType"]]162 #set $cFormats+=[$obj["input"]["formats"][$j]["mediaType"]] 163 163 #end for 164 164 $printControl({"title": "format","type": "input_format","name": $cName,"options":$cFormats}) … … 272 272 <input type="hidden" name="oapi_ioAsArray" value="#if "io_as_array" in $openapi["openapi"]#$openapi["openapi"]["io_as_array"]#else#false#end if#" /> 273 273 <input type="hidden" name="oapi_wsUrl" value="$openapi["openapi"]["wsurl"]" /> 274 <input type="hidden" name="oapi_jobUrl" value="$openapi["openapi"]["rootUrl"] $(currentUrl)/jobs" />274 <input type="hidden" name="oapi_jobUrl" value="$openapi["openapi"]["rootUrl"]/jobs" /> 275 275 <input type="hidden" name="oapi_reqID" value="$cid" /> 276 276 <h3>Inputs</h3> … … 291 291 #if "formats" in $cOutput["output"] 292 292 #for j in range(len($cOutput["output"]["formats"])) 293 #set cFormats+=[$cOutput["output"]["formats"][$j]["m imeType"]]293 #set cFormats+=[$cOutput["output"]["formats"][$j]["mediaType"]] 294 294 #end for 295 295 #end if … … 424 424 * Jobs list 425 425 *# 426 #set cValue=$values[$i] ["infos"]426 #set cValue=$values[$i] 427 427 <th scope="row"> 428 428 #if "status" in $cValue and $cValue["status"]=="successful" … … 526 526 <hr> 527 527 <address>$openapi["openapi"]["rootUrl"]$(currentUrl).html</address> 528 <!-- hhmts start -->Last modified: Mon Mar 1 17:01:50CET 2021 <!-- hhmts end -->528 <!-- hhmts start -->Last modified: Thu Mar 4 10:51:46 CET 2021 <!-- hhmts end --> 529 529 </main> 530 530 #if $currentKey=="root"
Note: See TracChangeset
for help on using the changeset viewer.