FOSSology
4.4.0
Open Source License Compliance by Open Source Software
|
Provides router for REST api requests. More...
Go to the source code of this file.
Functions | |
Fossology\UI\Api::getVersionFromUri ($uri) | |
Variables | |
Fossology\UI\Api::$GLOBALS ['apiCall'] = true | |
Fossology\UI\Api::$requestedVersion = isset($_SERVER['REQUEST_URI']) ? getVersionFromUri($_SERVER['REQUEST_URI']) : null | |
Fossology\UI\Api::$apiVersion = in_array($requestedVersion, [ApiVersion::V1, ApiVersion::V2]) ? $requestedVersion : ApiVersion::V1 | |
Fossology\UI\Api::$BASE_PATH = "/repo/api/v" .$apiVersion | |
const | Fossology\UI\Api::AUTH_METHOD = "JWT_TOKEN" |
Fossology\UI\Api::$GLOBALS ['apiBasePath'] = $BASE_PATH | |
Fossology\UI\Api::$startTime = microtime(true) | |
Fossology\UI\Api::$SysConf = bootstrap() | |
global | Fossology\UI\Api::$container |
Fossology\UI\Api::$timingLogger = $container->get("log.timing") | |
Fossology\UI\Api::$loader = $container->get('twig.loader') | |
Fossology\UI\Api::$error = ConfigInit($GLOBALS['SYSCONFDIR'], $SysConf, false) | |
Fossology\UI\Api::$dbConnected = true | |
Fossology\UI\Api::$app = AppFactory::create() | |
Fossology\UI\Api::$apiVersionMiddleware | |
if($dbConnected) | Fossology\UI\Api::else |
Fossology\UI\Api::return | |
Fossology\UI\Api::$pattern = "[\\w\\d\\-\\.@_]+}" | |
Fossology\UI\Api::$customErrorHandler | |
Fossology\UI\Api::$errorMiddleware | |
Provides router for REST api requests.
Definition in file index.php.
Fossology::UI::Api\$apiVersionMiddleware |
Fossology::UI::Api\$errorMiddleware |