Project

General

Profile

Feature #7163

Updated by Reynaud Sylvain almost 10 years ago

*EXAMPLE*: 
 <pre><code class="yaml"> 
 /notify 
     service: notify 

 /template 
     service: template 

 /resource 
     # "/path/to/file" is implicitely forwarded 
     service: resource 

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

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

 / 
     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 cclavoisier01.in2p3.fr 
     path: externalView 

 /{view}.{format} 
     catch-query-keys: [accept] 
     path: $view?accept=$format $view 
     query: { accept: $format } 
 </code></pre> 

 *SYNTAX OVERVIEW*: 
 <pre><code class="yaml"> 
 /example/{key}/{value} 
     strict:     FALSE | true 
     redirect: INTERNAL | permanent | temporary 
     catch-query-keys: [ arg1, arg2 ] 
     host: 
     port: 
     service:    LAVOISIER | notify | template | resource 
     path:       example?$key=$value&arg1=$arg1 
     query:      { $key: $value, arg1: $arg1 } 
 </code></pre> 

 See class RoutingConnector.

Back