Code Review
/
it
/
dev.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Add OpenAPI v3 specification of onboarder API
[it/dev.git]
/
xapp_onboarder
/
xapp_onboarder
/
api
/
endpoints
/
onboard_ep.py
diff --git
a/xapp_onboarder/xapp_onboarder/api/endpoints/onboard_ep.py
b/xapp_onboarder/xapp_onboarder/api/endpoints/onboard_ep.py
index
d287f11
..
6806bbf
100644
(file)
--- a/
xapp_onboarder/xapp_onboarder/api/endpoints/onboard_ep.py
+++ b/
xapp_onboarder/xapp_onboarder/api/endpoints/onboard_ep.py
@@
-45,12
+45,12
@@
class OnboardxApps(Resource):
@api.expect(request_models.xapp_descriptor_post, validate=True)
def post(self):
"""
@api.expect(request_models.xapp_descriptor_post, validate=True)
def post(self):
"""
- Onboard xApp
with the xApp descriptor and its scehma included in the Json body
+ Onboard xApp
using the xApp descriptor and schema in the request body.
"""
config_file = request.json.get('config-file.json')
"""
config_file = request.json.get('config-file.json')
-
schema_file = request.json.get('
schema.json')
+
controls_schema_file = request.json.get('controls-
schema.json')
- return onboard(config_file, schema_file)
+ return onboard(config_file,
controls_
schema_file)
@ns.route('/download')
@ns.route('/download')
@@
-62,10
+62,9
@@
class OnboardxAppsDownload(Resource):
@api.expect(request_models.xapp_descriptor_download_post, validate=True)
def post(self):
"""
@api.expect(request_models.xapp_descriptor_download_post, validate=True)
def post(self):
"""
- Onboard xApp
with xApp descriptor and schema downloading URLs
+ Onboard xApp
after downloading the xApp descriptor and schema from the URLs.
"""
config_file_url = request.json.get('config-file.json_url')
"""
config_file_url = request.json.get('config-file.json_url')
- schema_url = request.json.get('schema.json_url')
-
- return download_config_and_schema_and_onboard(config_file_url, schema_url)
+ controls_schema_url = request.json.get('controls-schema.json_url')
+ return download_config_and_schema_and_onboard(config_file_url, controls_schema_url)