]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - doc/md/Link-structure.md
Merge pull request #687 from ArthurHoaro/web-thumb
[github/shaarli/Shaarli.git] / doc / md / Link-structure.md
diff --git a/doc/md/Link-structure.md b/doc/md/Link-structure.md
new file mode 100644 (file)
index 0000000..0a2d0f8
--- /dev/null
@@ -0,0 +1,18 @@
+## Link structure
+
+Every link available through the `LinkDB` object is represented as an array 
+containing the following fields:
+
+  * `id` (integer): Unique identifier.
+  * `title` (string): Title of the link.
+  * `url` (string): URL of the link. Used for displayable links (without redirector, url encoding, etc.).  
+           Can be absolute or relative for Notes.
+  * `real_url` (string): Real destination URL, can be redirected, encoded, etc.
+  * `shorturl` (string): Permalink small hash.
+  * `description` (string): Link text description.
+  * `private` (boolean): whether the link is private or not.
+  * `tags` (string): all link tags separated by a single space
+  * `thumbnail` (string|boolean): relative path of the thumbnail cache file, or false if there isn't any.
+  * `created` (DateTime): link creation date time.
+  * `updated` (DateTime): last modification date time.
+  
\ No newline at end of file