mirror of
https://github.com/JanGross/quicknotes.git
synced 2025-12-01 07:37:18 +01:00
Rename some api parameters.
This commit is contained in:
@@ -15,7 +15,6 @@ class Note extends Entity implements JsonSerializable {
|
||||
protected $userId;
|
||||
protected $sharedWith = [];
|
||||
protected $sharedBy = [];
|
||||
protected $isShared;
|
||||
protected $tags;
|
||||
protected $attachts;
|
||||
|
||||
@@ -32,20 +31,17 @@ class Note extends Entity implements JsonSerializable {
|
||||
|
||||
public function jsonSerialize() {
|
||||
return [
|
||||
'id' => $this->id,
|
||||
'title' => $this->title,
|
||||
'content' => $this->content,
|
||||
'pinned' => $this->pinned,
|
||||
'ispinned' => $this->isPinned,
|
||||
'timestamp' => $this->timestamp,
|
||||
'colorid' => $this->colorId,
|
||||
'color' => $this->color,
|
||||
'userid' => $this->userId,
|
||||
'shared_with' => $this->sharedWith,
|
||||
'shared_by' => $this->sharedBy,
|
||||
'is_shared' => $this->isShared,
|
||||
'tags' => $this->tags,
|
||||
'attachts' => $this->attachts
|
||||
'id' => $this->id,
|
||||
'title' => $this->title,
|
||||
'content' => $this->content,
|
||||
'pinned' => $this->pinned,
|
||||
'isPinned' => $this->isPinned,
|
||||
'timestamp' => $this->timestamp,
|
||||
'color' => $this->color,
|
||||
'sharedWith' => $this->sharedWith,
|
||||
'sharedBy' => $this->sharedBy,
|
||||
'tags' => $this->tags,
|
||||
'attachments' => $this->attachts
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user