tent.io/content/docs/api_examples.yaml
2012-10-13 18:12:18 -04:00

409 lines
32 KiB
YAML

---
:examples:
:get_profile: ! "\n```text\nGET /profile HTTP/1.1\nAccept: application/vnd.tent.v0+json\n```\n\n```text\nHTTP/1.1
200 OK\nContent-Type: application/vnd.tent.v0+json\nETag: \"d0c434ca68101cf5617fd8fa3793805e\"\nCache-Control:
max-age=0, private, must-revalidate\nContent-Length: 507\n```\n\n```json\n{\n
\ \"https://tent.io/types/info/basic/v0.1.0\": {\n \"name\": \"The Tentity\",\n
\ \"avatar_url\": \"http://example.org/avatar.jpg\",\n \"birthdate\": \"2012-08-23\",\n
\ \"location\": \"The Internet\",\n \"gender\": \"Unknown\",\n \"bio\":
\"Corporis soluta tenetur quo ratione est perferendis.\",\n \"permissions\":
{\n \"public\": true\n }\n },\n \"https://tent.io/types/info/core/v0.1.0\":
{\n \"licenses\": [\n \"http://creativecommons.org/licenses/by/3.0/\"\n
\ ],\n \"entity\": \"https://example.org\",\n \"servers\": [\n \"https://tent.example.com\",\n
\ \"http://eqt5g4fuenphqinx.onion/\"\n ],\n \"permissions\": {\n \"public\":
true\n }\n }\n}\n```\n"
:create_app: ! "\n```text\nPOST /apps HTTP/1.1\nContent-Type: application/vnd.tent.v0+json\nAccept:
application/vnd.tent.v0+json\n```\n\n```json\n{\n \"name\": \"FooApp\",\n \"description\":
\"Does amazing foos with your data\",\n \"url\": \"http://example.com\",\n \"icon\":
\"http://example.com/icon.png\",\n \"redirect_uris\": [\n \"https://app.example.com/tent/callback\"\n
\ ],\n \"scopes\": {\n \"write_profile\": \"Uses an app profile section to
describe foos\",\n \"read_followings\": \"Calculates foos based on your followings\"\n
\ }\n}\n```\n\n```text\nHTTP/1.1 200 OK\nContent-Type: application/vnd.tent.v0+json\nETag:
\"f03be14e84bd4cb1942275697b434905\"\nCache-Control: max-age=0, private, must-revalidate\nContent-Length:
459\n```\n\n```json\n{\n \"name\": \"FooApp\",\n \"description\": \"Does amazing
foos with your data\",\n \"url\": \"http://example.com\",\n \"icon\": \"http://example.com/icon.png\",\n
\ \"redirect_uris\": [\n \"https://app.example.com/tent/callback\"\n ],\n
\ \"scopes\": {\n \"write_profile\": \"Uses an app profile section to describe
foos\",\n \"read_followings\": \"Calculates foos based on your followings\"\n
\ },\n \"id\": \"mukhq0\",\n \"mac_key_id\": \"a:18471add\",\n \"mac_key\":
\"279c23b1f6f341d0394f605beeee7c61\",\n \"mac_algorithm\": \"hmac-sha-256\",\n
\ \"authorizations\": [\n\n ]\n}\n```\n"
:app_auth: ! "\n```text\nPOST /apps/mukhq0/authorizations HTTP/1.1\nContent-Type:
application/vnd.tent.v0+json\nAccept: application/vnd.tent.v0+json\nAuthorization:
MAC id=\"a:18471add\", ts=\"1350166212\", nonce=\"88d978\", mac=\"iHWsA5yP8FCoun6k67qibQuL5gkw8rvXsegVNyYI2kQ=\"\n```\n\n```json\n{\n
\ \"code\": \"390b90206ebee7e043ed164717ac92b6\",\n \"token_type\": \"mac\"\n}\n```\n\n```text\nHTTP/1.1
200 OK\nContent-Type: application/vnd.tent.v0+json\nETag: \"b7c1f34450e92a943af31b8f6a1676eb\"\nCache-Control:
max-age=0, private, must-revalidate\nContent-Length: 124\n```\n\n```json\n{\n
\ \"access_token\": \"u:480b0078\",\n \"mac_key\": \"c28632aaf522bcb31accf03dfdb11a0c\",\n
\ \"mac_algorithm\": \"hmac-sha-256\",\n \"token_type\": \"mac\"\n}\n```\n"
:get_app: ! "\n```text\nGET /apps/mukhq0 HTTP/1.1\nAccept: application/vnd.tent.v0+json\nAuthorization:
MAC id=\"a:18471add\", ts=\"1350166212\", nonce=\"c582c0\", mac=\"KUld7qbS7qiDSaAGVCKZ/2W56cN123QN4x12EWpNz8w=\"\n```\n\n```text\nHTTP/1.1
200 OK\nContent-Type: application/vnd.tent.v0+json\nETag: \"464c3a93085f90c3caa98818605f3af2\"\nCache-Control:
max-age=0, private, must-revalidate\nContent-Length: 853\n```\n\n```json\n{\n
\ \"name\": \"FooApp\",\n \"description\": \"Does amazing foos with your data\",\n
\ \"url\": \"http://example.com\",\n \"icon\": \"http://example.com/icon.png\",\n
\ \"redirect_uris\": [\n \"https://app.example.com/tent/callback\"\n ],\n
\ \"scopes\": {\n \"write_profile\": \"Uses an app profile section to describe
foos\",\n \"read_followings\": \"Calculates foos based on your followings\"\n
\ },\n \"id\": \"mukhq0\",\n \"authorizations\": [\n {\n \"post_types\":
[\n \"https://tent.io/types/post/status/v0.1.0\",\n \"https://tent.io/types/post/photo/v0.1.0\"\n
\ ],\n \"profile_info_types\": [\n \"https://tent.io/types/info/basic/v0.1.0\"\n
\ ],\n \"scopes\": [\n \"read_posts\",\n \"write_posts\",\n
\ \"import_posts\",\n \"read_profile\",\n \"write_profile\",\n
\ \"read_followers\",\n \"write_followers\",\n \"read_followings\",\n
\ \"write_followings\",\n \"read_groups\",\n \"write_groups\",\n
\ \"read_permissions\",\n \"write_permissions\",\n \"read_apps\",\n
\ \"write_apps\",\n \"follow_ui\",\n \"read_secrets\",\n \"write_secrets\"\n
\ ],\n \"notification_url\": null,\n \"id\": \"2q6zmd\"\n }\n
\ ]\n}\n```\n"
:update_app: ! "\n```text\nPUT /apps/mukhq0 HTTP/1.1\nContent-Type: application/vnd.tent.v0+json\nAccept:
application/vnd.tent.v0+json\nAuthorization: MAC id=\"a:18471add\", ts=\"1350166212\",
nonce=\"8ec7d1\", mac=\"wCqqFfdPD72tzkGFW350qq2H0VKS1VsF8vRYRiwtCtg=\"\n```\n\n```json\n{\n
\ \"name\": \"FooApp\",\n \"description\": \"Does amazing foos with your data\",\n
\ \"url\": \"http://example.com\",\n \"icon\": \"http://example.org/icon.png\",\n
\ \"redirect_uris\": [\n \"https://app.example.com/tent/callback\"\n ],\n
\ \"scopes\": {\n \"write_profile\": \"Uses an app profile section to describe
foos\",\n \"read_followings\": \"Calculates foos based on your followings\"\n
\ }\n}\n```\n\n```text\nHTTP/1.1 200 OK\nContent-Type: application/vnd.tent.v0+json\nETag:
\"4d3250c6d2304396c424f3bfb243c3fd\"\nCache-Control: max-age=0, private, must-revalidate\nContent-Length:
853\n```\n\n```json\n{\n \"name\": \"FooApp\",\n \"description\": \"Does amazing
foos with your data\",\n \"url\": \"http://example.com\",\n \"icon\": \"http://example.org/icon.png\",\n
\ \"redirect_uris\": [\n \"https://app.example.com/tent/callback\"\n ],\n
\ \"scopes\": {\n \"write_profile\": \"Uses an app profile section to describe
foos\",\n \"read_followings\": \"Calculates foos based on your followings\"\n
\ },\n \"id\": \"mukhq0\",\n \"authorizations\": [\n {\n \"post_types\":
[\n \"https://tent.io/types/post/status/v0.1.0\",\n \"https://tent.io/types/post/photo/v0.1.0\"\n
\ ],\n \"profile_info_types\": [\n \"https://tent.io/types/info/basic/v0.1.0\"\n
\ ],\n \"scopes\": [\n \"read_posts\",\n \"write_posts\",\n
\ \"import_posts\",\n \"read_profile\",\n \"write_profile\",\n
\ \"read_followers\",\n \"write_followers\",\n \"read_followings\",\n
\ \"write_followings\",\n \"read_groups\",\n \"write_groups\",\n
\ \"read_permissions\",\n \"write_permissions\",\n \"read_apps\",\n
\ \"write_apps\",\n \"follow_ui\",\n \"read_secrets\",\n \"write_secrets\"\n
\ ],\n \"notification_url\": null,\n \"id\": \"2q6zmd\"\n }\n
\ ]\n}\n```\n"
:discovery: ! '
```text
HEAD / HTTP/1.1
Accept: application/vnd.tent.v0+json
```
```text
HTTP/1.1 200 OK
Content-Type: text/html
Link: </profile>; rel="https://tent.io/rels/profile"
ETag: "7c7edb2326658aaf7fff9e784d8f971d"
Cache-Control: max-age=0, private, must-revalidate
```
'
:update_profile: ! "\n```text\nPUT /profile/https%3A%2F%2Ftent.io%2Ftypes%2Finfo%2Fbasic%2Fv0.1.0
HTTP/1.1\nContent-Type: application/vnd.tent.v0+json\nAccept: application/vnd.tent.v0+json\nAuthorization:
MAC id=\"u:480b0078\", ts=\"1350166212\", nonce=\"ef24d5\", mac=\"qMYPYRh/oUbmLkKOnt8UlXkitxPfQ+5E9XPtwFvTTG4=\"\n```\n\n```json\n{\n
\ \"name\": \"The Tentity\",\n \"avatar_url\": \"http://example.org/avatar.jpg\",\n
\ \"birthdate\": \"2012-08-23\",\n \"location\": \"The Internet\",\n \"gender\":
\"Unknown\",\n \"bio\": \"Non commodi aut deleniti reiciendis dolor aliquid pariatur
et.\"\n}\n```\n\n```text\nHTTP/1.1 200 OK\nContent-Type: application/vnd.tent.v0+json\nETag:
\"91034deecfd5c3fe900455cd56d9b0ab\"\nCache-Control: max-age=0, private, must-revalidate\nContent-Length:
569\n```\n\n```json\n{\n \"https://tent.io/types/info/core/v0.1.0\": {\n \"licenses\":
[\n \"http://creativecommons.org/licenses/by/3.0/\"\n ],\n \"entity\":
\"https://example.org\",\n \"servers\": [\n \"https://tent.example.com\",\n
\ \"http://eqt5g4fuenphqinx.onion/\"\n ],\n \"permissions\": {\n \"groups\":
[\n\n ],\n \"entities\": {\n },\n \"public\": true\n }\n
\ },\n \"https://tent.io/types/info/basic/v0.1.0\": {\n \"name\": \"The Tentity\",\n
\ \"avatar_url\": \"http://example.org/avatar.jpg\",\n \"birthdate\": \"2012-08-23\",\n
\ \"location\": \"The Internet\",\n \"gender\": \"Unknown\",\n \"bio\":
\"Non commodi aut deleniti reiciendis dolor aliquid pariatur et.\",\n \"permissions\":
{\n \"groups\": [\n\n ],\n \"entities\": {\n },\n \"public\":
true\n }\n }\n}\n```\n"
:create_post: ! "\n```text\nPOST /posts HTTP/1.1\nContent-Type: application/vnd.tent.v0+json\nAccept:
application/vnd.tent.v0+json\nAuthorization: MAC id=\"u:480b0078\", ts=\"1350166212\",
nonce=\"a8a1e2\", mac=\"h5ipFF83BuCG3Pauw8IoD7of9n7trx/M4G6yQ4nd/O4=\"\n```\n\n```json\n{\n
\ \"type\": \"https://tent.io/types/post/status/v0.1.0\",\n \"published_at\":
1350166212,\n \"permissions\": {\n \"public\": true\n },\n \"licenses\":
[\n \"http://creativecommons.org/licenses/by/3.0/\"\n ],\n \"content\": {\n
\ \"text\": \"Just landed.\",\n \"location\": {\n \"type\": \"Point\",\n
\ \"coordinates\": [\n 50.923878,\n 4.028605\n ]\n }\n
\ }\n}\n```\n\n```text\nHTTP/1.1 200 OK\nContent-Type: application/vnd.tent.v0+json\nETag:
\"2f199f9d3a81232634d644e1c0facd5d\"\nCache-Control: max-age=0, private, must-revalidate\nContent-Length:
477\n```\n\n```json\n{\n \"entity\": \"https://example.org\",\n \"licenses\":
[\n \"http://creativecommons.org/licenses/by/3.0/\"\n ],\n \"content\": {\n
\ \"text\": \"Just landed.\",\n \"location\": {\n \"type\": \"Point\",\n
\ \"coordinates\": [\n 50.923878,\n 4.028605\n ]\n }\n
\ },\n \"published_at\": 1350166212,\n \"permissions\": {\n \"groups\": [\n\n
\ ],\n \"entities\": {\n },\n \"public\": true\n },\n \"id\": \"kjyay9\",\n
\ \"updated_at\": 1350166212,\n \"received_at\": 1350166212,\n \"attachments\":
[\n\n ],\n \"type\": \"https://tent.io/types/post/status/v0.1.0\",\n \"version\":
1,\n \"app\": {\n \"url\": \"http://example.com\",\n \"name\": \"FooApp\"\n
\ },\n \"mentions\": [\n\n ]\n}\n```\n"
:create_post_with_attachments: ! "\n```text\nPOST /posts HTTP/1.1\nContent-Type:
multipart/form-data;boundary=-----------TentAttachment\nAccept: application/vnd.tent.v0+json\nAuthorization:
MAC id=\"u:480b0078\", ts=\"1350166212\", nonce=\"898d18\", mac=\"h2GMb5ToLR1ed02L8SCEekdK2BH79I51m7YzDEUByPU=\"\n```\n\n```text\n-------------TentAttachment\r\nContent-Disposition:
form-data; name=\"post\"; filename=\"post.json\"\r\nContent-Length: 206\r\nContent-Type:
application/vnd.tent.v0+json\r\nContent-Transfer-Encoding: binary\r\n\r\n{\"type\":\"https://tent.io/types/post/photo/v0.1.0\",\"published_at\":1350166212,\"permissions\":{\"public\":true},\"licenses\":[\"http://creativecommons.org/licenses/by/3.0/\"],\"content\":{\"caption\":\"Some
fake photos\"}}\r\n-------------TentAttachment\r\nContent-Disposition: form-data;
name=\"photos[0]\"; filename=\"fake_photo1.jpg\"\r\nContent-Length: 26\r\nContent-Type:
image/jpeg\r\nContent-Transfer-Encoding: binary\r\n\r\nPhoto 1 data would go here\r\n-------------TentAttachment\r\nContent-Disposition:
form-data; name=\"photos[1]\"; filename=\"fake_photo2.jpg\"\r\nContent-Length:
26\r\nContent-Type: image/jpeg\r\nContent-Transfer-Encoding: binary\r\n\r\nPhoto
2 data would go here\r\n-------------TentAttachment--\r\n\r\n\n```\n\n```text\nHTTP/1.1
200 OK\nContent-Type: application/vnd.tent.v0+json\nETag: \"17ba74c4d050d3b710bd898d2f9a1e4b\"\nCache-Control:
max-age=0, private, must-revalidate\nContent-Length: 573\n```\n\n```json\n{\n
\ \"entity\": \"https://example.org\",\n \"licenses\": [\n \"http://creativecommons.org/licenses/by/3.0/\"\n
\ ],\n \"content\": {\n \"caption\": \"Some fake photos\"\n },\n \"published_at\":
1350166212,\n \"permissions\": {\n \"groups\": [\n\n ],\n \"entities\":
{\n },\n \"public\": true\n },\n \"id\": \"tebyhp\",\n \"updated_at\":
1350166212,\n \"received_at\": 1350166212,\n \"attachments\": [\n {\n \"type\":
\"image/jpeg\",\n \"category\": \"photos\",\n \"name\": \"fake_photo1.jpg\",\n
\ \"size\": 26\n },\n {\n \"type\": \"image/jpeg\",\n \"category\":
\"photos\",\n \"name\": \"fake_photo2.jpg\",\n \"size\": 26\n }\n
\ ],\n \"type\": \"https://tent.io/types/post/photo/v0.1.0\",\n \"version\":
1,\n \"app\": {\n \"url\": \"http://example.com\",\n \"name\": \"FooApp\"\n
\ },\n \"mentions\": [\n\n ]\n}\n```\n"
:get_post_attachment: ! '
```text
GET /posts/tebyhp/attachments/fake_photo2.jpg HTTP/1.1
Accept: image/jpeg
Authorization: MAC id="u:480b0078", ts="1350166212", nonce="326ea7", mac="Hip/44aXKLt648rXVlxy9GSCjVm7O2927u511WBn7Gs="
```
```text
HTTP/1.1 200 OK
Content-Type: image/jpeg
ETag: "ed958342ea1436bd5105e91119df2c95"
Cache-Control: max-age=0, private, must-revalidate
Content-Length: 26
```
```text
Photo 2 data would go here
```
'
:create_following: ! "\n```text\nPOST /followings HTTP/1.1\nContent-Type: application/vnd.tent.v0+json\nAccept:
application/vnd.tent.v0+json\nAuthorization: MAC id=\"u:480b0078\", ts=\"1350166212\",
nonce=\"b58d2d\", mac=\"AtHOOyPnmXQ6wlM8WTJC0Biy4nMNpCO0uTjKah3OSrM=\"\n```\n\n```json\n{\n
\ \"entity\": \"https://example.org\"\n}\n```\n\n```text\nHTTP/1.1 200 OK\nContent-Type:
application/vnd.tent.v0+json\nETag: \"8244193d2beb6014a01814f945794543\"\nCache-Control:
max-age=0, private, must-revalidate\nContent-Length: 725\n```\n\n```json\n{\n
\ \"remote_id\": \"4o3y4o\",\n \"entity\": \"https://example.org\",\n \"permissions\":
{\n \"groups\": [\n\n ],\n \"entities\": {\n },\n \"public\": true\n
\ },\n \"id\": \"pe0e6r\",\n \"created_at\": 1350166212,\n \"updated_at\":
1350166212,\n \"groups\": [\n\n ],\n \"profile\": {\n \"https://tent.io/types/info/basic/v0.1.0\":
{\n \"name\": \"The Tentity\",\n \"avatar_url\": \"http://example.org/avatar.jpg\",\n
\ \"birthdate\": \"2012-08-23\",\n \"location\": \"The Internet\",\n
\ \"gender\": \"Unknown\",\n \"bio\": \"Non commodi aut deleniti reiciendis
dolor aliquid pariatur et.\",\n \"permissions\": {\n \"public\": true\n
\ }\n },\n \"https://tent.io/types/info/core/v0.1.0\": {\n \"licenses\":
[\n \"http://creativecommons.org/licenses/by/3.0/\"\n ],\n \"entity\":
\"https://example.org\",\n \"servers\": [\n \"https://tent.example.com\",\n
\ \"http://eqt5g4fuenphqinx.onion/\"\n ],\n \"permissions\": {\n
\ \"public\": true\n }\n }\n },\n \"licenses\": [\n\n ]\n}\n```\n"
:get_followings: ! "\n```text\nGET /followings HTTP/1.1\nAccept: application/vnd.tent.v0+json\nAuthorization:
MAC id=\"u:480b0078\", ts=\"1350166212\", nonce=\"597d2d\", mac=\"lh/WAtJ/5UjzhD+3iS7BC3J5HrkBGJ8XBwD01eZB2cM=\"\n```\n\n```text\nHTTP/1.1
200 OK\nContent-Type: application/vnd.tent.v0+json\nETag: \"f5190f91f8b47a7265b8ee927f0310f3\"\nCache-Control:
max-age=0, private, must-revalidate\nContent-Length: 727\n```\n\n```json\n[\n
\ {\n \"remote_id\": \"4o3y4o\",\n \"entity\": \"https://example.org\",\n
\ \"permissions\": {\n \"groups\": [\n\n ],\n \"entities\": {\n
\ },\n \"public\": true\n },\n \"id\": \"pe0e6r\",\n \"created_at\":
1350166212,\n \"updated_at\": 1350166212,\n \"groups\": [\n\n ],\n \"profile\":
{\n \"https://tent.io/types/info/basic/v0.1.0\": {\n \"name\": \"The
Tentity\",\n \"avatar_url\": \"http://example.org/avatar.jpg\",\n \"birthdate\":
\"2012-08-23\",\n \"location\": \"The Internet\",\n \"gender\":
\"Unknown\",\n \"bio\": \"Non commodi aut deleniti reiciendis dolor aliquid
pariatur et.\",\n \"permissions\": {\n \"public\": true\n }\n
\ },\n \"https://tent.io/types/info/core/v0.1.0\": {\n \"licenses\":
[\n \"http://creativecommons.org/licenses/by/3.0/\"\n ],\n \"entity\":
\"https://example.org\",\n \"servers\": [\n \"https://tent.example.com\",\n
\ \"http://eqt5g4fuenphqinx.onion/\"\n ],\n \"permissions\":
{\n \"public\": true\n }\n }\n },\n \"licenses\": [\n\n
\ ]\n }\n]\n```\n"
:get_following: ! "\n```text\nGET /followings/pe0e6r HTTP/1.1\nAccept: application/vnd.tent.v0+json\nAuthorization:
MAC id=\"u:480b0078\", ts=\"1350166212\", nonce=\"2643cc\", mac=\"AFu8OanaCsQskxlLlcBFRRV4YdT8aD81rR/sFBQauHM=\"\n```\n\n```text\nHTTP/1.1
200 OK\nContent-Type: application/vnd.tent.v0+json\nETag: \"8244193d2beb6014a01814f945794543\"\nCache-Control:
max-age=0, private, must-revalidate\nContent-Length: 725\n```\n\n```json\n{\n
\ \"remote_id\": \"4o3y4o\",\n \"entity\": \"https://example.org\",\n \"permissions\":
{\n \"groups\": [\n\n ],\n \"entities\": {\n },\n \"public\": true\n
\ },\n \"id\": \"pe0e6r\",\n \"created_at\": 1350166212,\n \"updated_at\":
1350166212,\n \"groups\": [\n\n ],\n \"profile\": {\n \"https://tent.io/types/info/basic/v0.1.0\":
{\n \"name\": \"The Tentity\",\n \"avatar_url\": \"http://example.org/avatar.jpg\",\n
\ \"birthdate\": \"2012-08-23\",\n \"location\": \"The Internet\",\n
\ \"gender\": \"Unknown\",\n \"bio\": \"Non commodi aut deleniti reiciendis
dolor aliquid pariatur et.\",\n \"permissions\": {\n \"public\": true\n
\ }\n },\n \"https://tent.io/types/info/core/v0.1.0\": {\n \"licenses\":
[\n \"http://creativecommons.org/licenses/by/3.0/\"\n ],\n \"entity\":
\"https://example.org\",\n \"servers\": [\n \"https://tent.example.com\",\n
\ \"http://eqt5g4fuenphqinx.onion/\"\n ],\n \"permissions\": {\n
\ \"public\": true\n }\n }\n },\n \"licenses\": [\n\n ]\n}\n```\n"
:create_follower: ! "\n```text\nPOST /followers HTTP/1.1\nContent-Type: application/vnd.tent.v0+json\nAccept:
application/vnd.tent.v0+json\n```\n\n```json\n{\n \"entity\": \"https://example.org\",\n
\ \"types\": [\n \"all\"\n ],\n \"notification_path\": \"notifications/pe0e6r\",\n
\ \"licenses\": [\n \"http://creativecommons.org/licenses/by/3.0/\"\n ]\n}\n```\n\n```text\nHTTP/1.1
200 OK\nContent-Type: application/vnd.tent.v0+json\nETag: \"3d030fd97cbcdb9205ce8a0f48da84b0\"\nCache-Control:
max-age=0, private, must-revalidate\nContent-Length: 253\n```\n\n```json\n{\n
\ \"entity\": \"https://example.org\",\n \"permissions\": {\n \"public\":
true\n },\n \"id\": \"vqdc0y\",\n \"mac_key_id\": \"s:5758b054\",\n \"mac_key\":
\"c6d6fca906e7e958477c44d6afc15270\",\n \"mac_algorithm\": \"hmac-sha-256\",\n
\ \"licenses\": [\n \"http://creativecommons.org/licenses/by/3.0/\"\n ],\n
\ \"types\": [\n \"all\"\n ]\n}\n```\n"
:delete_following: ! "\n```text\nDELETE /followings/pe0e6r HTTP/1.1\nAccept: application/vnd.tent.v0+json\nAuthorization:
MAC id=\"u:480b0078\", ts=\"1350166212\", nonce=\"6fdd7a\", mac=\"XpiMm8dJ3I1vfUpVZDyr1ljJyxAhbaFHqBklaLogDAA=\"\n```\n\n```text\nHTTP/1.1
200 OK\nContent-Type: text/html\nCache-Control: \nContent-Length: 0\n```\n"
:get_follower: ! "\n```text\nGET /followers/vqdc0y HTTP/1.1\nAccept: application/vnd.tent.v0+json\nAuthorization:
MAC id=\"s:5758b054\", ts=\"1350166212\", nonce=\"22bed5\", mac=\"kjtQZEs6TsiiUPgWDvQ1UqCUxhsfowB/QLyvvLc/fgM=\"\n```\n\n```text\nHTTP/1.1
200 OK\nContent-Type: application/vnd.tent.v0+json\nETag: \"642f7e7dff0fba1459e12376584ebdbf\"\nCache-Control:
max-age=0, private, must-revalidate\nContent-Length: 151\n```\n\n```json\n{\n
\ \"entity\": \"https://example.org\",\n \"permissions\": {\n \"public\":
true\n },\n \"id\": \"vqdc0y\",\n \"licenses\": [\n \"http://creativecommons.org/licenses/by/3.0/\"\n
\ ],\n \"types\": [\n \"all\"\n ]\n}\n```\n"
:update_follower: ! "\n```text\nPUT /followers/vqdc0y HTTP/1.1\nContent-Type: application/vnd.tent.v0+json\nAccept:
application/vnd.tent.v0+json\nAuthorization: MAC id=\"s:5758b054\", ts=\"1350166212\",
nonce=\"afb2a5\", mac=\"pMWFCipFr/O/8Z0TG5WSskZfs3SSf6FpAxWIVPFvRLc=\"\n```\n\n```json\n{\n
\ \"entity\": \"https://example.org\",\n \"licenses\": [\n \"http://creativecommons.org/licenses/by/3.0/\"\n
\ ],\n \"types\": [\n \"https://tent.io/types/post/essay/v0.1.0#full\"\n ]\n}\n```\n\n```text\nHTTP/1.1
200 OK\nContent-Type: application/vnd.tent.v0+json\nETag: \"50beee57a6d33e326521faaf4174eb12\"\nCache-Control:
max-age=0, private, must-revalidate\nContent-Length: 192\n```\n\n```json\n{\n
\ \"entity\": \"https://example.org\",\n \"permissions\": {\n \"public\":
true\n },\n \"id\": \"vqdc0y\",\n \"licenses\": [\n \"http://creativecommons.org/licenses/by/3.0/\"\n
\ ],\n \"types\": [\n \"https://tent.io/types/post/essay/v0.1.0#full\"\n ]\n}\n```\n"
:get_followers: ! "\n```text\nGET /followers HTTP/1.1\nAccept: application/vnd.tent.v0+json\nAuthorization:
MAC id=\"u:480b0078\", ts=\"1350166212\", nonce=\"1a5b43\", mac=\"/qSomWw6BEKB3wIM1DiU9Z0fUtCUSY1mcs+nJPmZ/P8=\"\n```\n\n```text\nHTTP/1.1
200 OK\nContent-Type: application/vnd.tent.v0+json\nETag: \"2a5ec9f2b6774295dbf2b68747fb484e\"\nCache-Control:
max-age=0, private, must-revalidate\nContent-Length: 808\n```\n\n```json\n[\n
\ {\n \"entity\": \"https://example.org\",\n \"permissions\": {\n \"groups\":
[\n\n ],\n \"entities\": {\n },\n \"public\": true\n },\n
\ \"id\": \"vqdc0y\",\n \"created_at\": 1350166212,\n \"updated_at\":
1350166212,\n \"groups\": [\n\n ],\n \"profile\": {\n \"https://tent.io/types/info/basic/v0.1.0\":
{\n \"name\": \"The Tentity\",\n \"avatar_url\": \"http://example.org/avatar.jpg\",\n
\ \"birthdate\": \"2012-08-23\",\n \"location\": \"The Internet\",\n
\ \"gender\": \"Unknown\",\n \"bio\": \"Non commodi aut deleniti
reiciendis dolor aliquid pariatur et.\",\n \"permissions\": {\n \"public\":
true\n }\n },\n \"https://tent.io/types/info/core/v0.1.0\": {\n
\ \"licenses\": [\n \"http://creativecommons.org/licenses/by/3.0/\"\n
\ ],\n \"entity\": \"https://example.org\",\n \"servers\":
[\n \"https://tent.example.com\",\n \"http://eqt5g4fuenphqinx.onion/\"\n
\ ],\n \"permissions\": {\n \"public\": true\n }\n
\ }\n },\n \"licenses\": [\n \"http://creativecommons.org/licenses/by/3.0/\"\n
\ ],\n \"types\": [\n \"https://tent.io/types/post/essay/v0.1.0#full\"\n
\ ]\n }\n]\n```\n"
:get_posts: ! "\n```text\nGET /posts HTTP/1.1\nAccept: application/vnd.tent.v0+json\nAuthorization:
MAC id=\"u:480b0078\", ts=\"1350166212\", nonce=\"de24eb\", mac=\"9+owBJTrojrkwV+wuL77BtMnZChijC7LE1lQ/HfBQ8U=\"\n```\n\n```text\nHTTP/1.1
200 OK\nContent-Type: application/vnd.tent.v0+json\nETag: \"911d8a47aa358d98b2f780b9b3ca0394\"\nCache-Control:
max-age=0, private, must-revalidate\nContent-Length: 1435\n```\n\n```json\n[\n
\ {\n \"entity\": \"https://example.org\",\n \"licenses\": [\n \"http://creativecommons.org/licenses/by/3.0/\"\n
\ ],\n \"content\": {\n \"text\": \"Just landed.\",\n \"location\":
{\n \"type\": \"Point\",\n \"coordinates\": [\n 50.923878,\n
\ 4.028605\n ]\n }\n },\n \"published_at\": 1350166212,\n
\ \"permissions\": {\n \"groups\": [\n\n ],\n \"entities\": {\n
\ },\n \"public\": true\n },\n \"id\": \"kjyay9\",\n \"updated_at\":
1350166212,\n \"received_at\": 1350166212,\n \"attachments\": [\n\n ],\n
\ \"type\": \"https://tent.io/types/post/status/v0.1.0\",\n \"version\":
1,\n \"app\": {\n \"url\": \"http://example.com\",\n \"name\": \"FooApp\"\n
\ },\n \"mentions\": [\n\n ]\n },\n {\n \"entity\": null,\n \"licenses\":
[\n\n ],\n \"content\": {\n \"action\": \"update\",\n \"types\":
[\n \"https://tent.io/types/info/basic/v0.1.0\"\n ]\n },\n \"published_at\":
1350166212,\n \"permissions\": {\n \"groups\": [\n\n ],\n \"entities\":
{\n },\n \"public\": true\n },\n \"id\": \"73h1mo\",\n \"updated_at\":
1350166212,\n \"received_at\": 1350166212,\n \"attachments\": [\n\n ],\n
\ \"type\": \"https://tent.io/types/post/profile/v0.1.0\",\n \"version\":
2,\n \"app\": {\n \"url\": null,\n \"name\": null\n },\n \"mentions\":
[\n\n ]\n },\n {\n \"entity\": \"https://example.org\",\n \"licenses\":
[\n \"http://creativecommons.org/licenses/by/3.0/\"\n ],\n \"content\":
{\n \"caption\": \"Some fake photos\"\n },\n \"published_at\": 1350166212,\n
\ \"permissions\": {\n \"groups\": [\n\n ],\n \"entities\": {\n
\ },\n \"public\": true\n },\n \"id\": \"tebyhp\",\n \"updated_at\":
1350166212,\n \"received_at\": 1350166212,\n \"attachments\": [\n {\n
\ \"type\": \"image/jpeg\",\n \"category\": \"photos\",\n \"name\":
\"fake_photo1.jpg\",\n \"size\": 26\n },\n {\n \"type\":
\"image/jpeg\",\n \"category\": \"photos\",\n \"name\": \"fake_photo2.jpg\",\n
\ \"size\": 26\n }\n ],\n \"type\": \"https://tent.io/types/post/photo/v0.1.0\",\n
\ \"version\": 1,\n \"app\": {\n \"url\": \"http://example.com\",\n
\ \"name\": \"FooApp\"\n },\n \"mentions\": [\n\n ]\n }\n]\n```\n"
:get_post: ! "\n```text\nGET /posts/kjyay9 HTTP/1.1\nAccept: application/vnd.tent.v0+json\nAuthorization:
MAC id=\"u:480b0078\", ts=\"1350166212\", nonce=\"14bda3\", mac=\"koEa2ahpliSoGHL9IXy5QR4plEPjyPh8KPtSmVvRvaw=\"\n```\n\n```text\nHTTP/1.1
200 OK\nContent-Type: application/vnd.tent.v0+json\nETag: \"2f199f9d3a81232634d644e1c0facd5d\"\nCache-Control:
max-age=0, private, must-revalidate\nContent-Length: 477\n```\n\n```json\n{\n
\ \"entity\": \"https://example.org\",\n \"licenses\": [\n \"http://creativecommons.org/licenses/by/3.0/\"\n
\ ],\n \"content\": {\n \"text\": \"Just landed.\",\n \"location\": {\n
\ \"type\": \"Point\",\n \"coordinates\": [\n 50.923878,\n 4.028605\n
\ ]\n }\n },\n \"published_at\": 1350166212,\n \"permissions\": {\n
\ \"groups\": [\n\n ],\n \"entities\": {\n },\n \"public\": true\n
\ },\n \"id\": \"kjyay9\",\n \"updated_at\": 1350166212,\n \"received_at\":
1350166212,\n \"attachments\": [\n\n ],\n \"type\": \"https://tent.io/types/post/status/v0.1.0\",\n
\ \"version\": 1,\n \"app\": {\n \"url\": \"http://example.com\",\n \"name\":
\"FooApp\"\n },\n \"mentions\": [\n\n ]\n}\n```\n"
:follower_get_post: ! "\n```text\nGET /posts/kjyay9 HTTP/1.1\nAccept: application/vnd.tent.v0+json\nAuthorization:
MAC id=\"s:5758b054\", ts=\"1350166212\", nonce=\"d209c5\", mac=\"Y8PJ9pV7YjtHxaLltNdkBj/udPCQac2M5auoj+z2HGs=\"\n```\n\n```text\nHTTP/1.1
200 OK\nContent-Type: application/vnd.tent.v0+json\nETag: \"ff94332ffd66c78f8b5bc712f9651537\"\nCache-Control:
max-age=0, private, must-revalidate\nContent-Length: 402\n```\n\n```json\n{\n
\ \"entity\": \"https://example.org\",\n \"licenses\": [\n \"http://creativecommons.org/licenses/by/3.0/\"\n
\ ],\n \"content\": {\n \"text\": \"Just landed.\",\n \"location\": {\n
\ \"type\": \"Point\",\n \"coordinates\": [\n 50.923878,\n 4.028605\n
\ ]\n }\n },\n \"published_at\": 1350166212,\n \"permissions\": {\n
\ \"public\": true\n },\n \"id\": \"kjyay9\",\n \"attachments\": [\n\n ],\n
\ \"type\": \"https://tent.io/types/post/status/v0.1.0\",\n \"version\": 1,\n
\ \"app\": {\n \"url\": \"http://example.com\",\n \"name\": \"FooApp\"\n
\ },\n \"mentions\": [\n\n ]\n}\n```\n"
:follower_get_posts: ! "\n```text\nGET /posts HTTP/1.1\nAccept: application/vnd.tent.v0+json\nAuthorization:
MAC id=\"s:5758b054\", ts=\"1350166212\", nonce=\"03e811\", mac=\"68LQCmExkBbf+D7ogXpxlPVDzpsiEHiqK31474HqRF0=\"\n```\n\n```text\nHTTP/1.1
200 OK\nContent-Type: application/vnd.tent.v0+json\nETag: \"9a1037923f1672aa7aadef11aa49d268\"\nCache-Control:
max-age=0, private, must-revalidate\nContent-Length: 1210\n```\n\n```json\n[\n
\ {\n \"entity\": \"https://example.org\",\n \"licenses\": [\n \"http://creativecommons.org/licenses/by/3.0/\"\n
\ ],\n \"content\": {\n \"caption\": \"Some fake photos\"\n },\n
\ \"published_at\": 1350166212,\n \"permissions\": {\n \"public\": true\n
\ },\n \"id\": \"tebyhp\",\n \"attachments\": [\n {\n \"type\":
\"image/jpeg\",\n \"category\": \"photos\",\n \"name\": \"fake_photo1.jpg\",\n
\ \"size\": 26\n },\n {\n \"type\": \"image/jpeg\",\n \"category\":
\"photos\",\n \"name\": \"fake_photo2.jpg\",\n \"size\": 26\n }\n
\ ],\n \"type\": \"https://tent.io/types/post/photo/v0.1.0\",\n \"version\":
1,\n \"app\": {\n \"url\": \"http://example.com\",\n \"name\": \"FooApp\"\n
\ },\n \"mentions\": [\n\n ]\n },\n {\n \"entity\": null,\n \"licenses\":
[\n\n ],\n \"content\": {\n \"action\": \"update\",\n \"types\":
[\n \"https://tent.io/types/info/basic/v0.1.0\"\n ]\n },\n \"published_at\":
1350166212,\n \"permissions\": {\n \"public\": true\n },\n \"id\":
\"73h1mo\",\n \"attachments\": [\n\n ],\n \"type\": \"https://tent.io/types/post/profile/v0.1.0\",\n
\ \"version\": 2,\n \"app\": {\n \"url\": null,\n \"name\": null\n
\ },\n \"mentions\": [\n\n ]\n },\n {\n \"entity\": \"https://example.org\",\n
\ \"licenses\": [\n \"http://creativecommons.org/licenses/by/3.0/\"\n ],\n
\ \"content\": {\n \"text\": \"Just landed.\",\n \"location\": {\n
\ \"type\": \"Point\",\n \"coordinates\": [\n 50.923878,\n
\ 4.028605\n ]\n }\n },\n \"published_at\": 1350166212,\n
\ \"permissions\": {\n \"public\": true\n },\n \"id\": \"kjyay9\",\n
\ \"attachments\": [\n\n ],\n \"type\": \"https://tent.io/types/post/status/v0.1.0\",\n
\ \"version\": 1,\n \"app\": {\n \"url\": \"http://example.com\",\n
\ \"name\": \"FooApp\"\n },\n \"mentions\": [\n\n ]\n }\n]\n```\n"
:delete_follower: ! "\n```text\nDELETE /followers/vqdc0y HTTP/1.1\nAccept: application/vnd.tent.v0+json\nAuthorization:
MAC id=\"s:5758b054\", ts=\"1350166212\", nonce=\"799aa6\", mac=\"2f/F6FZifuDTcHyd2QUAs/r0thv5We3Wkme6Li4XJzc=\"\n```\n\n```text\nHTTP/1.1
200 OK\nContent-Type: text/html\nCache-Control: \nContent-Length: 0\n```\n"
:variables:
:app_code: !binary |-
MzkwYjkwMjA2ZWJlZTdlMDQzZWQxNjQ3MTdhYzkyYjY=
:app_id: mukhq0
:post_id: kjyay9
:follower_id: vqdc0y