API: Basic Objects
Property | Description | Type | Required | Nullable | Default |
---|---|---|---|---|---|
href | URL to the referenced resource (might be relative) | String | ✓ | ✓ | |
title | Representative label for the resource | String | |||
templated |
If true the
href
contains parts that need to be replaced by the client
|
Boolean | false | ||
method | The HTTP verb to use when requesting the resource | String | GET | ||
payload | The payload to send in the request to achieve the desired result | String | unspecified | ||
identifier | An optional unique identifier to the link object | String | unspecified |
Property | Description | Type | Example | Supported operations |
---|---|---|---|---|
format | Indicates the formatting language of the raw text | String | markdown | READ |
raw | The raw text, as entered by the user | String |
I **am** formatted!
|
READ / WRITE |
html | The text converted to HTML according to the format | String |
I <strong>am</strong> formatted!
|
READ |
format
can as of today have one of the following values:
-
plain
- only basic formatting, e.g. inserting paragraphs and line breaks into HTML -
markdown
- formatting using Markdown -
custom
- There is no apparent formatting rule that transforms the raw version to HTML (only used for read only properties)
Note that
raw
is the only property supporting the
write
operation. A property of type
Formattable
that is marked as
read and write
, will only accept changes to the
raw
property. Changes to
format
and
html
will be
silently ignored
. It is thus sufficient to solely provide the
raw
property for changes.
If the
Formattable
is marked as
read only
, the
raw
attribute also becomes
read only
.
ISO 8601 . In this specification the following terms will be used as type specifiers (e.g. in tables):
-
Date
- refers to an ISO 8601 date, e.g. “2014-05-21” -
DateTime
- refers to an ISO 8601 combined date and time, optionally with milliseconds, e.g. “2014-05-21T13:37:00Z” or “2014-05-21T13:37:00.396Z” -
Duration
- refers to an ISO 8601 duration, e.g. “P1DT18H” -
Timestamp
- refers to an ISO 8601 combined date and time, e.g. “2014-05-21T13:37:00Z” or to an ISO 8601 duration, e.g. “P1DT18H”. The following shorthand values are also being parsed as duration: “1d”, “1w”, “1m”, “1y”, “1y-2m”, “-2y”. It can also refer the following relative date keywords:"oneDayAgo@HH:MM+HH:MM", "lastWorkingDay@HH:MM+HH:MM", "oneWeekAgo@HH:MM+HH:MM", "oneMonthAgo@HH:MM+HH:MM"
. The"HH:MM"
part represents the zero padded hours and minutes, e.g."oneMonthAgo@21:00+00:00"
. The last “+HH:MM” part represents the timezone offset from UTC associated with the time, e.g."oneMonthAgo@21:00+02:00"
means a +2 hour timezone offset from UTC. The offset can be positive or negative e.g.“oneDayAgo@01:00+01:00”, “oneDayAgo@01:00-01:00”. Values older than 1 day are accepted only with valid Enterprise Token available.
CSS Color Module Level 3
. That is a
#
followed by either three or six hexadecimal digits.