- Lean's API WIP on forms and ApiRenderer
This commit is contained in:
1 parent
3ce356e1f2
commit
4d7053a9cb
30 files changed
+1003
-56
No files matched your search
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
namespace Lean\Api\Lib;
|
||||
|
||||
use Ulmus\Entity\EntityInterface;
|
||||
use Ulmus\EntityCollection;
|
||||
use Ulmus\SearchRequest\SearchRequestInterface;
|
||||
|
||||
interface ApiSearchRequestInterface
|
||||
{
|
||||
public function getSearch() : SearchRequestInterface;
|
||||
public function getResult() : EntityCollection|EntityInterface;
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
namespace Lean\Api\Lib;
|
||||
|
||||
use Notes\Route\Attribute\Object\Route;
|
||||
|
||||
#[Route(method: ['GET', 'POST', ])]
|
||||
trait ControllerTrait
|
||||
{
|
||||
use \Lean\ControllerTrait, \Lean\Api\LeanApiTrait {
|
||||
\Lean\Api\LeanApiTrait::renderMarkdown insteadof \Lean\ControllerTrait;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
<?php
|
||||
|
||||
namespace Lean\Api\Lib;
|
||||
|
||||
class FormContext extends \Picea\Ui\Method\FormContext { }
|
||||
Reference in new issue
Block a user