2 # ============LICENSE_START===================================================
3 # Copyright (c) 2018 Amdocs. All rights reserved.
4 # ===================================================================
5 # Licensed under the Apache License, Version 2.0 (the "License"); you may not
6 # use this file except in compliance with the License. You may obtain a copy
9 # http://www.apache.org/licenses/LICENSE-2.0
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13 # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14 # License for the specific language governing permissions and limitations under
16 # ============LICENSE_END====================================================
19 from flask import Flask, render_template
20 from aria.exceptions import AriaException
23 route_base = "/api/" + version_id + "/"
24 app = Flask("onap-aria-rest")
28 return render_template('index.html')
31 @app.route(route_base + "templates/", methods = ['GET'])
34 @app.route(route_base + "templates/<template_id>", methods = ['POST'])
35 def install_template( template_id ):
43 return "template {} instantiated"
45 @app.route(route_base + "templates/<template_id>", methods = ['DELETE'])
46 def delete_template( template_id ):
54 return "template {} deleted"
56 if __name__ == "__main__":