Rename some api parameters.

This commit is contained in:
Matias De lellis
2020-09-19 11:56:54 -03:00
parent 119b90da42
commit 3807b83796
4 changed files with 21 additions and 28 deletions

View File

@@ -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
];
}
}