The API uses
type for Database and app for Space. See Terminology.Select rich text Field
Take a look how rich text Fields work in Fibery, if you haven’t yet. To select a rich text Field we should:- Get
fibery/secretof the corresponding collaborative document. - Get the document via
api/documentsendpoint using thisfibery/secret.
- Markdown (
md) — default - HTML (
html) - JSON of a particular structure (
json) - Plain-text (
plain-text)
Cricket/Player Database used as an example
Get the related collaborative document’s
fibery/secret:
Update rich text Field
To update a rich text Field we should:- Get
fibery/secretof the corresponding collaborative document. - Update the document via
api/documentsendpoint using thisfibery/secret.
- Markdown (md) — default
- HTML (html)
- JSON of a particular structure (json)
Cricket/Player Database used as an example
Get collaborative document’s
fibery/secret:
Add comment
Once you install the Comments extension on a Database, you are free to add comments to the Database’s Entities – both via UI and API. Comments are assembled from pre-existing basic building blocks:- Comment (
comments/comment) is a Database with Fields like Author (fibery/created-by) and Creation Date (fibery/creation-date). - The
Commentsextension connects a parent Database with the Comment Database via a one-to-many relation. - Each individual comment is an Entity of the Comment Database.
- The content of a comment is stored in a collaborative document just like rich-text Fields.
- Create an Entity of the Comment Database.
- Connect this comment to a proper parent Entity.
- Set the comment’s content.
