Add database list endpoint, add more resource name magic
This commit is contained in:
parent
407120a854
commit
2bd691efad
36 changed files with 416 additions and 187 deletions
|
@ -14,6 +14,16 @@ class UserTransformer extends BaseTransformer
|
|||
*/
|
||||
protected $availableIncludes = ['servers'];
|
||||
|
||||
/**
|
||||
* Return the resource name for the JSONAPI output.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getResourceName(): string
|
||||
{
|
||||
return User::RESOURCE_NAME;
|
||||
}
|
||||
|
||||
/**
|
||||
* Return a generic transformed subuser array.
|
||||
*
|
||||
|
|
Reference in a new issue