429 lines
34 KiB
YAML
429 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: \"922b4a98c5620e68935a7fbe9b168616\"\nCache-Control:
|
|
max-age=0, private, must-revalidate\nContent-Length: 494\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\":
|
|
\"A qui cum ratione consequatur pariatur.\",\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:
|
|
\"6830d51267525fb77dac246979b8a33e\"\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\": \"326ee3\",\n \"mac_key_id\": \"a:02ddb3b8\",\n \"mac_key\":
|
|
\"1bdaa909e7e1254d41c102775b20c605\",\n \"mac_algorithm\": \"hmac-sha-256\",\n
|
|
\ \"authorizations\": [\n\n ]\n}\n```\n"
|
|
:app_auth: ! "\n```text\nPOST /apps/326ee3/authorizations HTTP/1.1\nContent-Type:
|
|
application/vnd.tent.v0+json\nAccept: application/vnd.tent.v0+json\nAuthorization:
|
|
MAC id=\"a:02ddb3b8\", ts=\"1350347683\", nonce=\"482540\", mac=\"ii1D024o51q2WaJSXtCzd4d0abzKgUlK+E9RKvVMrH4=\"\n```\n\n```json\n{\n
|
|
\ \"code\": \"8a451d412da9c0f04cff0eb98a3023b5\",\n \"token_type\": \"mac\"\n}\n```\n\n```text\nHTTP/1.1
|
|
200 OK\nContent-Type: application/vnd.tent.v0+json\nETag: \"74e8272ff59a74cbc2d5d6c871e3e861\"\nCache-Control:
|
|
max-age=0, private, must-revalidate\nContent-Length: 124\n```\n\n```json\n{\n
|
|
\ \"access_token\": \"u:9a27c9c0\",\n \"mac_key\": \"01a72852b917af2f16a782c08fcec23f\",\n
|
|
\ \"mac_algorithm\": \"hmac-sha-256\",\n \"token_type\": \"mac\"\n}\n```\n"
|
|
:get_app: ! "\n```text\nGET /apps/326ee3 HTTP/1.1\nAccept: application/vnd.tent.v0+json\nAuthorization:
|
|
MAC id=\"a:02ddb3b8\", ts=\"1350347683\", nonce=\"3dfde8\", mac=\"/ABXFK3GXl7otYo/6PHNuFFITjJGV79+nTdKHmK2XT8=\"\n```\n\n```text\nHTTP/1.1
|
|
200 OK\nContent-Type: application/vnd.tent.v0+json\nETag: \"859d15d87705d411ce7c89a4edaf8653\"\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\": \"326ee3\",\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\": \"o7ua7b\"\n }\n
|
|
\ ]\n}\n```\n"
|
|
:update_app: ! "\n```text\nPUT /apps/326ee3 HTTP/1.1\nContent-Type: application/vnd.tent.v0+json\nAccept:
|
|
application/vnd.tent.v0+json\nAuthorization: MAC id=\"a:02ddb3b8\", ts=\"1350347683\",
|
|
nonce=\"3346fa\", mac=\"P9iClV4Jz470xEVUAfZfEh6MnzrYw+ifByeufKgkQqA=\"\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:
|
|
\"d20fedfdd7fb7fc52665f71e70ac4844\"\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\": \"326ee3\",\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\": \"o7ua7b\"\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:9a27c9c0\", ts=\"1350347683\", nonce=\"9fa847\", mac=\"+Z56dGZg7eGk1mI9cxCmPIn9lK6S76n4ECy8CcWlDp8=\"\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\": \"Necessitatibus architecto corrupti asperiores laboriosam
|
|
ut.\"\n}\n```\n\n```text\nHTTP/1.1 200 OK\nContent-Type: application/vnd.tent.v0+json\nETag:
|
|
\"167859808eb5468a0dfe28719114753a\"\nCache-Control: max-age=0, private, must-revalidate\nContent-Length:
|
|
567\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\":
|
|
\"Necessitatibus architecto corrupti asperiores laboriosam ut.\",\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:9a27c9c0\", ts=\"1350347683\",
|
|
nonce=\"8fa4c1\", mac=\"x861WqTLTGw9uVN89l1Zci+IUARAXGxI9QL7upBaeFU=\"\n```\n\n```json\n{\n
|
|
\ \"type\": \"https://tent.io/types/post/status/v0.1.0\",\n \"published_at\":
|
|
1350347683,\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:
|
|
\"e2b2baceb915c444ead894c68c00dcdd\"\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\": 1350347683,\n \"permissions\": {\n \"groups\": [\n\n
|
|
\ ],\n \"entities\": {\n },\n \"public\": true\n },\n \"id\": \"8t1x4i\",\n
|
|
\ \"updated_at\": 1350347683,\n \"received_at\": 1350347683,\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:9a27c9c0\", ts=\"1350347684\", nonce=\"babd81\", mac=\"PVPVvymyIoJ96ZvaxpvCZgR71ncTkaBMfd67/Tz/qtk=\"\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\":1350347684,\"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: \"876fd2a8597a6e9aceb4a6815cc10c4e\"\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\":
|
|
1350347684,\n \"permissions\": {\n \"groups\": [\n\n ],\n \"entities\":
|
|
{\n },\n \"public\": true\n },\n \"id\": \"srwwpy\",\n \"updated_at\":
|
|
1350347684,\n \"received_at\": 1350347684,\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/srwwpy/attachments/fake_photo2.jpg HTTP/1.1
|
|
|
|
Accept: image/jpeg
|
|
|
|
Authorization: MAC id="u:9a27c9c0", ts="1350347684", nonce="62161e", mac="tD1i/oozogurBm9pUiwbeugNjxfMEl5bZXggLgb198k="
|
|
|
|
```
|
|
|
|
|
|
```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:9a27c9c0\", ts=\"1350347684\",
|
|
nonce=\"34cd99\", mac=\"oEUct79wsboHLEWQp8tR3KkIAeJzJL/5vplhuLl3l10=\"\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: \"aa01305281afecc3658342af6be9ee33\"\nCache-Control:
|
|
max-age=0, private, must-revalidate\nContent-Length: 723\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\":
|
|
\"c88uqc\",\n \"created_at\": 1350347684,\n \"updated_at\": 1350347684,\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\": \"Necessitatibus architecto corrupti
|
|
asperiores laboriosam ut.\",\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\":
|
|
\"9egzts\"\n}\n```\n"
|
|
:get_followings: ! "\n```text\nGET /followings HTTP/1.1\nAccept: application/vnd.tent.v0+json\nAuthorization:
|
|
MAC id=\"u:9a27c9c0\", ts=\"1350347684\", nonce=\"125e30\", mac=\"4eGIx3aF5Hi8dhgXkD3/S+AvFVl7V9fg4gDk9BuaJPo=\"\n```\n\n```text\nHTTP/1.1
|
|
200 OK\nContent-Type: application/vnd.tent.v0+json\nETag: \"99c92823741b0ff6a324e23b3dca6043\"\nCache-Control:
|
|
max-age=0, private, must-revalidate\nContent-Length: 725\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\": \"c88uqc\",\n \"created_at\": 1350347684,\n \"updated_at\":
|
|
1350347684,\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\": \"Necessitatibus architecto
|
|
corrupti asperiores laboriosam ut.\",\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\": \"9egzts\"\n
|
|
\ }\n]\n```\n"
|
|
:get_following: ! "\n```text\nGET /followings/c88uqc HTTP/1.1\nAccept: application/vnd.tent.v0+json\nAuthorization:
|
|
MAC id=\"u:9a27c9c0\", ts=\"1350347684\", nonce=\"39a9f5\", mac=\"nxEEehN+UCaZwINNtvlKhSlCxa5ef5nSdqMkbXRdktE=\"\n```\n\n```text\nHTTP/1.1
|
|
200 OK\nContent-Type: application/vnd.tent.v0+json\nETag: \"aa01305281afecc3658342af6be9ee33\"\nCache-Control:
|
|
max-age=0, private, must-revalidate\nContent-Length: 723\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\":
|
|
\"c88uqc\",\n \"created_at\": 1350347684,\n \"updated_at\": 1350347684,\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\": \"Necessitatibus architecto corrupti
|
|
asperiores laboriosam ut.\",\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\":
|
|
\"9egzts\"\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/c88uqc\",\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: \"0ee9383bc932d80909ec65b77c49ea99\"\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\": \"gxuefd\",\n \"mac_key_id\": \"s:06ede672\",\n \"mac_key\":
|
|
\"78d7d71e022d94728048738487236662\",\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/c88uqc HTTP/1.1\nAccept: application/vnd.tent.v0+json\nAuthorization:
|
|
MAC id=\"u:9a27c9c0\", ts=\"1350347684\", nonce=\"ef1703\", mac=\"DFGEF9Uc9tTMVd1TYXhKrjg9NZ/+prLLcdGyHg0xB2k=\"\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/gxuefd HTTP/1.1\nAccept: application/vnd.tent.v0+json\nAuthorization:
|
|
MAC id=\"u:9a27c9c0\", ts=\"1350347684\", nonce=\"21442c\", mac=\"kfSaSQ59N20z2Z6qIJ4p5ROpV04lOSPFlRDJmWyAKM0=\"\n```\n\n```text\nHTTP/1.1
|
|
200 OK\nContent-Type: application/vnd.tent.v0+json\nETag: \"0e8a85850442db38ceefdfe7d8a66a51\"\nCache-Control:
|
|
max-age=0, private, must-revalidate\nContent-Length: 763\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\":
|
|
\"gxuefd\",\n \"created_at\": 1350347684,\n \"updated_at\": 1350347684,\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\": \"Necessitatibus architecto corrupti
|
|
asperiores laboriosam ut.\",\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/gxuefd HTTP/1.1\nAccept: application/vnd.tent.v0+json\nAuthorization:
|
|
MAC id=\"s:06ede672\", ts=\"1350347684\", nonce=\"2f64ce\", mac=\"pBRDcpA8+cjIjmkCJYF5G+vNkiBio7hENCfac7gvPIk=\"\n```\n\n```text\nHTTP/1.1
|
|
200 OK\nContent-Type: application/vnd.tent.v0+json\nETag: \"8e3aa67ec3f11c70136f0219f0613fbf\"\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\": \"gxuefd\",\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/gxuefd HTTP/1.1\nContent-Type: application/vnd.tent.v0+json\nAccept:
|
|
application/vnd.tent.v0+json\nAuthorization: MAC id=\"s:06ede672\", ts=\"1350347684\",
|
|
nonce=\"6dea8f\", mac=\"UdGTwZaonj/yodegKYHRbEluN3hMeTo5uwKxMSyDyQU=\"\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: \"5ab6b93ff68eabdfc78a56cd06287488\"\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\": \"gxuefd\",\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:9a27c9c0\", ts=\"1350347684\", nonce=\"de867d\", mac=\"lU2GEerF+2s7RXwjVwexPF468Lq26nwjx0DqhAnQWFs=\"\n```\n\n```text\nHTTP/1.1
|
|
200 OK\nContent-Type: application/vnd.tent.v0+json\nETag: \"fa8ebdb78a06191c8b1673c21af99449\"\nCache-Control:
|
|
max-age=0, private, must-revalidate\nContent-Length: 806\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\": \"gxuefd\",\n \"created_at\": 1350347684,\n \"updated_at\":
|
|
1350347684,\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\": \"Necessitatibus architecto
|
|
corrupti asperiores laboriosam ut.\",\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:9a27c9c0\", ts=\"1350347684\", nonce=\"f10cb6\", mac=\"5oU6EWPUsCoAnXSmXcRsTvFKTJgXd9oYgoZ2CkZFz/Q=\"\n```\n\n```text\nHTTP/1.1
|
|
200 OK\nContent-Type: application/vnd.tent.v0+json\nETag: \"c8fb09ee9c6e70a02c778c65186153b1\"\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\": 1350347684,\n \"permissions\": {\n \"groups\": [\n\n
|
|
\ ],\n \"entities\": {\n },\n \"public\": true\n },\n \"id\":
|
|
\"srwwpy\",\n \"updated_at\": 1350347684,\n \"received_at\": 1350347684,\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\":
|
|
1350347683,\n \"permissions\": {\n \"groups\": [\n\n ],\n \"entities\":
|
|
{\n },\n \"public\": true\n },\n \"id\": \"lweg22\",\n \"updated_at\":
|
|
1350347684,\n \"received_at\": 1350347683,\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\": 1350347683,\n \"permissions\":
|
|
{\n \"groups\": [\n\n ],\n \"entities\": {\n },\n \"public\":
|
|
true\n },\n \"id\": \"8t1x4i\",\n \"updated_at\": 1350347683,\n \"received_at\":
|
|
1350347683,\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/8t1x4i HTTP/1.1\nAccept: application/vnd.tent.v0+json\nAuthorization:
|
|
MAC id=\"u:9a27c9c0\", ts=\"1350347684\", nonce=\"422b5f\", mac=\"GYN93aCU++W1x7DogFyC2q9Cp4Ur7sikdCmeS1qkWpk=\"\n```\n\n```text\nHTTP/1.1
|
|
200 OK\nContent-Type: application/vnd.tent.v0+json\nETag: \"e2b2baceb915c444ead894c68c00dcdd\"\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\": 1350347683,\n \"permissions\": {\n
|
|
\ \"groups\": [\n\n ],\n \"entities\": {\n },\n \"public\": true\n
|
|
\ },\n \"id\": \"8t1x4i\",\n \"updated_at\": 1350347683,\n \"received_at\":
|
|
1350347683,\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/8t1x4i HTTP/1.1\nAccept: application/vnd.tent.v0+json\nAuthorization:
|
|
MAC id=\"s:06ede672\", ts=\"1350347684\", nonce=\"4bdf85\", mac=\"JKQQ0xfRaN3M/950j1Kf+Lcr8E4UfLF24Aya0h8WlcM=\"\n```\n\n```text\nHTTP/1.1
|
|
200 OK\nContent-Type: application/vnd.tent.v0+json\nETag: \"6cc2b6d6f4d2d221567b78c94bdbf7e1\"\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\": 1350347683,\n \"permissions\": {\n
|
|
\ \"public\": true\n },\n \"id\": \"8t1x4i\",\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:06ede672\", ts=\"1350347684\", nonce=\"26f13b\", mac=\"iVnHcpL1TqdSveBwn6u8dt79Mk23FaSTvq7FzwKhAF0=\"\n```\n\n```text\nHTTP/1.1
|
|
200 OK\nContent-Type: application/vnd.tent.v0+json\nETag: \"304116a82c02a2f004d3f3de0e2f416e\"\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\": 1350347684,\n \"permissions\": {\n \"public\": true\n
|
|
\ },\n \"id\": \"srwwpy\",\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\":
|
|
1350347683,\n \"permissions\": {\n \"public\": true\n },\n \"id\":
|
|
\"lweg22\",\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\": 1350347683,\n
|
|
\ \"permissions\": {\n \"public\": true\n },\n \"id\": \"8t1x4i\",\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/gxuefd HTTP/1.1\nAccept: application/vnd.tent.v0+json\nAuthorization:
|
|
MAC id=\"s:06ede672\", ts=\"1350347684\", nonce=\"a27fc3\", mac=\"/ZWXjpQfrBslViu5rgGx82woKagq9gZNY9/zVKpriRY=\"\n```\n\n```text\nHTTP/1.1
|
|
200 OK\nContent-Type: text/html\nCache-Control: \nContent-Length: 0\n```\n"
|
|
:variables:
|
|
:app_code: !binary |-
|
|
OGE0NTFkNDEyZGE5YzBmMDRjZmYwZWI5OGEzMDIzYjU=
|
|
:app_id: 326ee3
|
|
:post_id: 8t1x4i
|
|
:follower_id: gxuefd
|