mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-30 05:24:28 +02:00
Added API endpoints for more data structures
This commit is contained in:
parent
9bd1b86f6e
commit
e04b635c98
8 changed files with 233 additions and 18 deletions
|
@ -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
|
||||
*/
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue