Added API endpoints for more data structures

This commit is contained in:
Jan Böhmer 2023-09-03 17:15:18 +02:00
parent 9bd1b86f6e
commit e04b635c98
8 changed files with 233 additions and 18 deletions

View file

@ -82,6 +82,9 @@ abstract class AbstractCompany extends AbstractPartsContainingDBElement
#[ORM\Column(type: Types::STRING)]
protected string $website = '';
#[Groups(['company:read', 'company:write'])]
protected string $comment = '';
/**
* @var string
*/

View file

@ -75,7 +75,7 @@ abstract class AbstractStructuralDBElement extends AttachmentContainingDBElement
final public const PATH_DELIMITER_ARROW = ' → ';
/**
* @var string The comment info for this element
* @var string The comment info for this element as markdown
*/
#[Groups(['full', 'import'])]
#[ORM\Column(type: Types::TEXT)]
@ -221,7 +221,7 @@ abstract class AbstractStructuralDBElement extends AttachmentContainingDBElement
}
/**
* Get the comment of the element.
* Get the comment of the element as markdown encoded string.
*
* @return string the comment