1 ###############################################################################
2 # ============LICENSE_START=======================================================
4 # ================================================================================
5 # Copyright © 2017 AT&T Intellectual Property. All rights reserved.
6 # ================================================================================
7 # Licensed under the Apache License, Version 2.0 (the "License");
8 # you may not use this file except in compliance with the License.
9 # You may obtain a copy of the License at
10 # http://www.apache.org/licenses/LICENSE-2.0
12 # Unless required by applicable law or agreed to in writing, software
13 # distributed under the License is distributed on an "AS IS" BASIS,
14 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 # See the License for the specific language governing permissions and
16 # limitations under the License.
17 # ============LICENSE_END=========================================================
19 # ECOMP is a trademark and service mark of AT&T Intellectual Property.
21 ###############################################################################
22 //##############################################################################
25 // Copyright (c) 2016, AT&T Intellectual Property. All other rights reserved.
27 // Redistribution and use in source and binary forms, with or without modification, are permitted
28 // provided that the following conditions are met:
30 // 1. Redistributions of source code must retain the above copyright notice, this list of conditions
31 // and the following disclaimer.
32 // 2. Redistributions in binary form must reproduce the above copyright notice, this list of
33 // conditions and the following disclaimer in the documentation and/or other materials provided
34 // with the distribution.
35 // 3. All advertising materials mentioning features or use of this software must display the
36 // following acknowledgement: This product includes software developed by the AT&T.
37 // 4. Neither the name of AT&T nor the names of its contributors may be used to endorse or
38 // promote products derived from this software without specific prior written permission.
40 //THIS SOFTWARE IS PROVIDED BY AT&T INTELLECTUAL PROPERTY ''AS IS'' AND ANY EXPRESS OR
41 //IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
42 //MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
43 //SHALL AT&T INTELLECTUAL PROPERTY BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
44 //SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
45 //PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
46 //OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
47 //CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
48 //ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
50 //#############################################################################
52 // Json object holds the method mapping.Update the JSON object with the proper route to logical mapping based
53 // on the example provided below :
54 // "helloWorld" = Service Name
55 // "method" = http method
56 // "url" = the url component from the route
57 // "logicalName"= When a combination of method and url from the route matches the json object ,
58 // the logical name is put in the http header as "x-CSI-ServiceName" and "x-CSI-MethodName
59 // ""dme2url"= if provided it register the endpoint to GRM, it is optional.
65 "url": "/rest/dmaap/v1/helloWorld",
66 "logicalName": "GetMethod(Logical)"
70 "url": "/services/dmaap/v1/jaxrsExample/jaxrs-services/echo/{input}",
71 "logicalName": "GetJaxrsExampleEcho(Logical)",
72 "dme2url": "/services/dmaap/v1/jaxrsExample"
76 "url": "/services/dmaap/v1/jaxrsExample/jaxrs-services/property/{fileName}/{input}",
77 "logicalName": "GetJaxrsExampleProperty(Logical)",
78 "dme2url": "/services/dmaap/v1/jaxrsExample"
85 "url": "/services/dmaap/v1/jaxrsExample/errormessage/emls",
86 "logicalName": "setCAETHeaders(Logical)"
90 "url": "/services/dmaap/v1/errorMessageLookupService2",
91 "logicalName": "setCAETHeaders(Logical)"