Add code to follow ONAP API CVS guidelines 45/79845/5
authorChenfei Gao <cgao@research.att.com>
Wed, 6 Mar 2019 23:54:25 +0000 (18:54 -0500)
committerChenfei Gao <cgao@research.att.com>
Thu, 7 Mar 2019 15:05:47 +0000 (10:05 -0500)
commit851984a0701f59aa0a97546862bdbe1ffb39c666
treeb0b1cd9648fdae4478b24a12d4c515c84c70a9b7
parentd544e813c5fee91f3c2b61e6cfcf1c48b83ab82b
Add code to follow ONAP API CVS guidelines

Includes:
a) Added custom headers of versioning info into API response.
b) Added custom header of requestID into API response for fulfilling
   logging v1.2 requirements by copying from client's request header.
   If no requestID is contained in client's request header, API server
   will randomly generate one and include it in response header.
c) Added extension annotations into swagger to comply with swagger 2.0
   spec extension requirements posted in the table of ONAP API CVS
   guidelines wiki page.
d) Updated the package name of TOSCA model POJOs.

Issue-ID: POLICY-1270
Change-Id: Ia9e0f18c088604636008201fe5a149dc5fa21de3
Signed-off-by: Chenfei Gao <cgao@research.att.com>
main/pom.xml
main/src/main/java/org/onap/policy/api/main/rest/ApiRestController.java
main/src/main/java/org/onap/policy/api/main/rest/provider/PolicyProvider.java
main/src/main/java/org/onap/policy/api/main/rest/provider/PolicyTypeProvider.java