194 lines
No EOL
5.4 KiB
HTML
194 lines
No EOL
5.4 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head><meta content="width=device-width, initial-scale=1.0" name="viewport" />
|
|
<title>Post Types · Tent - the decentralized social web</title>
|
|
<link href="/assets/css/bootstrap-cb0b9b6b1fd.css" media="screen" rel="stylesheet" type="text/css" />
|
|
<link href="/assets/css/bootstrap-responsive-cb034fa29d4.css" media="screen" rel="stylesheet" type="text/css" />
|
|
<link href="/assets/css/style-cba5092b759.css" media="screen" rel="stylesheet" type="text/css" />
|
|
<link href="/blog.xml" rel="alternate" title="Atom feed" type="application/atom+xml" />
|
|
<script type="text/javascript">var _gaq = _gaq || [];
|
|
_gaq.push(['_setAccount', 'UA-34258323-1']);
|
|
_gaq.push(['_setSiteSpeedSampleRate', 50]);
|
|
_gaq.push(['_trackPageview']);
|
|
(function() {
|
|
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
|
|
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
|
|
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
|
|
})();</script></head>
|
|
<body><div class="navbar navbar-static-top">
|
|
<div class="navbar-inner">
|
|
<a class="brand" href="/">Tent</a>
|
|
<ul class="nav"><li ><a href="/blog">Blog</a></li><li class="active"><a href="/docs">Docs</a></li></ul>
|
|
</div>
|
|
</div><div class="container doc">
|
|
<div class="row">
|
|
<div class="span2">
|
|
<ul class="nav nav-list well">
|
|
<li class="nav-header">Tent</li>
|
|
<li><li ><a href="/docs">Protocol Introduction</a></li></li>
|
|
<li><li ><a href="/docs/server-protocol">Server Protocol</a></li></li>
|
|
<li><li ><a href="/docs/app-auth">App Authentication</a></li></li>
|
|
<li><li ><a href="/docs/app-server">Server API for Apps</a></li></li>
|
|
<li class="nav-header">Types</li>
|
|
<li><li class="active"><a href="/docs/post-types">Post Types</a></li></li>
|
|
<li><li ><a href="/docs/info-types">Profile Info Types</a></li></li>
|
|
</ul>
|
|
</div>
|
|
<div class="span8">
|
|
<div class="alert alert-block">
|
|
<h4>Alpha Documentation </h4>
|
|
<p>These docs are very rough, incorrect, and incomplete. They will be modified heavily over the next few weeks.</p>
|
|
<p>Please contribute by making Pull Requests and Issues on the <a href="https://github.com/tent/tent.io">GitHub repository</a>.</p>
|
|
</div><h2>Post Types</h2>
|
|
|
|
<h3>Status</h3>
|
|
|
|
<p><code>https://tent.io/types/post/status/v0.1.0</code></p>
|
|
<table class="table table-striped table-bordered">
|
|
<thead >
|
|
<tr>
|
|
<th>Property</th>
|
|
<th>Required</th>
|
|
<th>Type</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody >
|
|
<tr>
|
|
<td><code>text</code></td>
|
|
<td>Optional</td>
|
|
<td>String</td>
|
|
<td>The status text.</td>
|
|
</tr>
|
|
<tr>
|
|
<td><code>location</code></td>
|
|
<td>Optional</td>
|
|
<td>Object</td>
|
|
<td>The GeoJSON Point from which the post originated.</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
|
|
<h3>Essay</h3>
|
|
|
|
<p><code>https://tent.io/types/post/essay/v0.1.0</code></p>
|
|
<table class="table table-striped table-bordered">
|
|
<thead >
|
|
<tr>
|
|
<th>Property</th>
|
|
<th>Required</th>
|
|
<th>Type</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody >
|
|
<tr>
|
|
<td><code>title</code></td>
|
|
<td>Optional</td>
|
|
<td>String</td>
|
|
<td>The title of the post.</td>
|
|
</tr>
|
|
<tr>
|
|
<td><code>excerpt</code></td>
|
|
<td>Optional</td>
|
|
<td>String</td>
|
|
<td>An excerpt of the post in HTML format to be displayed when the whole post is not available.</td>
|
|
</tr>
|
|
<tr>
|
|
<td><code>body</code></td>
|
|
<td>Required</td>
|
|
<td>String</td>
|
|
<td>The body of the post in HTML format. Renderers may sanitize some HTML.</td>
|
|
</tr>
|
|
<tr>
|
|
<td><code>tags</code></td>
|
|
<td>Optional</td>
|
|
<td>Array</td>
|
|
<td>Tags that describe the post.</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
|
|
<h3>Photo</h3>
|
|
|
|
<p><code>https://tent.io/types/post/album/v0.1.0</code></p>
|
|
<table class="table table-striped table-bordered">
|
|
<thead >
|
|
<tr>
|
|
<th>Property</th>
|
|
<th>Required</th>
|
|
<th>Type</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody >
|
|
<tr>
|
|
<td><code>caption</code></td>
|
|
<td>Optional</td>
|
|
<td>String</td>
|
|
<td>A caption that describes the photo.</td>
|
|
</tr>
|
|
<tr>
|
|
<td><code>albums</code></td>
|
|
<td>Optional</td>
|
|
<td>Array</td>
|
|
<td>A list of the Post IDs of albums that this photo belongs to.</td>
|
|
</tr>
|
|
<tr>
|
|
<td><code>tags</code></td>
|
|
<td>Optional</td>
|
|
<td>Array</td>
|
|
<td>A list of tags that describe this photo.</td>
|
|
</tr>
|
|
<tr>
|
|
<td><code>exif</code></td>
|
|
<td>Optional</td>
|
|
<td>Object</td>
|
|
<td>The EXIF data that describes the photo.</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
|
|
<h3>Album</h3>
|
|
|
|
<p><code>https://tent.io/types/post/album/v0.1.0</code></p>
|
|
<table class="table table-striped table-bordered">
|
|
<thead >
|
|
<tr>
|
|
<th>Property</th>
|
|
<th>Required</th>
|
|
<th>Type</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody >
|
|
<tr>
|
|
<td><code>title</code></td>
|
|
<td>Optional</td>
|
|
<td>String</td>
|
|
<td>The title of the album.</td>
|
|
</tr>
|
|
<tr>
|
|
<td><code>description</code></td>
|
|
<td>Optional</td>
|
|
<td>String</td>
|
|
<td>The description of the album.</td>
|
|
</tr>
|
|
<tr>
|
|
<td><code>photos</code></td>
|
|
<td>Required</td>
|
|
<td>Array</td>
|
|
<td>The list of Post IDs of photos that the album contains.</td>
|
|
</tr>
|
|
<tr>
|
|
<td><code>cover</code></td>
|
|
<td>Optional</td>
|
|
<td>String</td>
|
|
<td>The Post ID of a photo that should be used as the cover/display image for the album.</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div><footer>© 2012 Apollic Software, LLC</footer></body>
|
|
</html> |