1 //##############################################################################
4 // Copyright (c) 2016, AT&T Intellectual Property. All other rights reserved.
6 // Redistribution and use in source and binary forms, with or without modification, are permitted
7 // provided that the following conditions are met:
9 // 1. Redistributions of source code must retain the above copyright notice, this list of conditions
10 // and the following disclaimer.
11 // 2. Redistributions in binary form must reproduce the above copyright notice, this list of
12 // conditions and the following disclaimer in the documentation and/or other materials provided
13 // with the distribution.
14 // 3. All advertising materials mentioning features or use of this software must display the
15 // following acknowledgement: This product includes software developed by the AT&T.
16 // 4. Neither the name of AT&T nor the names of its contributors may be used to endorse or
17 // promote products derived from this software without specific prior written permission.
19 //THIS SOFTWARE IS PROVIDED BY AT&T INTELLECTUAL PROPERTY ''AS IS'' AND ANY EXPRESS OR
20 //IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
21 //MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
22 //SHALL AT&T INTELLECTUAL PROPERTY BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23 //SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
24 //PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
25 //OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
26 //CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
27 //ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
29 //#############################################################################
31 // Json object holds the method mapping.Update the JSON object with the proper route to logical mapping based
32 // on the example provided below :
33 // "helloWorld" = Service Name
34 // "method" = http method
35 // "url" = the url component from the route
36 // "logicalName"= When a combination of method and url from the route matches the json object ,
37 // the logical name is put in the http header as "x-CSI-ServiceName" and "x-CSI-MethodName
38 // ""dme2url"= if provided it register the endpoint to GRM, it is optional.
44 "url": "/rest/dmaap/v1/helloWorld",
45 "logicalName": "GetMethod(Logical)"
49 "url": "/services/dmaap/v1/jaxrsExample/jaxrs-services/echo/{input}",
50 "logicalName": "GetJaxrsExampleEcho(Logical)",
51 "dme2url": "/services/dmaap/v1/jaxrsExample"
55 "url": "/services/dmaap/v1/jaxrsExample/jaxrs-services/property/{fileName}/{input}",
56 "logicalName": "GetJaxrsExampleProperty(Logical)",
57 "dme2url": "/services/dmaap/v1/jaxrsExample"
64 "url": "/services/dmaap/v1/jaxrsExample/errormessage/emls",
65 "logicalName": "setCAETHeaders(Logical)"
69 "url": "/services/dmaap/v1/errorMessageLookupService2",
70 "logicalName": "setCAETHeaders(Logical)"