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