Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Repo\RestApi\RouteHandlers\GetPropertyRouteHandler Class Reference
+ Inheritance diagram for Wikibase\Repo\RestApi\RouteHandlers\GetPropertyRouteHandler:
+ Collaboration diagram for Wikibase\Repo\RestApi\RouteHandlers\GetPropertyRouteHandler:

Public Member Functions

 __construct (GetProperty $useCase, PropertyPartsSerializer $propertyPartsSerializer, MiddlewareHandler $middlewareHandler, ResponseFactory $responseFactory)
 
 run (... $args)
 
 runUseCase (string $propertyId)
 
 getParamSettings ()
 
 needsWriteAccess ()
 
 checkPreconditions ()
 Preconditions are checked via PreconditionMiddleware.
 

Static Public Member Functions

static factory ()
 

Public Attributes

const ROUTE = '/wikibase/v1/entities/properties/{property_id}'
 
const PROPERTY_ID_PATH_PARAM = 'property_id'
 

Private Member Functions

 newSuccessHttpResponse (GetPropertyResponse $useCaseResponse)
 
 setEtagFromRevId (Response $response, int $revId)
 

Private Attributes

const FIELDS_QUERY_PARAM = '_fields'
 
GetProperty $useCase
 
PropertyPartsSerializer $propertyPartsSerializer
 
MiddlewareHandler $middlewareHandler
 
ResponseFactory $responseFactory
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\RestApi\RouteHandlers\GetPropertyRouteHandler::__construct ( GetProperty $useCase,
PropertyPartsSerializer $propertyPartsSerializer,
MiddlewareHandler $middlewareHandler,
ResponseFactory $responseFactory )

Member Function Documentation

◆ checkPreconditions()

Wikibase\Repo\RestApi\RouteHandlers\GetPropertyRouteHandler::checkPreconditions ( )

Preconditions are checked via PreconditionMiddleware.

◆ factory()

static Wikibase\Repo\RestApi\RouteHandlers\GetPropertyRouteHandler::factory ( )
static

◆ getParamSettings()

Wikibase\Repo\RestApi\RouteHandlers\GetPropertyRouteHandler::getParamSettings ( )

◆ needsWriteAccess()

Wikibase\Repo\RestApi\RouteHandlers\GetPropertyRouteHandler::needsWriteAccess ( )

◆ newSuccessHttpResponse()

Wikibase\Repo\RestApi\RouteHandlers\GetPropertyRouteHandler::newSuccessHttpResponse ( GetPropertyResponse $useCaseResponse)
private

◆ run()

Wikibase\Repo\RestApi\RouteHandlers\GetPropertyRouteHandler::run ( $args)
Parameters
mixed...$args

◆ runUseCase()

Wikibase\Repo\RestApi\RouteHandlers\GetPropertyRouteHandler::runUseCase ( string $propertyId)

◆ setEtagFromRevId()

Wikibase\Repo\RestApi\RouteHandlers\GetPropertyRouteHandler::setEtagFromRevId ( Response $response,
int $revId )
private

Member Data Documentation

◆ $middlewareHandler

MiddlewareHandler Wikibase\Repo\RestApi\RouteHandlers\GetPropertyRouteHandler::$middlewareHandler
private

◆ $propertyPartsSerializer

PropertyPartsSerializer Wikibase\Repo\RestApi\RouteHandlers\GetPropertyRouteHandler::$propertyPartsSerializer
private

◆ $responseFactory

ResponseFactory Wikibase\Repo\RestApi\RouteHandlers\GetPropertyRouteHandler::$responseFactory
private

◆ $useCase

GetProperty Wikibase\Repo\RestApi\RouteHandlers\GetPropertyRouteHandler::$useCase
private

◆ FIELDS_QUERY_PARAM

const Wikibase\Repo\RestApi\RouteHandlers\GetPropertyRouteHandler::FIELDS_QUERY_PARAM = '_fields'
private

◆ PROPERTY_ID_PATH_PARAM

const Wikibase\Repo\RestApi\RouteHandlers\GetPropertyRouteHandler::PROPERTY_ID_PATH_PARAM = 'property_id'

◆ ROUTE

const Wikibase\Repo\RestApi\RouteHandlers\GetPropertyRouteHandler::ROUTE = '/wikibase/v1/entities/properties/{property_id}'

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