0
0
Fork 0
mirror of https://github.com/verdigado/organization_folders.git synced 2024-12-06 11:22:41 +01:00

added subresources api endpoint

This commit is contained in:
Jonathan Treffler 2024-11-25 15:28:40 +01:00
parent ab378ea223
commit 789a05c4c1
6 changed files with 95 additions and 5 deletions

View file

@ -24,4 +24,14 @@ abstract class Resource extends Entity implements JsonSerializable, TableSeriali
}
abstract public function getType(): string;
public function limitedJsonSerialize(): array {
return [
'id' => $this->id,
'parentResource' => $this->parentResource,
'organizationFolderId' => $this->organizationFolderId,
'type' => $this->getType(),
'name' => $this->name,
];
}
}