Project

General

Profile

Feature #7163

Updated by Reynaud Sylvain over 10 years ago

*EXAMPLE*: 
 <pre> <pre><code class="yaml"> 
 # End of paths and unspecified query fields are implicitly forwarded. 
 # URL are redirected by browser, paths are routed by server. /notify 
     service: notify 

 /template 
     service: template 

 /resource 
     # views routes 
 /lavoisier/externalView = http://cclavoisier.in2p3.fr:8080/lavoisier/externalView 
 /lavoisier/{view}.{extension} = $view?accept=$extension 
 /lavoisier/{view} = $view 
 /lavoisier = index?accept=html "/path/to/file" is implicitely forwarded 
     service: resource 

 /oauth 
     # for OAuth2Authenticator plugin 
 /oauth?state = "?code=" is implicitely forwarded 
     catch-query-keys: [state] 
     path: $state 

 # user routes / 
     strict: true 
     path:     index?accept=html 

 /vo/{voname}/roc/{roc} 
     strict: true 
     path:     myView/root/vo[@id='$voname']?roc=$roc 

 /lavoisier/externalView 
     redirect: temporary 
     host: cclavoisier01.in2p3.fr:8080 
     path: externalView 

 /{view}.{format} 
     catch-query-keys: [accept] 
     path: $view?accept=$format 
 /vo/{voName}/roc/{roc} = myView/root/vo[@id='$voName']?roc=$roc </code></pre> 

 # default routes (do not remove) *SYNTAX OVERVIEW*: 
 /{other} = unknown_route/{$other} <pre><code class="yaml"> 
 / = index?accept=html /example/{key}/{value} 
     strict:     FALSE | true 
     redirect: INTERNAL | permanent | temporary 
     catch-query-keys: [ arg1, arg2 ] 
     host: 
     service:    LAVOISIER | notify | template | resource 
     path:       example?$key=$value&arg1=$arg1 
 </pre> </code></pre> 

 See class RoutingConnector.

Back