af7da6ed3cc34762f0acaabf81ff67ab5942f5e8
[aai/babel.git] / bundleconfig-local / etc / appprops / methodMapper.properties
1 //      Json object holds the method mapping.Update the JSON object with the proper route to logical mapping based 
2 //      on the example provided below : 
3 //      "helloWorld"  = Service Name
4 //      "method"   = http method
5 //      "url" = the url component from the route
6 //      "logicalName"=  When a combination of method and url from the route matches the json object , 
7 //      the logical name is put in the http header as "x-CSI-ServiceName" and "x-CSI-MethodName" 
8 //      "dme2url"= if provided it register the endpoint to GRM, it is optional. This is useful for JAX-RS services.
9   
10 {
11     "helloWorld": [
12         {
13             "method": "get",
14             "url": "/rest/babel/v1/helloWorld",
15             "logicalName": "GetMethod(Logical)"
16         },
17         {
18             "method": "get",
19             "url": "/services/babel/v1/jaxrsExample/jaxrs-services/echo/{input}",
20             "logicalName": "GetJaxrsExampleEcho(Logical)",
21             "dme2url": "/services/babel/v1/jaxrsExample/jaxrs-services/echo/{input}"
22         },
23         {
24             "method": "get",
25             "url": "/services/babel/v1/jaxrsExample/jaxrs-services/property/{fileName}/{input}",
26             "logicalName": "GetJaxrsExampleProperty(Logical)",
27             "dme2url": "/services/babel/v1/jaxrsExample/jaxrs-services/property/{fileName}/{input}"
28         }
29     ],
30              "errormessage":
31             [
32                 {
33                         "method": "get",
34                         "url": "/services/babel/v1/jaxrsExample/errormessage/emls",
35                         "logicalName": "setCAETHeaders(Logical)"
36                 },
37                 {
38                         "method": "get",
39                         "url": "/services/babel/v1/errorMessageLookupService2",
40                         "logicalName": "setCAETHeaders(Logical)"
41                 }        
42             
43             ]
44 }