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:
parent
ab378ea223
commit
789a05c4c1
6 changed files with 95 additions and 5 deletions
|
@ -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,
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue