426 lines
34 KiB
YAML
426 lines
34 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: \"f9bf86f953b0d36631f0f40ef582a07b\"\nCache-Control:
|
|
max-age=0, private, must-revalidate\nContent-Length: 502\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\":
|
|
\"Cupiditate ipsum est et dolorum dolore et quia.\",\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:
|
|
\"29756da4ba6ee0caeb3edde2dea21700\"\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\": \"t1jrsh\",\n \"mac_key_id\": \"a:f72404a9\",\n \"mac_key\":
|
|
\"05bbbe4c7933d44f6bfee0da41f90b14\",\n \"mac_algorithm\": \"hmac-sha-256\",\n
|
|
\ \"authorizations\": [\n\n ]\n}\n```\n"
|
|
:app_auth: ! "\n```text\nPOST /apps/t1jrsh/authorizations HTTP/1.1\nContent-Type:
|
|
application/vnd.tent.v0+json\nAccept: application/vnd.tent.v0+json\nAuthorization:
|
|
MAC id=\"a:f72404a9\", ts=\"1350831026\", nonce=\"0ce437\", mac=\"3heLNevLWzVqWHAtgiG950vCX7yFpkQAzxyQjocC/G0=\"\n```\n\n```json\n{\n
|
|
\ \"code\": \"93ffa6b7cf3cc984d62e32c7a5a4a51d\",\n \"token_type\": \"mac\"\n}\n```\n\n```text\nHTTP/1.1
|
|
200 OK\nContent-Type: application/vnd.tent.v0+json\nETag: \"50c2221a5e3d0ee19428c5d6882d46ec\"\nCache-Control:
|
|
max-age=0, private, must-revalidate\nContent-Length: 124\n```\n\n```json\n{\n
|
|
\ \"access_token\": \"u:57aab444\",\n \"mac_key\": \"0b45297e3044a41a2b052f6b622d5bd1\",\n
|
|
\ \"mac_algorithm\": \"hmac-sha-256\",\n \"token_type\": \"mac\"\n}\n```\n"
|
|
:get_app: ! "\n```text\nGET /apps/t1jrsh HTTP/1.1\nAccept: application/vnd.tent.v0+json\nAuthorization:
|
|
MAC id=\"a:f72404a9\", ts=\"1350831026\", nonce=\"91f259\", mac=\"BJgod9FEOiDeSDGKOQRSh8ABTILlSzrX09OZvC65cmE=\"\n```\n\n```text\nHTTP/1.1
|
|
200 OK\nContent-Type: application/vnd.tent.v0+json\nETag: \"df05a6cf3ea26771148294c5020fd8ed\"\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\": \"t1jrsh\",\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\": \"66ie07\"\n }\n
|
|
\ ]\n}\n```\n"
|
|
:update_app: ! "\n```text\nPUT /apps/t1jrsh HTTP/1.1\nContent-Type: application/vnd.tent.v0+json\nAccept:
|
|
application/vnd.tent.v0+json\nAuthorization: MAC id=\"a:f72404a9\", ts=\"1350831026\",
|
|
nonce=\"b873ef\", mac=\"5QOtR40s5oukTD6LNLeLH/aSmw1ECHJEZ01eANmvKdo=\"\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:
|
|
\"f09a046ad244e3643fd6135bcaeefd3d\"\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\": \"t1jrsh\",\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\": \"66ie07\"\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:57aab444\", ts=\"1350831026\", nonce=\"47dfdc\", mac=\"1I2wNUw2DIf/1pKNA9zNgARULzYtbxd3/v8cGnXPOpU=\"\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\": \"Fugiat illo saepe exercitationem.\"\n}\n```\n\n```text\nHTTP/1.1
|
|
200 OK\nContent-Type: application/vnd.tent.v0+json\nETag: \"8a25799232579036a54a38c52868b39e\"\nCache-Control:
|
|
max-age=0, private, must-revalidate\nContent-Length: 540\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\":
|
|
\"Fugiat illo saepe exercitationem.\",\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:57aab444\", ts=\"1350831026\",
|
|
nonce=\"ffb789\", mac=\"9DEpqB5taspjfqy3cuXgvk4zR+dwDlJaxe/FTFkA8aI=\"\n```\n\n```json\n{\n
|
|
\ \"type\": \"https://tent.io/types/post/status/v0.1.0\",\n \"published_at\":
|
|
1350831026,\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:
|
|
\"f2f5e502cf6b6f300b23459933d7b1e0\"\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\": 1350831026,\n \"permissions\": {\n \"groups\": [\n\n
|
|
\ ],\n \"entities\": {\n },\n \"public\": true\n },\n \"id\": \"v09ivz\",\n
|
|
\ \"updated_at\": 1350831026,\n \"received_at\": 1350831026,\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:57aab444\", ts=\"1350831026\", nonce=\"775dcd\", mac=\"2x3f5yUdI1HZeGzooF2+y4P/2gI13qwmEplypV+WwDY=\"\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\":1350831026,\"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: \"28b458cfdff2c5ee9c2988e9e32d19b4\"\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\":
|
|
1350831026,\n \"permissions\": {\n \"groups\": [\n\n ],\n \"entities\":
|
|
{\n },\n \"public\": true\n },\n \"id\": \"h2cfue\",\n \"updated_at\":
|
|
1350831026,\n \"received_at\": 1350831026,\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/h2cfue/attachments/fake_photo2.jpg HTTP/1.1
|
|
|
|
Accept: image/jpeg
|
|
|
|
Authorization: MAC id="u:57aab444", ts="1350831026", nonce="6398b0", mac="A8Qg27Qka4hc63fpoFYqo7W40QkvWv7mgcbNXtfV/hM="
|
|
|
|
```
|
|
|
|
|
|
```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:57aab444\", ts=\"1350831026\",
|
|
nonce=\"a2b121\", mac=\"fkNLG43w+L1/xNGIGZuukDc8mX5liI0GhiKzMO4ql2Y=\"\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: \"698cdc941a1e583f37b9fd8e85e778e0\"\nCache-Control:
|
|
max-age=0, private, must-revalidate\nContent-Length: 696\n```\n\n```json\n{\n
|
|
\ \"entity\": \"https://example.org\",\n \"permissions\": {\n \"groups\":
|
|
[\n\n ],\n \"entities\": {\n },\n \"public\": true\n },\n \"id\":
|
|
\"ifegf4\",\n \"created_at\": 1350831026,\n \"updated_at\": 1350831026,\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\": \"Fugiat illo saepe exercitationem.\",\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 \"remote_id\":
|
|
\"unftvm\"\n}\n```\n"
|
|
:get_followings: ! "\n```text\nGET /followings HTTP/1.1\nAccept: application/vnd.tent.v0+json\nAuthorization:
|
|
MAC id=\"u:57aab444\", ts=\"1350831026\", nonce=\"87817a\", mac=\"wWzGgnvbG9EN0hpYsD5pGHKnZZoEeZj+YRrH1iXnarQ=\"\n```\n\n```text\nHTTP/1.1
|
|
200 OK\nContent-Type: application/vnd.tent.v0+json\nETag: \"6ddba05ec1cc467bdf2f369cef3d2ce8\"\nCache-Control:
|
|
max-age=0, private, must-revalidate\nContent-Length: 698\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\": \"ifegf4\",\n \"created_at\": 1350831026,\n \"updated_at\":
|
|
1350831026,\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\": \"Fugiat illo saepe exercitationem.\",\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 \"remote_id\": \"unftvm\"\n }\n]\n```\n"
|
|
:get_following: ! "\n```text\nGET /followings/ifegf4 HTTP/1.1\nAccept: application/vnd.tent.v0+json\nAuthorization:
|
|
MAC id=\"u:57aab444\", ts=\"1350831026\", nonce=\"127d23\", mac=\"sQ+2WcLz4lV9pWCx4so/E8Ced8c/0FQiKWHkjZw2RbA=\"\n```\n\n```text\nHTTP/1.1
|
|
200 OK\nContent-Type: application/vnd.tent.v0+json\nETag: \"698cdc941a1e583f37b9fd8e85e778e0\"\nCache-Control:
|
|
max-age=0, private, must-revalidate\nContent-Length: 696\n```\n\n```json\n{\n
|
|
\ \"entity\": \"https://example.org\",\n \"permissions\": {\n \"groups\":
|
|
[\n\n ],\n \"entities\": {\n },\n \"public\": true\n },\n \"id\":
|
|
\"ifegf4\",\n \"created_at\": 1350831026,\n \"updated_at\": 1350831026,\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\": \"Fugiat illo saepe exercitationem.\",\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 \"remote_id\":
|
|
\"unftvm\"\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/ifegf4\",\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: \"b25b413ff9d0042c953cddc269d60568\"\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\": \"ram8he\",\n \"mac_key_id\": \"s:6fdcb540\",\n \"mac_key\":
|
|
\"8583f8dc112c8590aefd32f52d7985c2\",\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/ifegf4 HTTP/1.1\nAccept: application/vnd.tent.v0+json\nAuthorization:
|
|
MAC id=\"u:57aab444\", ts=\"1350831026\", nonce=\"4e3e23\", mac=\"F/krJ3FtxBEF0BzYNwy34SVoeP6FZmxIqmpBJ8Rug5w=\"\n```\n\n```text\nHTTP/1.1
|
|
200 OK\nContent-Type: text/html\nCache-Control: \nContent-Length: 0\n```\n"
|
|
:auth_get_follower: ! "\n```text\nGET /followers/ram8he HTTP/1.1\nAccept: application/vnd.tent.v0+json\nAuthorization:
|
|
MAC id=\"u:57aab444\", ts=\"1350831026\", nonce=\"871194\", mac=\"Ilh3ub1kB9M/AtKJHEQnC4n5hwTKOdrwhaxmwc8zgkA=\"\n```\n\n```text\nHTTP/1.1
|
|
200 OK\nContent-Type: application/vnd.tent.v0+json\nETag: \"d62c33538352610a613462046bbf4432\"\nCache-Control:
|
|
max-age=0, private, must-revalidate\nContent-Length: 736\n```\n\n```json\n{\n
|
|
\ \"entity\": \"https://example.org\",\n \"permissions\": {\n \"groups\":
|
|
[\n\n ],\n \"entities\": {\n },\n \"public\": true\n },\n \"id\":
|
|
\"ram8he\",\n \"created_at\": 1350831026,\n \"updated_at\": 1350831026,\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\": \"Fugiat illo saepe exercitationem.\",\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 \"all\"\n ]\n}\n```\n"
|
|
:get_follower: ! "\n```text\nGET /followers/ram8he HTTP/1.1\nAccept: application/vnd.tent.v0+json\nAuthorization:
|
|
MAC id=\"s:6fdcb540\", ts=\"1350831026\", nonce=\"faface\", mac=\"w1T0lynI0OOy1G93fL+JJLraaCgxSHcDTbXfN1Ob664=\"\n```\n\n```text\nHTTP/1.1
|
|
200 OK\nContent-Type: application/vnd.tent.v0+json\nETag: \"8cc9fe6fc3fcedacf9b152eedfcab5fb\"\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\": \"ram8he\",\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/ram8he HTTP/1.1\nContent-Type: application/vnd.tent.v0+json\nAccept:
|
|
application/vnd.tent.v0+json\nAuthorization: MAC id=\"s:6fdcb540\", ts=\"1350831026\",
|
|
nonce=\"5ea694\", mac=\"AcGGzzinhuzhSX/Z0t43H8yTWmy6ymo6Bf4chjldZnE=\"\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: \"28bcb78c8164c2d88ee663fefaef5fac\"\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\": \"ram8he\",\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:57aab444\", ts=\"1350831026\", nonce=\"f88ea8\", mac=\"9Jvj1J0C5irQ60pOf9rDpvfLHVTGrTjXX6ltYLmMODY=\"\n```\n\n```text\nHTTP/1.1
|
|
200 OK\nContent-Type: application/vnd.tent.v0+json\nETag: \"fb8c84c8bd7e19faec0340d448d88bd3\"\nCache-Control:
|
|
max-age=0, private, must-revalidate\nContent-Length: 779\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\": \"ram8he\",\n \"created_at\": 1350831026,\n \"updated_at\":
|
|
1350831026,\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\": \"Fugiat illo saepe exercitationem.\",\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:57aab444\", ts=\"1350831026\", nonce=\"a1fd89\", mac=\"HoRA74fp7p6bSaT5sMBTw8WrRAh6xMcoXof7sBG5YQA=\"\n```\n\n```text\nHTTP/1.1
|
|
200 OK\nContent-Type: application/vnd.tent.v0+json\nETag: \"fdf810c6a5747a2e1d2af87c338dfb0a\"\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 \"caption\": \"Some fake photos\"\n },\n
|
|
\ \"published_at\": 1350831026,\n \"permissions\": {\n \"groups\": [\n\n
|
|
\ ],\n \"entities\": {\n },\n \"public\": true\n },\n \"id\":
|
|
\"h2cfue\",\n \"updated_at\": 1350831026,\n \"received_at\": 1350831026,\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\":
|
|
1350831026,\n \"permissions\": {\n \"groups\": [\n\n ],\n \"entities\":
|
|
{\n },\n \"public\": true\n },\n \"id\": \"x0y74e\",\n \"updated_at\":
|
|
1350831026,\n \"received_at\": 1350831026,\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\": 1350831026,\n \"permissions\":
|
|
{\n \"groups\": [\n\n ],\n \"entities\": {\n },\n \"public\":
|
|
true\n },\n \"id\": \"v09ivz\",\n \"updated_at\": 1350831026,\n \"received_at\":
|
|
1350831026,\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"
|
|
:get_post: ! "\n```text\nGET /posts/v09ivz HTTP/1.1\nAccept: application/vnd.tent.v0+json\nAuthorization:
|
|
MAC id=\"u:57aab444\", ts=\"1350831026\", nonce=\"bf1857\", mac=\"f1tBR9pq8CJ6E8wbN1FUaC7Co4aQarYmFFJc9iW5shI=\"\n```\n\n```text\nHTTP/1.1
|
|
200 OK\nContent-Type: application/vnd.tent.v0+json\nETag: \"f2f5e502cf6b6f300b23459933d7b1e0\"\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\": 1350831026,\n \"permissions\": {\n
|
|
\ \"groups\": [\n\n ],\n \"entities\": {\n },\n \"public\": true\n
|
|
\ },\n \"id\": \"v09ivz\",\n \"updated_at\": 1350831026,\n \"received_at\":
|
|
1350831026,\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/v09ivz HTTP/1.1\nAccept: application/vnd.tent.v0+json\nAuthorization:
|
|
MAC id=\"s:6fdcb540\", ts=\"1350831027\", nonce=\"860efe\", mac=\"zOtRgF/1VAG2gNdXhNlycIdNXtZkcNWo58zcO3IcRRU=\"\n```\n\n```text\nHTTP/1.1
|
|
200 OK\nContent-Type: application/vnd.tent.v0+json\nETag: \"593f2897853f1a3cc6f1ce7de5890522\"\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\": 1350831026,\n \"permissions\": {\n
|
|
\ \"public\": true\n },\n \"id\": \"v09ivz\",\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:6fdcb540\", ts=\"1350831027\", nonce=\"19454c\", mac=\"0/4imTeKA4YUhL+Pf2YYhbXdp0FSBY+btJrTsjNkZxM=\"\n```\n\n```text\nHTTP/1.1
|
|
200 OK\nContent-Type: application/vnd.tent.v0+json\nETag: \"a32dd4983386a401255a1aee1666228a\"\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\": 1350831026,\n \"permissions\": {\n \"public\": true\n
|
|
\ },\n \"id\": \"h2cfue\",\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\":
|
|
1350831026,\n \"permissions\": {\n \"public\": true\n },\n \"id\":
|
|
\"x0y74e\",\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\": 1350831026,\n
|
|
\ \"permissions\": {\n \"public\": true\n },\n \"id\": \"v09ivz\",\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_post: ! "\n```text\nDELETE /posts/v09ivz HTTP/1.1\nAccept: application/vnd.tent.v0+json\nAuthorization:
|
|
MAC id=\"u:57aab444\", ts=\"1350831027\", nonce=\"8f9bcd\", mac=\"gUxI0+dV3i4XpGFjIJjuUb6T369faQG8vU+MkOc5fNg=\"\n```\n\n```text\nHTTP/1.1
|
|
200 OK\nContent-Type: text/html\nCache-Control: \nContent-Length: 0\n```\n"
|
|
:delete_follower: ! "\n```text\nDELETE /followers/ram8he HTTP/1.1\nAccept: application/vnd.tent.v0+json\nAuthorization:
|
|
MAC id=\"s:6fdcb540\", ts=\"1350831027\", nonce=\"dc7549\", mac=\"Rmt0bo16gOgj1d9xYB5/RNLFyxFC4Xlf6SMhG7Zk+Fs=\"\n```\n\n```text\nHTTP/1.1
|
|
200 OK\nContent-Type: text/html\nCache-Control: \nContent-Length: 0\n```\n"
|
|
:variables:
|
|
:app_code: !binary |-
|
|
OTNmZmE2YjdjZjNjYzk4NGQ2MmUzMmM3YTVhNGE1MWQ=
|
|
:app_id: t1jrsh
|
|
:post_id: v09ivz
|
|
:follower_id: ram8he
|