Changeset 986 for trunk/zoo-project/zoo-services/utils
- Timestamp:
- Mar 9, 2021, 4:50:02 PM (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
r985 r986 37 37 function loadRequest(){ 38 38 var requestObject={ 39 "id": System["JSON_STR"]["id"],39 //"id": System["JSON_STR"]["id"], 40 40 "inputs":{}, 41 41 "outputs":{}, -
trunk/zoo-project/zoo-services/utils/open-api/templates/index.html
r985 r986 26 26 #set values={} 27 27 #end try 28 #def findLink($val,$key) 29 #if "links" in $val 30 #for i in range(len($val["links"])) 31 #if $val["links"][$i]["rel"]==$key 32 #return $val["links"][$i]["href"] 33 #end if 34 #end for 35 #return None 36 #else 37 #return None 38 #end if 39 #end def 28 40 <html lang="en"> 29 41 <head> … … 272 284 <input type="hidden" name="oapi_ioAsArray" value="#if "io_as_array" in $openapi["openapi"]#$openapi["openapi"]["io_as_array"]#else#false#end if#" /> 273 285 <input type="hidden" name="oapi_wsUrl" value="$openapi["openapi"]["wsurl"]" /> 274 <input type="hidden" name="oapi_jobUrl" value="$ openapi["openapi"]["rootUrl"]/jobs" />286 <input type="hidden" name="oapi_jobUrl" value="$findLink($values,"execute")" /> 275 287 <input type="hidden" name="oapi_reqID" value="$cid" /> 276 288 <h3>Inputs</h3> … … 360 372 <a href="$values["links"][$i]["href"]">$printRel($openapi["links_title"],$values["links"][$i]["rel"])</a> 361 373 </p> 362 #if $i+1<=len($values["links"]) and len($values["links"])>1 and not($values["links"][$i+1]["rel"]=="alternate" and $openapi["openapi"]["full_html_support"]=="true")374 #if $i+1<=len($values["links"]) and len($values["links"])>1 and ($values["links"][$i+1]["rel"]=="alternate" or $values["links"][$i+1]["rel"]=="service-doc") 363 375 <p><a href="$values["links"][$i+1]["href"]">$printRel($openapi["links_title"],$values["links"][$i+1]["rel"])</a></p> 364 376 #end if … … 410 422 *# 411 423 <th scope="row"> 412 <a href="$(values[$i]["links"][0]["href"] [:-1]).html">424 <a href="$(values[$i]["links"][0]["href"]).html"> 413 425 <svg width="1em" height="1em" viewBox="0 0 16 16" class="bi bi-link-45deg" fill="currentColor" xmlns="http://www.w3.org/2000/svg"> 414 426 <path d="M4.715 6.542L3.343 7.914a3 3 0 1 0 4.243 4.243l1.828-1.829A3 3 0 0 0 8.586 5.5L8 6.086a1.001 1.001 0 0 0-.154.199 2 2 0 0 1 .861 3.337L6.88 11.45a2 2 0 1 1-2.83-2.83l.793-.792a4.018 4.018 0 0 1-.128-1.287z"/> … … 526 538 <hr> 527 539 <address>$openapi["openapi"]["rootUrl"]$(currentUrl).html</address> 528 <!-- hhmts start -->Last modified: T hu Mar 4 10:51:46CET 2021 <!-- hhmts end -->540 <!-- hhmts start -->Last modified: Tue Mar 9 16:33:11 CET 2021 <!-- hhmts end --> 529 541 </main> 530 542 #if $currentKey=="root"
Note: See TracChangeset
for help on using the changeset viewer.