Meta data rest endpoint
This commit is contained in:
23
core/src/Metadata/Rest/MetadataRestEndPoint.php
Normal file
23
core/src/Metadata/Rest/MetadataRestEndPoint.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
namespace Metadata\Rest;
|
||||
|
||||
use Classes\Data\Query\DataQuery;
|
||||
use Classes\RestEndPoint;
|
||||
use Users\Common\Model\User;
|
||||
|
||||
class MetadataRestEndPoint extends RestEndPoint
|
||||
{
|
||||
public function getCurrency(User $user)
|
||||
{
|
||||
$query = new DataQuery('CurrencyType');
|
||||
$query->setLength(500);
|
||||
return $this->listByQuery($query);
|
||||
}
|
||||
|
||||
public function getCountries(User $user)
|
||||
{
|
||||
$query = new DataQuery('Country');
|
||||
$query->setLength(500);
|
||||
return $this->listByQuery($query);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user