FOSSology  4.4.0
Open Source License Compliance by Open Source Software
Fossology\UI\Api\Controllers\InfoController Class Reference

Controller for REST API version. More...

Inheritance diagram for Fossology\UI\Api\Controllers\InfoController:
Inheritance graph
Collaboration diagram for Fossology\UI\Api\Controllers\InfoController:
Collaboration graph

Public Member Functions

 getInfo ($request, $response)
 
 getHealth ($request, $response, $args)
 
 getOpenApi ($request, $response)
 
- Public Member Functions inherited from Fossology\UI\Api\Controllers\RestController
 __construct ($container)
 

Additional Inherited Members

- Protected Member Functions inherited from Fossology\UI\Api\Controllers\RestController
 getParsedBody (ServerRequestInterface $request)
 Parse request body as JSON and return associative PHP array. More...
 
 throwNotAdminException ()
 
 uploadAccessible ($id)
 
 isItemExists (int $uploadId, int $itemId)
 
- Protected Attributes inherited from Fossology\UI\Api\Controllers\RestController
 $container
 
 $restHelper
 
 $dbHelper
 

Detailed Description

Controller for REST API version.

Definition at line 27 of file InfoController.php.

Member Function Documentation

◆ getHealth()

Fossology\UI\Api\Controllers\InfoController::getHealth (   $request,
  $response,
  $args 
)

Get the API health status

Parameters
ServerRequestInterface$request
ResponseHelper$response
array$argsSet to -1 in index.php if DB connection failed
Returns
ResponseHelper

Definition at line 105 of file InfoController.php.

◆ getInfo()

Fossology\UI\Api\Controllers\InfoController::getInfo (   $request,
  $response 
)

Get the current API info

Parameters
ServerRequestInterface$request
ResponseHelper$response
Returns
ResponseHelper
Exceptions
HttpErrorException

Definition at line 37 of file InfoController.php.

◆ getOpenApi()

Fossology\UI\Api\Controllers\InfoController::getOpenApi (   $request,
  $response 
)

Get the current OpenAPI info

Parameters
ServerRequestInterface$request
ResponseHelper$response
Returns
ResponseHelper
Exceptions
HttpErrorException

Definition at line 141 of file InfoController.php.


The documentation for this class was generated from the following file: