From 3e443dff14a2be02b914e66f27b549d0ed4cc600 Mon Sep 17 00:00:00 2001 From: Yujun Zhang Date: Tue, 21 Feb 2017 15:22:44 +0800 Subject: Add licence header according to OPNFV contribution guidelines[1] by script[2] [1]: https://wiki.opnfv.org/display/DEV/Contribution+Guidelines [2]: https://github.com/Justin-chi/Lab/blob/master/add_license.sh Change-Id: I5b77394a104857bb4ee9addbe973ed239b7a59f3 Signed-off-by: Yujun Zhang --- legacy/api/handler/job_handler.py | 8 ++++++++ legacy/api/model/job_model.py | 8 ++++++++ legacy/api/router/mapper.py | 8 ++++++++ legacy/api/router/mapper.py.orig | 19 +++++++++++++++++++ 4 files changed, 43 insertions(+) create mode 100644 legacy/api/router/mapper.py.orig (limited to 'legacy/api') diff --git a/legacy/api/handler/job_handler.py b/legacy/api/handler/job_handler.py index b75da5ff..4ecc1cee 100644 --- a/legacy/api/handler/job_handler.py +++ b/legacy/api/handler/job_handler.py @@ -1,3 +1,11 @@ +############################################################################## +# Copyright (c) 2017 ZTE Corporation and others. +# +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 +############################################################################## import threading from copy import copy diff --git a/legacy/api/model/job_model.py b/legacy/api/model/job_model.py index f7eb9fda..73baf660 100644 --- a/legacy/api/model/job_model.py +++ b/legacy/api/model/job_model.py @@ -1,3 +1,11 @@ +############################################################################## +# Copyright (c) 2017 ZTE Corporation and others. +# +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 +############################################################################## from flask_restful import fields from flask_restful_swagger import swagger diff --git a/legacy/api/router/mapper.py b/legacy/api/router/mapper.py index cd21fbe1..470d18e2 100644 --- a/legacy/api/router/mapper.py +++ b/legacy/api/router/mapper.py @@ -1,3 +1,11 @@ +############################################################################## +# Copyright (c) 2017 ZTE Corporation and others. +# +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 +############################################################################## from legacy.api.handler.job_handler import Job, JobList diff --git a/legacy/api/router/mapper.py.orig b/legacy/api/router/mapper.py.orig new file mode 100644 index 00000000..1acb40b5 --- /dev/null +++ b/legacy/api/router/mapper.py.orig @@ -0,0 +1,19 @@ +<<<<<<< HEAD +from legacy.api.handler.job_handler import Job, JobList +======= +############################################################################## +# Copyright (c) 2017 ZTE Corporation and others. +# +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 +############################################################################## +from legacy.api.handler import Job, JobList +>>>>>>> 615b529... Add licence header according to OPNFV contribution guidelines[1] by script[2] + + +mappers = [ + (JobList, '/api/v1.0/jobs'), + (Job, '/api/v1.0/jobs/'), +] -- cgit 1.2.3-korg