1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-11-06 00:50:36 +03:00

API: Added comment-read endpoint, added api docs section descriptions

This commit is contained in:
Dan Brown
2025-10-22 18:44:49 +01:00
parent 082dbc9944
commit 3ad1e31fcc
6 changed files with 67 additions and 12 deletions

View File

@@ -16,7 +16,6 @@ use Illuminate\Database\Eloquent\Relations\MorphTo;
/**
* @property int $id
* @property string $text - Deprecated & now unused (#4821)
* @property string $html
* @property int|null $parent_id - Relates to local_id, not id
* @property int $local_id
@@ -31,6 +30,11 @@ class Comment extends Model implements Loggable, OwnableInterface
use HasCreatorAndUpdater;
protected $fillable = ['parent_id'];
protected $hidden = ['html'];
protected $casts = [
'archived' => 'boolean',
];
/**
* Get the entity that this comment belongs to.