- Lean's API WIP on forms and ApiRenderer

This commit is contained in:
Dave Mc Nicoll committed 2025-05-21 18:36:19 +00:00
1 parent 3ce356e1f2
commit 4d7053a9cb
30 files changed
+1003 -56

No files matched your search

+13
View File
@@ -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;
}
+13
View File
@@ -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;
}
}
+5
View File
@@ -0,0 +1,5 @@
<?php
namespace Lean\Api\Lib;
class FormContext extends \Picea\Ui\Method\FormContext { }