distcloud/distributedcloud/dcdbsync/api
Raphael Lima 0b47eaac6a Remove unused methods from subclouds API and dcorch
This commit removes the unused methods _determine_version_cap and
_get_subcloud_users from the subclouds API and dcorch.

Test plan:
1. PASS: Run tox successfully
2. PASS: Confirm that there are no references to the removed code
3. PASS: Deploy a subcloud

Story: 2007082
Task: 51262

Change-Id: I697eca02fc6c7c33d07cf4cf5cec13b6c541f173
Signed-off-by: Raphael Lima <Raphael.Lima@windriver.com>
2024-11-05 10:57:00 -03:00
..
controllers Remove unused methods from subclouds API and dcorch 2024-11-05 10:57:00 -03:00
policies Apply black formatter to dcdbsync/api 2024-06-28 13:38:23 +00:00
__init__.py Move content to subdir to support relocated packaging 2019-11-04 13:57:02 -05:00
api_config.py Apply black formatter to dcdbsync/api 2024-06-28 13:38:23 +00:00
app.py Apply black formatter to dcdbsync/api 2024-06-28 13:38:23 +00:00
policy.py Apply black formatter to dcdbsync/api 2024-06-28 13:38:23 +00:00
README.rst Move content to subdir to support relocated packaging 2019-11-04 13:57:02 -05:00

api

DC DBsync API is Web Server Gateway Interface (WSGI) application to receive and process API calls, including keystonemiddleware to do the authentication, parameter check and validation. It receives API calls from DC Orchestrator to read/write/update resources in Databases on behalf of DC Orchestrator. The API calls are processed in synchronous way, so that the caller will wait for the response to come back.

Multiple DC DBsync API could run in parallel, and also can work in multi-worker mode.

Multiple DC DBsync API is designed and run in stateless mode.

Setup and encapsulate the API WSGI app

app.py:

Setup and encapsulate the API WSGI app, including integrate the keystonemiddleware app

api_config.py:

API configuration loading and init

enforcer.py

Enforces policies on the version2 APIs