kingbird/kingbird/api
Vamsi Surapureddi 5ec6bd1c41 Fix failing tests for py27 and py34
Closes-bug: #1769105

Change-Id: Ic709c19edee47a7bf4e73bca78c285de7f01e71a
2018-05-06 07:42:11 +05:30
..
controllers Fix failing tests for py27 and py34 2018-05-06 07:42:11 +05:30
README.rst Support V1.1 for kingbird quota management. 2017-04-17 16:01:26 +05:30
__init__.py Remove unnecessary executable privilege 2016-05-17 06:24:58 +00:00
api_config.py Remove log translations 2017-03-21 20:45:47 +08:00
app.py Fix to show version information from root API. 2017-03-23 12:23:33 +05:30
enforcer.py Support V1.1 for kingbird quota management. 2017-04-17 16:01:26 +05:30

README.rst

api

Kingbird API is Web Server Gateway Interface (WSGI) applications to receive and process API calls, including keystonemiddleware to do the authentication, parameter check and validation, convert API calls to job rpc message, and then send the job to Kingbird Engine through the queue. If the job will be processed by Kingbird Engine in synchronous way, the Kingbird API will wait for the response from the Kingbird Engine. Otherwise, the Kingbird API will send response to the API caller first, and then send the job to Kingbird Engine in asynchronous way.

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

Multiple Kingbird API will be designed and run in stateless mode, persistent data will be accessed (read and write) from the Kingbird Database through the DAL module.

Setup and encapsulate the API WSGI app

app.py:

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

apicfg.py:

API configuration loading and init

enforcer.py

Enforces policies on the version2 API's