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