417 lines
30 KiB
YAML
417 lines
30 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\nContent-Length: 489\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\":
|
|
\"Odit incidunt eos consequatur quo.\",\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\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\": \"yghgvh\",\n \"mac_key_id\": \"a:8f0cf612\",\n \"mac_key\":
|
|
\"86b7bf24876b3eccdd2c85889e408cd7\",\n \"mac_algorithm\": \"hmac-sha-256\",\n
|
|
\ \"authorizations\": [\n\n ]\n}\n```\n"
|
|
:app_auth: ! "\n```text\nPOST /apps/yghgvh/authorizations HTTP/1.1\nContent-Type:
|
|
application/vnd.tent.v0+json\nAccept: application/vnd.tent.v0+json\nAuthorization:
|
|
MAC id=\"a:8f0cf612\", ts=\"1348149847\", nonce=\"ead4e9\", mac=\"BIYmTSmLmpxIsv8zKrGEcclGdYUfrlQR9GthNG/Msjs=\"\n```\n\n```json\n{\n
|
|
\ \"code\": \"9ea0758f58a9cb4e6afb5da260166614\",\n \"token_type\": \"mac\"\n}\n```\n\n```text\nHTTP/1.1
|
|
200 OK\nContent-Type: application/vnd.tent.v0+json\nContent-Length: 124\n```\n\n```json\n{\n
|
|
\ \"access_token\": \"u:53c1e157\",\n \"mac_key\": \"3b0a6f8e7add8991337539c539e0c485\",\n
|
|
\ \"mac_algorithm\": \"hmac-sha-256\",\n \"token_type\": \"mac\"\n}\n```\n"
|
|
: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:53c1e157\", ts=\"1348149847\",
|
|
nonce=\"322b7b\", mac=\"O0bHHfPLk6PdDFwVIoHXD9+eMqkrZsAWdbbnEbNkb3c=\"\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\nContent-Length: 698\n```\n\n```json\n{\n \"remote_id\":
|
|
\"msivbx\",\n \"entity\": \"https://example.org\",\n \"permissions\": {\n \"groups\":
|
|
[\n\n ],\n \"entities\": {\n },\n \"public\": false\n },\n \"id\":
|
|
\"blbfbd\",\n \"created_at\": 1348149847,\n \"updated_at\": 1348149847,\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\": \"Odit incidunt eos consequatur
|
|
quo.\",\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/blbfbd\",\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\nContent-Length: 254\n```\n\n```json\n{\n
|
|
\ \"entity\": \"https://example.org\",\n \"permissions\": {\n \"public\":
|
|
false\n },\n \"id\": \"559up6\",\n \"mac_key_id\": \"s:01471f58\",\n \"mac_key\":
|
|
\"eab9a771c6fbb41507aebed1a7d03752\",\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"
|
|
:get_follower: ! "\n```text\nGET /followers/559up6 HTTP/1.1\nAccept: application/vnd.tent.v0+json\nAuthorization:
|
|
MAC id=\"s:01471f58\", ts=\"1348149847\", nonce=\"63f9a1\", mac=\"IvT9zmdDCFdADlhrDQUsm8UkbmaiFGviE5rN8lxJWLo=\"\n```\n\n```text\nHTTP/1.1
|
|
200 OK\nContent-Type: application/vnd.tent.v0+json\nLast-Modified: Thu, 20 Sep
|
|
2012 14:04:07 GMT\nCache-Control: private\nContent-Length: 152\n```\n\n```json\n{\n
|
|
\ \"entity\": \"https://example.org\",\n \"permissions\": {\n \"public\":
|
|
false\n },\n \"id\": \"559up6\",\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/559up6 HTTP/1.1\nContent-Type: application/vnd.tent.v0+json\nAccept:
|
|
application/vnd.tent.v0+json\nAuthorization: MAC id=\"s:01471f58\", ts=\"1348149847\",
|
|
nonce=\"a91ee9\", mac=\"5FG22LJAyGqV0qoj6VZbGm/W3JU1HJfjrSPYC6QnCM4=\"\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\nContent-Length: 193\n```\n\n```json\n{\n
|
|
\ \"entity\": \"https://example.org\",\n \"permissions\": {\n \"public\":
|
|
false\n },\n \"id\": \"559up6\",\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_app: ! "\n```text\nGET /apps/yghgvh HTTP/1.1\nAccept: application/vnd.tent.v0+json\nAuthorization:
|
|
MAC id=\"a:8f0cf612\", ts=\"1348149847\", nonce=\"28ada2\", mac=\"aGM7Yt3LmWDJNmC/i8MQlzdXliBHg57sqe+yTjYP4oc=\"\n```\n\n```text\nHTTP/1.1
|
|
200 OK\nContent-Type: application/vnd.tent.v0+json\nLast-Modified: Thu, 20 Sep
|
|
2012 14:04:07 GMT\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\": \"yghgvh\",\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\": \"ahz7s5\"\n }\n
|
|
\ ]\n}\n```\n"
|
|
:update_app: ! "\n```text\nPUT /apps/yghgvh HTTP/1.1\nContent-Type: application/vnd.tent.v0+json\nAccept:
|
|
application/vnd.tent.v0+json\nAuthorization: MAC id=\"a:8f0cf612\", ts=\"1348149847\",
|
|
nonce=\"2d7291\", mac=\"wz2flcr8TTB1PHxH/2/j7uFwOzMzvxg9+vrUQXvS5t8=\"\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
|
|
\ \"write_following\": \"Follow new users when you click\"\n }\n}\n```\n\n```text\nHTTP/1.1
|
|
200 OK\nContent-Type: application/vnd.tent.v0+json\nContent-Length: 905\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
|
|
\ \"write_following\": \"Follow new users when you click\"\n },\n \"id\":
|
|
\"yghgvh\",\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\": \"ahz7s5\"\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"
|
|
|
|
```
|
|
|
|
'
|
|
: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:53c1e157\", ts=\"1348149847\", nonce=\"16f3cb\", mac=\"b826jODqJCrg1byrX7BZU3Jzlj5wuLeLMgBFR4mNyhc=\"\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\": \"Tempore ad eveniet eum esse quo ipsum sit et.\"\n}\n```\n\n```text\nHTTP/1.1
|
|
200 OK\nContent-Type: application/vnd.tent.v0+json\nContent-Length: 552\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\":
|
|
\"Tempore ad eveniet eum esse quo ipsum sit et.\",\n \"permissions\": {\n \"groups\":
|
|
[\n\n ],\n \"entities\": {\n },\n \"public\": null\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:53c1e157\", ts=\"1348149847\",
|
|
nonce=\"d22280\", mac=\"/Xqtx/X7KCcbTQA4PuX/GGN4FIz7tWpoxhG/LsEdxCc=\"\n```\n\n```json\n{\n
|
|
\ \"type\": \"https://tent.io/types/post/status/v0.1.0\",\n \"published_at\":
|
|
1348149847,\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\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\": 1348149847,\n \"permissions\": {\n \"groups\": [\n\n
|
|
\ ],\n \"entities\": {\n },\n \"public\": true\n },\n \"id\": \"j56x1o\",\n
|
|
\ \"updated_at\": 1348149847,\n \"received_at\": 1348149847,\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:53c1e157\", ts=\"1348149847\", nonce=\"350b61\", mac=\"StUKx5+c675V5rIvG4VN9pI5l9lNdS51unHw42x53mg=\"\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\":1348149847,\"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\nContent-Length: 613\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\":
|
|
1348149847,\n \"permissions\": {\n \"groups\": [\n\n ],\n \"entities\":
|
|
{\n },\n \"public\": true\n },\n \"id\": \"bmtqu6\",\n \"updated_at\":
|
|
1348149847,\n \"received_at\": 1348149847,\n \"attachments\": [\n {\n \"type\":
|
|
\"image/jpeg\",\n \"category\": \"photos\",\n \"name\": \"fake_photo1.jpg\",\n
|
|
\ \"size\": 26,\n \"post_version_id\": 7\n },\n {\n \"type\":
|
|
\"image/jpeg\",\n \"category\": \"photos\",\n \"name\": \"fake_photo2.jpg\",\n
|
|
\ \"size\": 26,\n \"post_version_id\": 7\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/bmtqu6/attachments/fake_photo2.jpg HTTP/1.1
|
|
|
|
Accept: image/jpeg
|
|
|
|
Authorization: MAC id="u:53c1e157", ts="1348149847", nonce="8a3ea0", mac="hVP4mba5aW3xvdzdlCX3UnnPxlhgiEghASBBUlj9k5I="
|
|
|
|
```
|
|
|
|
|
|
```text
|
|
|
|
HTTP/1.1 200 OK
|
|
|
|
Content-Type: image/jpeg
|
|
|
|
Content-Length: 26
|
|
|
|
```
|
|
|
|
|
|
```text
|
|
|
|
Photo 2 data would go here
|
|
|
|
```
|
|
|
|
'
|
|
:get_followings: ! "\n```text\nGET /followings HTTP/1.1\nAccept: application/vnd.tent.v0+json\nAuthorization:
|
|
MAC id=\"u:53c1e157\", ts=\"1348149847\", nonce=\"e4d65a\", mac=\"deZ4P8wkYEcw3rwcc4OEu1cogCNOwSXJ9OrSWhnbDZY=\"\n```\n\n```text\nHTTP/1.1
|
|
200 OK\nContent-Type: application/vnd.tent.v0+json\nLast-Modified: Thu, 20 Sep
|
|
2012 14:04:07 GMT\nCache-Control: private\nContent-Length: 700\n```\n\n```json\n[\n
|
|
\ {\n \"remote_id\": \"msivbx\",\n \"entity\": \"https://example.org\",\n
|
|
\ \"permissions\": {\n \"groups\": [\n\n ],\n \"entities\": {\n
|
|
\ },\n \"public\": false\n },\n \"id\": \"blbfbd\",\n \"created_at\":
|
|
1348149847,\n \"updated_at\": 1348149847,\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\": \"Odit incidunt eos consequatur quo.\",\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/blbfbd HTTP/1.1\nAccept: application/vnd.tent.v0+json\nAuthorization:
|
|
MAC id=\"u:53c1e157\", ts=\"1348149847\", nonce=\"a1c643\", mac=\"LI/5VbM/XnR+INhRcP3Vp56sD/e7eKTrhRGGtqJno7Q=\"\n```\n\n```text\nHTTP/1.1
|
|
200 OK\nContent-Type: application/vnd.tent.v0+json\nLast-Modified: Thu, 20 Sep
|
|
2012 14:04:07 GMT\nCache-Control: private\nContent-Length: 698\n```\n\n```json\n{\n
|
|
\ \"remote_id\": \"msivbx\",\n \"entity\": \"https://example.org\",\n \"permissions\":
|
|
{\n \"groups\": [\n\n ],\n \"entities\": {\n },\n \"public\": false\n
|
|
\ },\n \"id\": \"blbfbd\",\n \"created_at\": 1348149847,\n \"updated_at\":
|
|
1348149847,\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\": \"Odit incidunt eos consequatur
|
|
quo.\",\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"
|
|
:delete_following: ! '
|
|
|
|
```text
|
|
|
|
DELETE /followings/blbfbd HTTP/1.1
|
|
|
|
Accept: application/vnd.tent.v0+json
|
|
|
|
Authorization: MAC id="u:53c1e157", ts="1348149847", nonce="0745d7", mac="lg+NZKxxJvEraJt3+RVj2p2KPJTc9T50WjbPqoFTeD0="
|
|
|
|
```
|
|
|
|
|
|
```text
|
|
|
|
HTTP/1.1 200 OK
|
|
|
|
Content-Type: text/html
|
|
|
|
Content-Length: 0
|
|
|
|
```
|
|
|
|
'
|
|
:get_followers: ! "\n```text\nGET /followers HTTP/1.1\nAccept: application/vnd.tent.v0+json\nAuthorization:
|
|
MAC id=\"u:53c1e157\", ts=\"1348149847\", nonce=\"662801\", mac=\"BoXAA6yx5gUSaDUrou5xYN71uX60oaZHUdoQmY7ZOUM=\"\n```\n\n```text\nHTTP/1.1
|
|
200 OK\nContent-Type: application/vnd.tent.v0+json\nLast-Modified: Thu, 20 Sep
|
|
2012 14:04:07 GMT\nCache-Control: private\nContent-Length: 781\n```\n\n```json\n[\n
|
|
\ {\n \"entity\": \"https://example.org\",\n \"permissions\": {\n \"groups\":
|
|
[\n\n ],\n \"entities\": {\n },\n \"public\": false\n },\n
|
|
\ \"id\": \"559up6\",\n \"created_at\": 1348149847,\n \"updated_at\":
|
|
1348149847,\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\": \"Odit incidunt eos consequatur
|
|
quo.\",\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:53c1e157\", ts=\"1348149847\", nonce=\"cb95a5\", mac=\"94Y6qq3lQwg45jCy/uAE6PUSw3i2s/adk5D3hNz/T94=\"\n```\n\n```text\nHTTP/1.1
|
|
200 OK\nContent-Type: application/vnd.tent.v0+json\nLast-Modified: Thu, 20 Sep
|
|
2012 14:04:07 GMT\nCache-Control: private\nContent-Length: 1093\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\": 1348149847,\n
|
|
\ \"permissions\": {\n \"groups\": [\n\n ],\n \"entities\": {\n
|
|
\ },\n \"public\": true\n },\n \"id\": \"j56x1o\",\n \"updated_at\":
|
|
1348149847,\n \"received_at\": 1348149847,\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\": \"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\":
|
|
1348149847,\n \"permissions\": {\n \"groups\": [\n\n ],\n \"entities\":
|
|
{\n },\n \"public\": true\n },\n \"id\": \"bmtqu6\",\n \"updated_at\":
|
|
1348149847,\n \"received_at\": 1348149847,\n \"attachments\": [\n {\n
|
|
\ \"type\": \"image/jpeg\",\n \"category\": \"photos\",\n \"name\":
|
|
\"fake_photo1.jpg\",\n \"size\": 26,\n \"post_version_id\": 7\n
|
|
\ },\n {\n \"type\": \"image/jpeg\",\n \"category\": \"photos\",\n
|
|
\ \"name\": \"fake_photo2.jpg\",\n \"size\": 26,\n \"post_version_id\":
|
|
7\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/j56x1o HTTP/1.1\nAccept: application/vnd.tent.v0+json\nAuthorization:
|
|
MAC id=\"u:53c1e157\", ts=\"1348149847\", nonce=\"c018dc\", mac=\"goJ4BDf5KgM9teNqhHfc6YAB5/4FNgjn2uClIa5Ipkc=\"\n```\n\n```text\nHTTP/1.1
|
|
200 OK\nContent-Type: application/vnd.tent.v0+json\nLast-Modified: Thu, 20 Sep
|
|
2012 14:04:07 GMT\nCache-Control: public\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\": 1348149847,\n \"permissions\": {\n
|
|
\ \"groups\": [\n\n ],\n \"entities\": {\n },\n \"public\": true\n
|
|
\ },\n \"id\": \"j56x1o\",\n \"updated_at\": 1348149847,\n \"received_at\":
|
|
1348149847,\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/j56x1o HTTP/1.1\nAccept: application/vnd.tent.v0+json\nAuthorization:
|
|
MAC id=\"s:01471f58\", ts=\"1348149847\", nonce=\"52c2a7\", mac=\"H1sLVI+xyNaScj2ylHzGOC7U8UphiXZo114647YrSrU=\"\n```\n\n```text\nHTTP/1.1
|
|
200 OK\nContent-Type: application/vnd.tent.v0+json\nLast-Modified: Thu, 20 Sep
|
|
2012 14:04:07 GMT\nCache-Control: public\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\": 1348149847,\n \"permissions\": {\n
|
|
\ \"public\": true\n },\n \"id\": \"j56x1o\",\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:01471f58\", ts=\"1348149847\", nonce=\"338eb4\", mac=\"bcIYushmgsXlHQlxH5jTE97thdmL6EkkS80Pu8pCcM8=\"\n```\n\n```text\nHTTP/1.1
|
|
200 OK\nContent-Type: application/vnd.tent.v0+json\nLast-Modified: Thu, 20 Sep
|
|
2012 14:04:07 GMT\nCache-Control: private\nContent-Length: 943\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\": 1348149847,\n \"permissions\": {\n \"public\": true\n
|
|
\ },\n \"id\": \"bmtqu6\",\n \"attachments\": [\n {\n \"type\":
|
|
\"image/jpeg\",\n \"category\": \"photos\",\n \"name\": \"fake_photo1.jpg\",\n
|
|
\ \"size\": 26,\n \"post_version_id\": 7\n },\n {\n \"type\":
|
|
\"image/jpeg\",\n \"category\": \"photos\",\n \"name\": \"fake_photo2.jpg\",\n
|
|
\ \"size\": 26,\n \"post_version_id\": 7\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\": \"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\": 1348149847,\n
|
|
\ \"permissions\": {\n \"public\": true\n },\n \"id\": \"j56x1o\",\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: ! '
|
|
|
|
```text
|
|
|
|
DELETE /followers/559up6 HTTP/1.1
|
|
|
|
Accept: application/vnd.tent.v0+json
|
|
|
|
Authorization: MAC id="s:01471f58", ts="1348149847", nonce="75862c", mac="+kg4ecf0h+XNKi51Z+RIwOrz7RYrNj8GAz1WrRirtZg="
|
|
|
|
```
|
|
|
|
|
|
```text
|
|
|
|
HTTP/1.1 200 OK
|
|
|
|
Content-Type: text/html
|
|
|
|
Content-Length: 0
|
|
|
|
```
|
|
|
|
'
|
|
:variables:
|
|
:app_code: !binary |-
|
|
OWVhMDc1OGY1OGE5Y2I0ZTZhZmI1ZGEyNjAxNjY2MTQ=
|
|
:app_id: yghgvh
|
|
:follower_id: 559up6
|
|
:post_id: j56x1o
|