Ubiquity 2.5.2
php rapid development framework
Loading...
Searching...
No Matches
JsonApiRestController.php
Go to the documentation of this file.
1<?php
2
7
8
14
26 const API_VERSION = 'JsonAPI 1.0';
27
32 protected function getRestServer(): RestServer {
33 return new JsonApiRestServer ( $this->config );
34 }
35
36 protected function getRequestFormatter(): RequestFormatter {
37 return new JsonApiRequestFormatter();
38 }
39
45 public static function _getApiVersion() {
46 return self::API_VERSION;
47 }
48
54 public static function _getTemplateFile() {
55 return 'restApiController.tpl';
56 }
57}
58
Abstract base class for Rest controllers.
static _getTemplateFile()
Returns the template for creating this type of controller.
getRequestFormatter()
To override, returns the active formatter for the request.
Ubiquity\controllers\rest\formatters$JsonApiRequestFormatter This class is part of Ubiquity.
Ubiquity\controllers\rest\formatters$RequestFormatter This class is part of Ubiquity.