Update follower/following api examples
This commit is contained in:
parent
970a5cb3be
commit
224dd1ceb8
2 changed files with 199 additions and 179 deletions
|
@ -1,15 +1,15 @@
|
||||||
---
|
---
|
||||||
:examples:
|
:examples:
|
||||||
:get_profile: ! "\n```text\nGET /profile HTTP/1.1\nAccept: application/vnd.tent.v0+json\n```\n\n```text\nHTTP/1.1
|
:get_profile: ! "\n```text\nGET /profile HTTP/1.1\nAccept: application/vnd.tent.v0+json\n```\n\n```text\nHTTP/1.1
|
||||||
200 OK\nContent-Type: application/vnd.tent.v0+json\nETag: \"d0c434ca68101cf5617fd8fa3793805e\"\nCache-Control:
|
200 OK\nContent-Type: application/vnd.tent.v0+json\nETag: \"922b4a98c5620e68935a7fbe9b168616\"\nCache-Control:
|
||||||
max-age=0, private, must-revalidate\nContent-Length: 507\n```\n\n```json\n{\n
|
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
|
\ \"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
|
\ \"avatar_url\": \"http://example.org/avatar.jpg\",\n \"birthdate\": \"2012-08-23\",\n
|
||||||
\ \"location\": \"The Internet\",\n \"gender\": \"Unknown\",\n \"bio\":
|
\ \"location\": \"The Internet\",\n \"gender\": \"Unknown\",\n \"bio\":
|
||||||
\"Corporis soluta tenetur quo ratione est perferendis.\",\n \"permissions\":
|
\"A qui cum ratione consequatur pariatur.\",\n \"permissions\": {\n \"public\":
|
||||||
{\n \"public\": true\n }\n },\n \"https://tent.io/types/info/core/v0.1.0\":
|
true\n }\n },\n \"https://tent.io/types/info/core/v0.1.0\": {\n \"licenses\":
|
||||||
{\n \"licenses\": [\n \"http://creativecommons.org/licenses/by/3.0/\"\n
|
[\n \"http://creativecommons.org/licenses/by/3.0/\"\n ],\n \"entity\":
|
||||||
\ ],\n \"entity\": \"https://example.org\",\n \"servers\": [\n \"https://tent.example.com\",\n
|
\"https://example.org\",\n \"servers\": [\n \"https://tent.example.com\",\n
|
||||||
\ \"http://eqt5g4fuenphqinx.onion/\"\n ],\n \"permissions\": {\n \"public\":
|
\ \"http://eqt5g4fuenphqinx.onion/\"\n ],\n \"permissions\": {\n \"public\":
|
||||||
true\n }\n }\n}\n```\n"
|
true\n }\n }\n}\n```\n"
|
||||||
:create_app: ! "\n```text\nPOST /apps HTTP/1.1\nContent-Type: application/vnd.tent.v0+json\nAccept:
|
:create_app: ! "\n```text\nPOST /apps HTTP/1.1\nContent-Type: application/vnd.tent.v0+json\nAccept:
|
||||||
|
@ -19,33 +19,33 @@
|
||||||
\ ],\n \"scopes\": {\n \"write_profile\": \"Uses an app profile section to
|
\ ],\n \"scopes\": {\n \"write_profile\": \"Uses an app profile section to
|
||||||
describe foos\",\n \"read_followings\": \"Calculates foos based on your followings\"\n
|
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:
|
\ }\n}\n```\n\n```text\nHTTP/1.1 200 OK\nContent-Type: application/vnd.tent.v0+json\nETag:
|
||||||
\"f03be14e84bd4cb1942275697b434905\"\nCache-Control: max-age=0, private, must-revalidate\nContent-Length:
|
\"6830d51267525fb77dac246979b8a33e\"\nCache-Control: max-age=0, private, must-revalidate\nContent-Length:
|
||||||
459\n```\n\n```json\n{\n \"name\": \"FooApp\",\n \"description\": \"Does amazing
|
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
|
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
|
\ \"redirect_uris\": [\n \"https://app.example.com/tent/callback\"\n ],\n
|
||||||
\ \"scopes\": {\n \"write_profile\": \"Uses an app profile section to describe
|
\ \"scopes\": {\n \"write_profile\": \"Uses an app profile section to describe
|
||||||
foos\",\n \"read_followings\": \"Calculates foos based on your followings\"\n
|
foos\",\n \"read_followings\": \"Calculates foos based on your followings\"\n
|
||||||
\ },\n \"id\": \"mukhq0\",\n \"mac_key_id\": \"a:18471add\",\n \"mac_key\":
|
\ },\n \"id\": \"326ee3\",\n \"mac_key_id\": \"a:02ddb3b8\",\n \"mac_key\":
|
||||||
\"279c23b1f6f341d0394f605beeee7c61\",\n \"mac_algorithm\": \"hmac-sha-256\",\n
|
\"1bdaa909e7e1254d41c102775b20c605\",\n \"mac_algorithm\": \"hmac-sha-256\",\n
|
||||||
\ \"authorizations\": [\n\n ]\n}\n```\n"
|
\ \"authorizations\": [\n\n ]\n}\n```\n"
|
||||||
:app_auth: ! "\n```text\nPOST /apps/mukhq0/authorizations HTTP/1.1\nContent-Type:
|
: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:
|
application/vnd.tent.v0+json\nAccept: application/vnd.tent.v0+json\nAuthorization:
|
||||||
MAC id=\"a:18471add\", ts=\"1350166212\", nonce=\"88d978\", mac=\"iHWsA5yP8FCoun6k67qibQuL5gkw8rvXsegVNyYI2kQ=\"\n```\n\n```json\n{\n
|
MAC id=\"a:02ddb3b8\", ts=\"1350347683\", nonce=\"482540\", mac=\"ii1D024o51q2WaJSXtCzd4d0abzKgUlK+E9RKvVMrH4=\"\n```\n\n```json\n{\n
|
||||||
\ \"code\": \"390b90206ebee7e043ed164717ac92b6\",\n \"token_type\": \"mac\"\n}\n```\n\n```text\nHTTP/1.1
|
\ \"code\": \"8a451d412da9c0f04cff0eb98a3023b5\",\n \"token_type\": \"mac\"\n}\n```\n\n```text\nHTTP/1.1
|
||||||
200 OK\nContent-Type: application/vnd.tent.v0+json\nETag: \"b7c1f34450e92a943af31b8f6a1676eb\"\nCache-Control:
|
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
|
max-age=0, private, must-revalidate\nContent-Length: 124\n```\n\n```json\n{\n
|
||||||
\ \"access_token\": \"u:480b0078\",\n \"mac_key\": \"c28632aaf522bcb31accf03dfdb11a0c\",\n
|
\ \"access_token\": \"u:9a27c9c0\",\n \"mac_key\": \"01a72852b917af2f16a782c08fcec23f\",\n
|
||||||
\ \"mac_algorithm\": \"hmac-sha-256\",\n \"token_type\": \"mac\"\n}\n```\n"
|
\ \"mac_algorithm\": \"hmac-sha-256\",\n \"token_type\": \"mac\"\n}\n```\n"
|
||||||
:get_app: ! "\n```text\nGET /apps/mukhq0 HTTP/1.1\nAccept: application/vnd.tent.v0+json\nAuthorization:
|
:get_app: ! "\n```text\nGET /apps/326ee3 HTTP/1.1\nAccept: application/vnd.tent.v0+json\nAuthorization:
|
||||||
MAC id=\"a:18471add\", ts=\"1350166212\", nonce=\"c582c0\", mac=\"KUld7qbS7qiDSaAGVCKZ/2W56cN123QN4x12EWpNz8w=\"\n```\n\n```text\nHTTP/1.1
|
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: \"464c3a93085f90c3caa98818605f3af2\"\nCache-Control:
|
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
|
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
|
\ \"name\": \"FooApp\",\n \"description\": \"Does amazing foos with your data\",\n
|
||||||
\ \"url\": \"http://example.com\",\n \"icon\": \"http://example.com/icon.png\",\n
|
\ \"url\": \"http://example.com\",\n \"icon\": \"http://example.com/icon.png\",\n
|
||||||
\ \"redirect_uris\": [\n \"https://app.example.com/tent/callback\"\n ],\n
|
\ \"redirect_uris\": [\n \"https://app.example.com/tent/callback\"\n ],\n
|
||||||
\ \"scopes\": {\n \"write_profile\": \"Uses an app profile section to describe
|
\ \"scopes\": {\n \"write_profile\": \"Uses an app profile section to describe
|
||||||
foos\",\n \"read_followings\": \"Calculates foos based on your followings\"\n
|
foos\",\n \"read_followings\": \"Calculates foos based on your followings\"\n
|
||||||
\ },\n \"id\": \"mukhq0\",\n \"authorizations\": [\n {\n \"post_types\":
|
\ },\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 \"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 \"profile_info_types\": [\n \"https://tent.io/types/info/basic/v0.1.0\"\n
|
||||||
\ ],\n \"scopes\": [\n \"read_posts\",\n \"write_posts\",\n
|
\ ],\n \"scopes\": [\n \"read_posts\",\n \"write_posts\",\n
|
||||||
|
@ -54,24 +54,24 @@
|
||||||
\ \"write_followings\",\n \"read_groups\",\n \"write_groups\",\n
|
\ \"write_followings\",\n \"read_groups\",\n \"write_groups\",\n
|
||||||
\ \"read_permissions\",\n \"write_permissions\",\n \"read_apps\",\n
|
\ \"read_permissions\",\n \"write_permissions\",\n \"read_apps\",\n
|
||||||
\ \"write_apps\",\n \"follow_ui\",\n \"read_secrets\",\n \"write_secrets\"\n
|
\ \"write_apps\",\n \"follow_ui\",\n \"read_secrets\",\n \"write_secrets\"\n
|
||||||
\ ],\n \"notification_url\": null,\n \"id\": \"2q6zmd\"\n }\n
|
\ ],\n \"notification_url\": null,\n \"id\": \"o7ua7b\"\n }\n
|
||||||
\ ]\n}\n```\n"
|
\ ]\n}\n```\n"
|
||||||
:update_app: ! "\n```text\nPUT /apps/mukhq0 HTTP/1.1\nContent-Type: application/vnd.tent.v0+json\nAccept:
|
: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:18471add\", ts=\"1350166212\",
|
application/vnd.tent.v0+json\nAuthorization: MAC id=\"a:02ddb3b8\", ts=\"1350347683\",
|
||||||
nonce=\"8ec7d1\", mac=\"wCqqFfdPD72tzkGFW350qq2H0VKS1VsF8vRYRiwtCtg=\"\n```\n\n```json\n{\n
|
nonce=\"3346fa\", mac=\"P9iClV4Jz470xEVUAfZfEh6MnzrYw+ifByeufKgkQqA=\"\n```\n\n```json\n{\n
|
||||||
\ \"name\": \"FooApp\",\n \"description\": \"Does amazing foos with your data\",\n
|
\ \"name\": \"FooApp\",\n \"description\": \"Does amazing foos with your data\",\n
|
||||||
\ \"url\": \"http://example.com\",\n \"icon\": \"http://example.org/icon.png\",\n
|
\ \"url\": \"http://example.com\",\n \"icon\": \"http://example.org/icon.png\",\n
|
||||||
\ \"redirect_uris\": [\n \"https://app.example.com/tent/callback\"\n ],\n
|
\ \"redirect_uris\": [\n \"https://app.example.com/tent/callback\"\n ],\n
|
||||||
\ \"scopes\": {\n \"write_profile\": \"Uses an app profile section to describe
|
\ \"scopes\": {\n \"write_profile\": \"Uses an app profile section to describe
|
||||||
foos\",\n \"read_followings\": \"Calculates foos based on your followings\"\n
|
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:
|
\ }\n}\n```\n\n```text\nHTTP/1.1 200 OK\nContent-Type: application/vnd.tent.v0+json\nETag:
|
||||||
\"4d3250c6d2304396c424f3bfb243c3fd\"\nCache-Control: max-age=0, private, must-revalidate\nContent-Length:
|
\"d20fedfdd7fb7fc52665f71e70ac4844\"\nCache-Control: max-age=0, private, must-revalidate\nContent-Length:
|
||||||
853\n```\n\n```json\n{\n \"name\": \"FooApp\",\n \"description\": \"Does amazing
|
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
|
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
|
\ \"redirect_uris\": [\n \"https://app.example.com/tent/callback\"\n ],\n
|
||||||
\ \"scopes\": {\n \"write_profile\": \"Uses an app profile section to describe
|
\ \"scopes\": {\n \"write_profile\": \"Uses an app profile section to describe
|
||||||
foos\",\n \"read_followings\": \"Calculates foos based on your followings\"\n
|
foos\",\n \"read_followings\": \"Calculates foos based on your followings\"\n
|
||||||
\ },\n \"id\": \"mukhq0\",\n \"authorizations\": [\n {\n \"post_types\":
|
\ },\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 \"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 \"profile_info_types\": [\n \"https://tent.io/types/info/basic/v0.1.0\"\n
|
||||||
\ ],\n \"scopes\": [\n \"read_posts\",\n \"write_posts\",\n
|
\ ],\n \"scopes\": [\n \"read_posts\",\n \"write_posts\",\n
|
||||||
|
@ -80,7 +80,7 @@
|
||||||
\ \"write_followings\",\n \"read_groups\",\n \"write_groups\",\n
|
\ \"write_followings\",\n \"read_groups\",\n \"write_groups\",\n
|
||||||
\ \"read_permissions\",\n \"write_permissions\",\n \"read_apps\",\n
|
\ \"read_permissions\",\n \"write_permissions\",\n \"read_apps\",\n
|
||||||
\ \"write_apps\",\n \"follow_ui\",\n \"read_secrets\",\n \"write_secrets\"\n
|
\ \"write_apps\",\n \"follow_ui\",\n \"read_secrets\",\n \"write_secrets\"\n
|
||||||
\ ],\n \"notification_url\": null,\n \"id\": \"2q6zmd\"\n }\n
|
\ ],\n \"notification_url\": null,\n \"id\": \"o7ua7b\"\n }\n
|
||||||
\ ]\n}\n```\n"
|
\ ]\n}\n```\n"
|
||||||
:discovery: ! '
|
:discovery: ! '
|
||||||
|
|
||||||
|
@ -110,13 +110,13 @@
|
||||||
'
|
'
|
||||||
:update_profile: ! "\n```text\nPUT /profile/https%3A%2F%2Ftent.io%2Ftypes%2Finfo%2Fbasic%2Fv0.1.0
|
: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:
|
HTTP/1.1\nContent-Type: application/vnd.tent.v0+json\nAccept: application/vnd.tent.v0+json\nAuthorization:
|
||||||
MAC id=\"u:480b0078\", ts=\"1350166212\", nonce=\"ef24d5\", mac=\"qMYPYRh/oUbmLkKOnt8UlXkitxPfQ+5E9XPtwFvTTG4=\"\n```\n\n```json\n{\n
|
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
|
\ \"name\": \"The Tentity\",\n \"avatar_url\": \"http://example.org/avatar.jpg\",\n
|
||||||
\ \"birthdate\": \"2012-08-23\",\n \"location\": \"The Internet\",\n \"gender\":
|
\ \"birthdate\": \"2012-08-23\",\n \"location\": \"The Internet\",\n \"gender\":
|
||||||
\"Unknown\",\n \"bio\": \"Non commodi aut deleniti reiciendis dolor aliquid pariatur
|
\"Unknown\",\n \"bio\": \"Necessitatibus architecto corrupti asperiores laboriosam
|
||||||
et.\"\n}\n```\n\n```text\nHTTP/1.1 200 OK\nContent-Type: application/vnd.tent.v0+json\nETag:
|
ut.\"\n}\n```\n\n```text\nHTTP/1.1 200 OK\nContent-Type: application/vnd.tent.v0+json\nETag:
|
||||||
\"91034deecfd5c3fe900455cd56d9b0ab\"\nCache-Control: max-age=0, private, must-revalidate\nContent-Length:
|
\"167859808eb5468a0dfe28719114753a\"\nCache-Control: max-age=0, private, must-revalidate\nContent-Length:
|
||||||
569\n```\n\n```json\n{\n \"https://tent.io/types/info/core/v0.1.0\": {\n \"licenses\":
|
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\":
|
[\n \"http://creativecommons.org/licenses/by/3.0/\"\n ],\n \"entity\":
|
||||||
\"https://example.org\",\n \"servers\": [\n \"https://tent.example.com\",\n
|
\"https://example.org\",\n \"servers\": [\n \"https://tent.example.com\",\n
|
||||||
\ \"http://eqt5g4fuenphqinx.onion/\"\n ],\n \"permissions\": {\n \"groups\":
|
\ \"http://eqt5g4fuenphqinx.onion/\"\n ],\n \"permissions\": {\n \"groups\":
|
||||||
|
@ -124,47 +124,47 @@
|
||||||
\ },\n \"https://tent.io/types/info/basic/v0.1.0\": {\n \"name\": \"The Tentity\",\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
|
\ \"avatar_url\": \"http://example.org/avatar.jpg\",\n \"birthdate\": \"2012-08-23\",\n
|
||||||
\ \"location\": \"The Internet\",\n \"gender\": \"Unknown\",\n \"bio\":
|
\ \"location\": \"The Internet\",\n \"gender\": \"Unknown\",\n \"bio\":
|
||||||
\"Non commodi aut deleniti reiciendis dolor aliquid pariatur et.\",\n \"permissions\":
|
\"Necessitatibus architecto corrupti asperiores laboriosam ut.\",\n \"permissions\":
|
||||||
{\n \"groups\": [\n\n ],\n \"entities\": {\n },\n \"public\":
|
{\n \"groups\": [\n\n ],\n \"entities\": {\n },\n \"public\":
|
||||||
true\n }\n }\n}\n```\n"
|
true\n }\n }\n}\n```\n"
|
||||||
:create_post: ! "\n```text\nPOST /posts HTTP/1.1\nContent-Type: application/vnd.tent.v0+json\nAccept:
|
:create_post: ! "\n```text\nPOST /posts HTTP/1.1\nContent-Type: application/vnd.tent.v0+json\nAccept:
|
||||||
application/vnd.tent.v0+json\nAuthorization: MAC id=\"u:480b0078\", ts=\"1350166212\",
|
application/vnd.tent.v0+json\nAuthorization: MAC id=\"u:9a27c9c0\", ts=\"1350347683\",
|
||||||
nonce=\"a8a1e2\", mac=\"h5ipFF83BuCG3Pauw8IoD7of9n7trx/M4G6yQ4nd/O4=\"\n```\n\n```json\n{\n
|
nonce=\"8fa4c1\", mac=\"x861WqTLTGw9uVN89l1Zci+IUARAXGxI9QL7upBaeFU=\"\n```\n\n```json\n{\n
|
||||||
\ \"type\": \"https://tent.io/types/post/status/v0.1.0\",\n \"published_at\":
|
\ \"type\": \"https://tent.io/types/post/status/v0.1.0\",\n \"published_at\":
|
||||||
1350166212,\n \"permissions\": {\n \"public\": true\n },\n \"licenses\":
|
1350347683,\n \"permissions\": {\n \"public\": true\n },\n \"licenses\":
|
||||||
[\n \"http://creativecommons.org/licenses/by/3.0/\"\n ],\n \"content\": {\n
|
[\n \"http://creativecommons.org/licenses/by/3.0/\"\n ],\n \"content\": {\n
|
||||||
\ \"text\": \"Just landed.\",\n \"location\": {\n \"type\": \"Point\",\n
|
\ \"text\": \"Just landed.\",\n \"location\": {\n \"type\": \"Point\",\n
|
||||||
\ \"coordinates\": [\n 50.923878,\n 4.028605\n ]\n }\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:
|
\ }\n}\n```\n\n```text\nHTTP/1.1 200 OK\nContent-Type: application/vnd.tent.v0+json\nETag:
|
||||||
\"2f199f9d3a81232634d644e1c0facd5d\"\nCache-Control: max-age=0, private, must-revalidate\nContent-Length:
|
\"e2b2baceb915c444ead894c68c00dcdd\"\nCache-Control: max-age=0, private, must-revalidate\nContent-Length:
|
||||||
477\n```\n\n```json\n{\n \"entity\": \"https://example.org\",\n \"licenses\":
|
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
|
[\n \"http://creativecommons.org/licenses/by/3.0/\"\n ],\n \"content\": {\n
|
||||||
\ \"text\": \"Just landed.\",\n \"location\": {\n \"type\": \"Point\",\n
|
\ \"text\": \"Just landed.\",\n \"location\": {\n \"type\": \"Point\",\n
|
||||||
\ \"coordinates\": [\n 50.923878,\n 4.028605\n ]\n }\n
|
\ \"coordinates\": [\n 50.923878,\n 4.028605\n ]\n }\n
|
||||||
\ },\n \"published_at\": 1350166212,\n \"permissions\": {\n \"groups\": [\n\n
|
\ },\n \"published_at\": 1350347683,\n \"permissions\": {\n \"groups\": [\n\n
|
||||||
\ ],\n \"entities\": {\n },\n \"public\": true\n },\n \"id\": \"kjyay9\",\n
|
\ ],\n \"entities\": {\n },\n \"public\": true\n },\n \"id\": \"8t1x4i\",\n
|
||||||
\ \"updated_at\": 1350166212,\n \"received_at\": 1350166212,\n \"attachments\":
|
\ \"updated_at\": 1350347683,\n \"received_at\": 1350347683,\n \"attachments\":
|
||||||
[\n\n ],\n \"type\": \"https://tent.io/types/post/status/v0.1.0\",\n \"version\":
|
[\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
|
1,\n \"app\": {\n \"url\": \"http://example.com\",\n \"name\": \"FooApp\"\n
|
||||||
\ },\n \"mentions\": [\n\n ]\n}\n```\n"
|
\ },\n \"mentions\": [\n\n ]\n}\n```\n"
|
||||||
:create_post_with_attachments: ! "\n```text\nPOST /posts HTTP/1.1\nContent-Type:
|
: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:
|
multipart/form-data;boundary=-----------TentAttachment\nAccept: application/vnd.tent.v0+json\nAuthorization:
|
||||||
MAC id=\"u:480b0078\", ts=\"1350166212\", nonce=\"898d18\", mac=\"h2GMb5ToLR1ed02L8SCEekdK2BH79I51m7YzDEUByPU=\"\n```\n\n```text\n-------------TentAttachment\r\nContent-Disposition:
|
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:
|
form-data; name=\"post\"; filename=\"post.json\"\r\nContent-Length: 206\r\nContent-Type:
|
||||||
application/vnd.tent.v0+json\r\nContent-Transfer-Encoding: binary\r\n\r\n{\"type\":\"https://tent.io/types/post/photo/v0.1.0\",\"published_at\":1350166212,\"permissions\":{\"public\":true},\"licenses\":[\"http://creativecommons.org/licenses/by/3.0/\"],\"content\":{\"caption\":\"Some
|
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;
|
fake photos\"}}\r\n-------------TentAttachment\r\nContent-Disposition: form-data;
|
||||||
name=\"photos[0]\"; filename=\"fake_photo1.jpg\"\r\nContent-Length: 26\r\nContent-Type:
|
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:
|
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:
|
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
|
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
|
2 data would go here\r\n-------------TentAttachment--\r\n\r\n\n```\n\n```text\nHTTP/1.1
|
||||||
200 OK\nContent-Type: application/vnd.tent.v0+json\nETag: \"17ba74c4d050d3b710bd898d2f9a1e4b\"\nCache-Control:
|
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
|
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
|
\ \"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\":
|
\ ],\n \"content\": {\n \"caption\": \"Some fake photos\"\n },\n \"published_at\":
|
||||||
1350166212,\n \"permissions\": {\n \"groups\": [\n\n ],\n \"entities\":
|
1350347684,\n \"permissions\": {\n \"groups\": [\n\n ],\n \"entities\":
|
||||||
{\n },\n \"public\": true\n },\n \"id\": \"tebyhp\",\n \"updated_at\":
|
{\n },\n \"public\": true\n },\n \"id\": \"srwwpy\",\n \"updated_at\":
|
||||||
1350166212,\n \"received_at\": 1350166212,\n \"attachments\": [\n {\n \"type\":
|
1350347684,\n \"received_at\": 1350347684,\n \"attachments\": [\n {\n \"type\":
|
||||||
\"image/jpeg\",\n \"category\": \"photos\",\n \"name\": \"fake_photo1.jpg\",\n
|
\"image/jpeg\",\n \"category\": \"photos\",\n \"name\": \"fake_photo1.jpg\",\n
|
||||||
\ \"size\": 26\n },\n {\n \"type\": \"image/jpeg\",\n \"category\":
|
\ \"size\": 26\n },\n {\n \"type\": \"image/jpeg\",\n \"category\":
|
||||||
\"photos\",\n \"name\": \"fake_photo2.jpg\",\n \"size\": 26\n }\n
|
\"photos\",\n \"name\": \"fake_photo2.jpg\",\n \"size\": 26\n }\n
|
||||||
|
@ -175,11 +175,11 @@
|
||||||
|
|
||||||
```text
|
```text
|
||||||
|
|
||||||
GET /posts/tebyhp/attachments/fake_photo2.jpg HTTP/1.1
|
GET /posts/srwwpy/attachments/fake_photo2.jpg HTTP/1.1
|
||||||
|
|
||||||
Accept: image/jpeg
|
Accept: image/jpeg
|
||||||
|
|
||||||
Authorization: MAC id="u:480b0078", ts="1350166212", nonce="326ea7", mac="Hip/44aXKLt648rXVlxy9GSCjVm7O2927u511WBn7Gs="
|
Authorization: MAC id="u:9a27c9c0", ts="1350347684", nonce="62161e", mac="tD1i/oozogurBm9pUiwbeugNjxfMEl5bZXggLgb198k="
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -207,103 +207,123 @@
|
||||||
|
|
||||||
'
|
'
|
||||||
:create_following: ! "\n```text\nPOST /followings HTTP/1.1\nContent-Type: application/vnd.tent.v0+json\nAccept:
|
:create_following: ! "\n```text\nPOST /followings HTTP/1.1\nContent-Type: application/vnd.tent.v0+json\nAccept:
|
||||||
application/vnd.tent.v0+json\nAuthorization: MAC id=\"u:480b0078\", ts=\"1350166212\",
|
application/vnd.tent.v0+json\nAuthorization: MAC id=\"u:9a27c9c0\", ts=\"1350347684\",
|
||||||
nonce=\"b58d2d\", mac=\"AtHOOyPnmXQ6wlM8WTJC0Biy4nMNpCO0uTjKah3OSrM=\"\n```\n\n```json\n{\n
|
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:
|
\ \"entity\": \"https://example.org\"\n}\n```\n\n```text\nHTTP/1.1 200 OK\nContent-Type:
|
||||||
application/vnd.tent.v0+json\nETag: \"8244193d2beb6014a01814f945794543\"\nCache-Control:
|
application/vnd.tent.v0+json\nETag: \"aa01305281afecc3658342af6be9ee33\"\nCache-Control:
|
||||||
max-age=0, private, must-revalidate\nContent-Length: 725\n```\n\n```json\n{\n
|
max-age=0, private, must-revalidate\nContent-Length: 723\n```\n\n```json\n{\n
|
||||||
\ \"remote_id\": \"4o3y4o\",\n \"entity\": \"https://example.org\",\n \"permissions\":
|
\ \"entity\": \"https://example.org\",\n \"permissions\": {\n \"groups\":
|
||||||
{\n \"groups\": [\n\n ],\n \"entities\": {\n },\n \"public\": true\n
|
[\n\n ],\n \"entities\": {\n },\n \"public\": true\n },\n \"id\":
|
||||||
\ },\n \"id\": \"pe0e6r\",\n \"created_at\": 1350166212,\n \"updated_at\":
|
\"c88uqc\",\n \"created_at\": 1350347684,\n \"updated_at\": 1350347684,\n \"groups\":
|
||||||
1350166212,\n \"groups\": [\n\n ],\n \"profile\": {\n \"https://tent.io/types/info/basic/v0.1.0\":
|
[\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
|
{\n \"name\": \"The Tentity\",\n \"avatar_url\": \"http://example.org/avatar.jpg\",\n
|
||||||
\ \"birthdate\": \"2012-08-23\",\n \"location\": \"The Internet\",\n
|
\ \"birthdate\": \"2012-08-23\",\n \"location\": \"The Internet\",\n
|
||||||
\ \"gender\": \"Unknown\",\n \"bio\": \"Non commodi aut deleniti reiciendis
|
\ \"gender\": \"Unknown\",\n \"bio\": \"Necessitatibus architecto corrupti
|
||||||
dolor aliquid pariatur et.\",\n \"permissions\": {\n \"public\": true\n
|
asperiores laboriosam ut.\",\n \"permissions\": {\n \"public\": true\n
|
||||||
\ }\n },\n \"https://tent.io/types/info/core/v0.1.0\": {\n \"licenses\":
|
\ }\n },\n \"https://tent.io/types/info/core/v0.1.0\": {\n \"licenses\":
|
||||||
[\n \"http://creativecommons.org/licenses/by/3.0/\"\n ],\n \"entity\":
|
[\n \"http://creativecommons.org/licenses/by/3.0/\"\n ],\n \"entity\":
|
||||||
\"https://example.org\",\n \"servers\": [\n \"https://tent.example.com\",\n
|
\"https://example.org\",\n \"servers\": [\n \"https://tent.example.com\",\n
|
||||||
\ \"http://eqt5g4fuenphqinx.onion/\"\n ],\n \"permissions\": {\n
|
\ \"http://eqt5g4fuenphqinx.onion/\"\n ],\n \"permissions\": {\n
|
||||||
\ \"public\": true\n }\n }\n },\n \"licenses\": [\n\n ]\n}\n```\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:
|
:get_followings: ! "\n```text\nGET /followings HTTP/1.1\nAccept: application/vnd.tent.v0+json\nAuthorization:
|
||||||
MAC id=\"u:480b0078\", ts=\"1350166212\", nonce=\"597d2d\", mac=\"lh/WAtJ/5UjzhD+3iS7BC3J5HrkBGJ8XBwD01eZB2cM=\"\n```\n\n```text\nHTTP/1.1
|
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: \"f5190f91f8b47a7265b8ee927f0310f3\"\nCache-Control:
|
200 OK\nContent-Type: application/vnd.tent.v0+json\nETag: \"99c92823741b0ff6a324e23b3dca6043\"\nCache-Control:
|
||||||
max-age=0, private, must-revalidate\nContent-Length: 727\n```\n\n```json\n[\n
|
max-age=0, private, must-revalidate\nContent-Length: 725\n```\n\n```json\n[\n
|
||||||
\ {\n \"remote_id\": \"4o3y4o\",\n \"entity\": \"https://example.org\",\n
|
|
||||||
\ \"permissions\": {\n \"groups\": [\n\n ],\n \"entities\": {\n
|
|
||||||
\ },\n \"public\": true\n },\n \"id\": \"pe0e6r\",\n \"created_at\":
|
|
||||||
1350166212,\n \"updated_at\": 1350166212,\n \"groups\": [\n\n ],\n \"profile\":
|
|
||||||
{\n \"https://tent.io/types/info/basic/v0.1.0\": {\n \"name\": \"The
|
|
||||||
Tentity\",\n \"avatar_url\": \"http://example.org/avatar.jpg\",\n \"birthdate\":
|
|
||||||
\"2012-08-23\",\n \"location\": \"The Internet\",\n \"gender\":
|
|
||||||
\"Unknown\",\n \"bio\": \"Non commodi aut deleniti reiciendis dolor aliquid
|
|
||||||
pariatur et.\",\n \"permissions\": {\n \"public\": true\n }\n
|
|
||||||
\ },\n \"https://tent.io/types/info/core/v0.1.0\": {\n \"licenses\":
|
|
||||||
[\n \"http://creativecommons.org/licenses/by/3.0/\"\n ],\n \"entity\":
|
|
||||||
\"https://example.org\",\n \"servers\": [\n \"https://tent.example.com\",\n
|
|
||||||
\ \"http://eqt5g4fuenphqinx.onion/\"\n ],\n \"permissions\":
|
|
||||||
{\n \"public\": true\n }\n }\n },\n \"licenses\": [\n\n
|
|
||||||
\ ]\n }\n]\n```\n"
|
|
||||||
:get_following: ! "\n```text\nGET /followings/pe0e6r HTTP/1.1\nAccept: application/vnd.tent.v0+json\nAuthorization:
|
|
||||||
MAC id=\"u:480b0078\", ts=\"1350166212\", nonce=\"2643cc\", mac=\"AFu8OanaCsQskxlLlcBFRRV4YdT8aD81rR/sFBQauHM=\"\n```\n\n```text\nHTTP/1.1
|
|
||||||
200 OK\nContent-Type: application/vnd.tent.v0+json\nETag: \"8244193d2beb6014a01814f945794543\"\nCache-Control:
|
|
||||||
max-age=0, private, must-revalidate\nContent-Length: 725\n```\n\n```json\n{\n
|
|
||||||
\ \"remote_id\": \"4o3y4o\",\n \"entity\": \"https://example.org\",\n \"permissions\":
|
|
||||||
{\n \"groups\": [\n\n ],\n \"entities\": {\n },\n \"public\": true\n
|
|
||||||
\ },\n \"id\": \"pe0e6r\",\n \"created_at\": 1350166212,\n \"updated_at\":
|
|
||||||
1350166212,\n \"groups\": [\n\n ],\n \"profile\": {\n \"https://tent.io/types/info/basic/v0.1.0\":
|
|
||||||
{\n \"name\": \"The Tentity\",\n \"avatar_url\": \"http://example.org/avatar.jpg\",\n
|
|
||||||
\ \"birthdate\": \"2012-08-23\",\n \"location\": \"The Internet\",\n
|
|
||||||
\ \"gender\": \"Unknown\",\n \"bio\": \"Non commodi aut deleniti reiciendis
|
|
||||||
dolor aliquid pariatur et.\",\n \"permissions\": {\n \"public\": true\n
|
|
||||||
\ }\n },\n \"https://tent.io/types/info/core/v0.1.0\": {\n \"licenses\":
|
|
||||||
[\n \"http://creativecommons.org/licenses/by/3.0/\"\n ],\n \"entity\":
|
|
||||||
\"https://example.org\",\n \"servers\": [\n \"https://tent.example.com\",\n
|
|
||||||
\ \"http://eqt5g4fuenphqinx.onion/\"\n ],\n \"permissions\": {\n
|
|
||||||
\ \"public\": true\n }\n }\n },\n \"licenses\": [\n\n ]\n}\n```\n"
|
|
||||||
:create_follower: ! "\n```text\nPOST /followers HTTP/1.1\nContent-Type: application/vnd.tent.v0+json\nAccept:
|
|
||||||
application/vnd.tent.v0+json\n```\n\n```json\n{\n \"entity\": \"https://example.org\",\n
|
|
||||||
\ \"types\": [\n \"all\"\n ],\n \"notification_path\": \"notifications/pe0e6r\",\n
|
|
||||||
\ \"licenses\": [\n \"http://creativecommons.org/licenses/by/3.0/\"\n ]\n}\n```\n\n```text\nHTTP/1.1
|
|
||||||
200 OK\nContent-Type: application/vnd.tent.v0+json\nETag: \"3d030fd97cbcdb9205ce8a0f48da84b0\"\nCache-Control:
|
|
||||||
max-age=0, private, must-revalidate\nContent-Length: 253\n```\n\n```json\n{\n
|
|
||||||
\ \"entity\": \"https://example.org\",\n \"permissions\": {\n \"public\":
|
|
||||||
true\n },\n \"id\": \"vqdc0y\",\n \"mac_key_id\": \"s:5758b054\",\n \"mac_key\":
|
|
||||||
\"c6d6fca906e7e958477c44d6afc15270\",\n \"mac_algorithm\": \"hmac-sha-256\",\n
|
|
||||||
\ \"licenses\": [\n \"http://creativecommons.org/licenses/by/3.0/\"\n ],\n
|
|
||||||
\ \"types\": [\n \"all\"\n ]\n}\n```\n"
|
|
||||||
:delete_following: ! "\n```text\nDELETE /followings/pe0e6r HTTP/1.1\nAccept: application/vnd.tent.v0+json\nAuthorization:
|
|
||||||
MAC id=\"u:480b0078\", ts=\"1350166212\", nonce=\"6fdd7a\", mac=\"XpiMm8dJ3I1vfUpVZDyr1ljJyxAhbaFHqBklaLogDAA=\"\n```\n\n```text\nHTTP/1.1
|
|
||||||
200 OK\nContent-Type: text/html\nCache-Control: \nContent-Length: 0\n```\n"
|
|
||||||
:get_follower: ! "\n```text\nGET /followers/vqdc0y HTTP/1.1\nAccept: application/vnd.tent.v0+json\nAuthorization:
|
|
||||||
MAC id=\"s:5758b054\", ts=\"1350166212\", nonce=\"22bed5\", mac=\"kjtQZEs6TsiiUPgWDvQ1UqCUxhsfowB/QLyvvLc/fgM=\"\n```\n\n```text\nHTTP/1.1
|
|
||||||
200 OK\nContent-Type: application/vnd.tent.v0+json\nETag: \"642f7e7dff0fba1459e12376584ebdbf\"\nCache-Control:
|
|
||||||
max-age=0, private, must-revalidate\nContent-Length: 151\n```\n\n```json\n{\n
|
|
||||||
\ \"entity\": \"https://example.org\",\n \"permissions\": {\n \"public\":
|
|
||||||
true\n },\n \"id\": \"vqdc0y\",\n \"licenses\": [\n \"http://creativecommons.org/licenses/by/3.0/\"\n
|
|
||||||
\ ],\n \"types\": [\n \"all\"\n ]\n}\n```\n"
|
|
||||||
:update_follower: ! "\n```text\nPUT /followers/vqdc0y HTTP/1.1\nContent-Type: application/vnd.tent.v0+json\nAccept:
|
|
||||||
application/vnd.tent.v0+json\nAuthorization: MAC id=\"s:5758b054\", ts=\"1350166212\",
|
|
||||||
nonce=\"afb2a5\", mac=\"pMWFCipFr/O/8Z0TG5WSskZfs3SSf6FpAxWIVPFvRLc=\"\n```\n\n```json\n{\n
|
|
||||||
\ \"entity\": \"https://example.org\",\n \"licenses\": [\n \"http://creativecommons.org/licenses/by/3.0/\"\n
|
|
||||||
\ ],\n \"types\": [\n \"https://tent.io/types/post/essay/v0.1.0#full\"\n ]\n}\n```\n\n```text\nHTTP/1.1
|
|
||||||
200 OK\nContent-Type: application/vnd.tent.v0+json\nETag: \"50beee57a6d33e326521faaf4174eb12\"\nCache-Control:
|
|
||||||
max-age=0, private, must-revalidate\nContent-Length: 192\n```\n\n```json\n{\n
|
|
||||||
\ \"entity\": \"https://example.org\",\n \"permissions\": {\n \"public\":
|
|
||||||
true\n },\n \"id\": \"vqdc0y\",\n \"licenses\": [\n \"http://creativecommons.org/licenses/by/3.0/\"\n
|
|
||||||
\ ],\n \"types\": [\n \"https://tent.io/types/post/essay/v0.1.0#full\"\n ]\n}\n```\n"
|
|
||||||
:get_followers: ! "\n```text\nGET /followers HTTP/1.1\nAccept: application/vnd.tent.v0+json\nAuthorization:
|
|
||||||
MAC id=\"u:480b0078\", ts=\"1350166212\", nonce=\"1a5b43\", mac=\"/qSomWw6BEKB3wIM1DiU9Z0fUtCUSY1mcs+nJPmZ/P8=\"\n```\n\n```text\nHTTP/1.1
|
|
||||||
200 OK\nContent-Type: application/vnd.tent.v0+json\nETag: \"2a5ec9f2b6774295dbf2b68747fb484e\"\nCache-Control:
|
|
||||||
max-age=0, private, must-revalidate\nContent-Length: 808\n```\n\n```json\n[\n
|
|
||||||
\ {\n \"entity\": \"https://example.org\",\n \"permissions\": {\n \"groups\":
|
\ {\n \"entity\": \"https://example.org\",\n \"permissions\": {\n \"groups\":
|
||||||
[\n\n ],\n \"entities\": {\n },\n \"public\": true\n },\n
|
[\n\n ],\n \"entities\": {\n },\n \"public\": true\n },\n
|
||||||
\ \"id\": \"vqdc0y\",\n \"created_at\": 1350166212,\n \"updated_at\":
|
\ \"id\": \"c88uqc\",\n \"created_at\": 1350347684,\n \"updated_at\":
|
||||||
1350166212,\n \"groups\": [\n\n ],\n \"profile\": {\n \"https://tent.io/types/info/basic/v0.1.0\":
|
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
|
{\n \"name\": \"The Tentity\",\n \"avatar_url\": \"http://example.org/avatar.jpg\",\n
|
||||||
\ \"birthdate\": \"2012-08-23\",\n \"location\": \"The Internet\",\n
|
\ \"birthdate\": \"2012-08-23\",\n \"location\": \"The Internet\",\n
|
||||||
\ \"gender\": \"Unknown\",\n \"bio\": \"Non commodi aut deleniti
|
\ \"gender\": \"Unknown\",\n \"bio\": \"Necessitatibus architecto
|
||||||
reiciendis dolor aliquid pariatur et.\",\n \"permissions\": {\n \"public\":
|
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
|
true\n }\n },\n \"https://tent.io/types/info/core/v0.1.0\": {\n
|
||||||
\ \"licenses\": [\n \"http://creativecommons.org/licenses/by/3.0/\"\n
|
\ \"licenses\": [\n \"http://creativecommons.org/licenses/by/3.0/\"\n
|
||||||
\ ],\n \"entity\": \"https://example.org\",\n \"servers\":
|
\ ],\n \"entity\": \"https://example.org\",\n \"servers\":
|
||||||
|
@ -313,71 +333,71 @@
|
||||||
\ ],\n \"types\": [\n \"https://tent.io/types/post/essay/v0.1.0#full\"\n
|
\ ],\n \"types\": [\n \"https://tent.io/types/post/essay/v0.1.0#full\"\n
|
||||||
\ ]\n }\n]\n```\n"
|
\ ]\n }\n]\n```\n"
|
||||||
:get_posts: ! "\n```text\nGET /posts HTTP/1.1\nAccept: application/vnd.tent.v0+json\nAuthorization:
|
:get_posts: ! "\n```text\nGET /posts HTTP/1.1\nAccept: application/vnd.tent.v0+json\nAuthorization:
|
||||||
MAC id=\"u:480b0078\", ts=\"1350166212\", nonce=\"de24eb\", mac=\"9+owBJTrojrkwV+wuL77BtMnZChijC7LE1lQ/HfBQ8U=\"\n```\n\n```text\nHTTP/1.1
|
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: \"911d8a47aa358d98b2f780b9b3ca0394\"\nCache-Control:
|
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
|
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 \"entity\": \"https://example.org\",\n \"licenses\": [\n \"http://creativecommons.org/licenses/by/3.0/\"\n
|
||||||
\ ],\n \"content\": {\n \"text\": \"Just landed.\",\n \"location\":
|
\ ],\n \"content\": {\n \"caption\": \"Some fake photos\"\n },\n
|
||||||
{\n \"type\": \"Point\",\n \"coordinates\": [\n 50.923878,\n
|
\ \"published_at\": 1350347684,\n \"permissions\": {\n \"groups\": [\n\n
|
||||||
\ 4.028605\n ]\n }\n },\n \"published_at\": 1350166212,\n
|
\ ],\n \"entities\": {\n },\n \"public\": true\n },\n \"id\":
|
||||||
\ \"permissions\": {\n \"groups\": [\n\n ],\n \"entities\": {\n
|
\"srwwpy\",\n \"updated_at\": 1350347684,\n \"received_at\": 1350347684,\n
|
||||||
\ },\n \"public\": true\n },\n \"id\": \"kjyay9\",\n \"updated_at\":
|
\ \"attachments\": [\n {\n \"type\": \"image/jpeg\",\n \"category\":
|
||||||
1350166212,\n \"received_at\": 1350166212,\n \"attachments\": [\n\n ],\n
|
\"photos\",\n \"name\": \"fake_photo1.jpg\",\n \"size\": 26\n },\n
|
||||||
\ \"type\": \"https://tent.io/types/post/status/v0.1.0\",\n \"version\":
|
\ {\n \"type\": \"image/jpeg\",\n \"category\": \"photos\",\n
|
||||||
1,\n \"app\": {\n \"url\": \"http://example.com\",\n \"name\": \"FooApp\"\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 \"mentions\": [\n\n ]\n },\n {\n \"entity\": null,\n \"licenses\":
|
||||||
[\n\n ],\n \"content\": {\n \"action\": \"update\",\n \"types\":
|
[\n\n ],\n \"content\": {\n \"action\": \"update\",\n \"types\":
|
||||||
[\n \"https://tent.io/types/info/basic/v0.1.0\"\n ]\n },\n \"published_at\":
|
[\n \"https://tent.io/types/info/basic/v0.1.0\"\n ]\n },\n \"published_at\":
|
||||||
1350166212,\n \"permissions\": {\n \"groups\": [\n\n ],\n \"entities\":
|
1350347683,\n \"permissions\": {\n \"groups\": [\n\n ],\n \"entities\":
|
||||||
{\n },\n \"public\": true\n },\n \"id\": \"73h1mo\",\n \"updated_at\":
|
{\n },\n \"public\": true\n },\n \"id\": \"lweg22\",\n \"updated_at\":
|
||||||
1350166212,\n \"received_at\": 1350166212,\n \"attachments\": [\n\n ],\n
|
1350347684,\n \"received_at\": 1350347683,\n \"attachments\": [\n\n ],\n
|
||||||
\ \"type\": \"https://tent.io/types/post/profile/v0.1.0\",\n \"version\":
|
\ \"type\": \"https://tent.io/types/post/profile/v0.1.0\",\n \"version\":
|
||||||
2,\n \"app\": {\n \"url\": null,\n \"name\": null\n },\n \"mentions\":
|
2,\n \"app\": {\n \"url\": null,\n \"name\": null\n },\n \"mentions\":
|
||||||
[\n\n ]\n },\n {\n \"entity\": \"https://example.org\",\n \"licenses\":
|
[\n\n ]\n },\n {\n \"entity\": \"https://example.org\",\n \"licenses\":
|
||||||
[\n \"http://creativecommons.org/licenses/by/3.0/\"\n ],\n \"content\":
|
[\n \"http://creativecommons.org/licenses/by/3.0/\"\n ],\n \"content\":
|
||||||
{\n \"caption\": \"Some fake photos\"\n },\n \"published_at\": 1350166212,\n
|
{\n \"text\": \"Just landed.\",\n \"location\": {\n \"type\":
|
||||||
\ \"permissions\": {\n \"groups\": [\n\n ],\n \"entities\": {\n
|
\"Point\",\n \"coordinates\": [\n 50.923878,\n 4.028605\n
|
||||||
\ },\n \"public\": true\n },\n \"id\": \"tebyhp\",\n \"updated_at\":
|
\ ]\n }\n },\n \"published_at\": 1350347683,\n \"permissions\":
|
||||||
1350166212,\n \"received_at\": 1350166212,\n \"attachments\": [\n {\n
|
{\n \"groups\": [\n\n ],\n \"entities\": {\n },\n \"public\":
|
||||||
\ \"type\": \"image/jpeg\",\n \"category\": \"photos\",\n \"name\":
|
true\n },\n \"id\": \"8t1x4i\",\n \"updated_at\": 1350347683,\n \"received_at\":
|
||||||
\"fake_photo1.jpg\",\n \"size\": 26\n },\n {\n \"type\":
|
1350347683,\n \"attachments\": [\n\n ],\n \"type\": \"https://tent.io/types/post/status/v0.1.0\",\n
|
||||||
\"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
|
\ \"version\": 1,\n \"app\": {\n \"url\": \"http://example.com\",\n
|
||||||
\ \"name\": \"FooApp\"\n },\n \"mentions\": [\n\n ]\n }\n]\n```\n"
|
\ \"name\": \"FooApp\"\n },\n \"mentions\": [\n\n ]\n }\n]\n```\n"
|
||||||
:get_post: ! "\n```text\nGET /posts/kjyay9 HTTP/1.1\nAccept: application/vnd.tent.v0+json\nAuthorization:
|
:get_post: ! "\n```text\nGET /posts/8t1x4i HTTP/1.1\nAccept: application/vnd.tent.v0+json\nAuthorization:
|
||||||
MAC id=\"u:480b0078\", ts=\"1350166212\", nonce=\"14bda3\", mac=\"koEa2ahpliSoGHL9IXy5QR4plEPjyPh8KPtSmVvRvaw=\"\n```\n\n```text\nHTTP/1.1
|
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: \"2f199f9d3a81232634d644e1c0facd5d\"\nCache-Control:
|
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
|
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
|
\ \"entity\": \"https://example.org\",\n \"licenses\": [\n \"http://creativecommons.org/licenses/by/3.0/\"\n
|
||||||
\ ],\n \"content\": {\n \"text\": \"Just landed.\",\n \"location\": {\n
|
\ ],\n \"content\": {\n \"text\": \"Just landed.\",\n \"location\": {\n
|
||||||
\ \"type\": \"Point\",\n \"coordinates\": [\n 50.923878,\n 4.028605\n
|
\ \"type\": \"Point\",\n \"coordinates\": [\n 50.923878,\n 4.028605\n
|
||||||
\ ]\n }\n },\n \"published_at\": 1350166212,\n \"permissions\": {\n
|
\ ]\n }\n },\n \"published_at\": 1350347683,\n \"permissions\": {\n
|
||||||
\ \"groups\": [\n\n ],\n \"entities\": {\n },\n \"public\": true\n
|
\ \"groups\": [\n\n ],\n \"entities\": {\n },\n \"public\": true\n
|
||||||
\ },\n \"id\": \"kjyay9\",\n \"updated_at\": 1350166212,\n \"received_at\":
|
\ },\n \"id\": \"8t1x4i\",\n \"updated_at\": 1350347683,\n \"received_at\":
|
||||||
1350166212,\n \"attachments\": [\n\n ],\n \"type\": \"https://tent.io/types/post/status/v0.1.0\",\n
|
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\":
|
\ \"version\": 1,\n \"app\": {\n \"url\": \"http://example.com\",\n \"name\":
|
||||||
\"FooApp\"\n },\n \"mentions\": [\n\n ]\n}\n```\n"
|
\"FooApp\"\n },\n \"mentions\": [\n\n ]\n}\n```\n"
|
||||||
:follower_get_post: ! "\n```text\nGET /posts/kjyay9 HTTP/1.1\nAccept: application/vnd.tent.v0+json\nAuthorization:
|
:follower_get_post: ! "\n```text\nGET /posts/8t1x4i HTTP/1.1\nAccept: application/vnd.tent.v0+json\nAuthorization:
|
||||||
MAC id=\"s:5758b054\", ts=\"1350166212\", nonce=\"d209c5\", mac=\"Y8PJ9pV7YjtHxaLltNdkBj/udPCQac2M5auoj+z2HGs=\"\n```\n\n```text\nHTTP/1.1
|
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: \"ff94332ffd66c78f8b5bc712f9651537\"\nCache-Control:
|
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
|
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
|
\ \"entity\": \"https://example.org\",\n \"licenses\": [\n \"http://creativecommons.org/licenses/by/3.0/\"\n
|
||||||
\ ],\n \"content\": {\n \"text\": \"Just landed.\",\n \"location\": {\n
|
\ ],\n \"content\": {\n \"text\": \"Just landed.\",\n \"location\": {\n
|
||||||
\ \"type\": \"Point\",\n \"coordinates\": [\n 50.923878,\n 4.028605\n
|
\ \"type\": \"Point\",\n \"coordinates\": [\n 50.923878,\n 4.028605\n
|
||||||
\ ]\n }\n },\n \"published_at\": 1350166212,\n \"permissions\": {\n
|
\ ]\n }\n },\n \"published_at\": 1350347683,\n \"permissions\": {\n
|
||||||
\ \"public\": true\n },\n \"id\": \"kjyay9\",\n \"attachments\": [\n\n ],\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
|
\ \"type\": \"https://tent.io/types/post/status/v0.1.0\",\n \"version\": 1,\n
|
||||||
\ \"app\": {\n \"url\": \"http://example.com\",\n \"name\": \"FooApp\"\n
|
\ \"app\": {\n \"url\": \"http://example.com\",\n \"name\": \"FooApp\"\n
|
||||||
\ },\n \"mentions\": [\n\n ]\n}\n```\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:
|
:follower_get_posts: ! "\n```text\nGET /posts HTTP/1.1\nAccept: application/vnd.tent.v0+json\nAuthorization:
|
||||||
MAC id=\"s:5758b054\", ts=\"1350166212\", nonce=\"03e811\", mac=\"68LQCmExkBbf+D7ogXpxlPVDzpsiEHiqK31474HqRF0=\"\n```\n\n```text\nHTTP/1.1
|
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: \"9a1037923f1672aa7aadef11aa49d268\"\nCache-Control:
|
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
|
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 \"entity\": \"https://example.org\",\n \"licenses\": [\n \"http://creativecommons.org/licenses/by/3.0/\"\n
|
||||||
\ ],\n \"content\": {\n \"caption\": \"Some fake photos\"\n },\n
|
\ ],\n \"content\": {\n \"caption\": \"Some fake photos\"\n },\n
|
||||||
\ \"published_at\": 1350166212,\n \"permissions\": {\n \"public\": true\n
|
\ \"published_at\": 1350347684,\n \"permissions\": {\n \"public\": true\n
|
||||||
\ },\n \"id\": \"tebyhp\",\n \"attachments\": [\n {\n \"type\":
|
\ },\n \"id\": \"srwwpy\",\n \"attachments\": [\n {\n \"type\":
|
||||||
\"image/jpeg\",\n \"category\": \"photos\",\n \"name\": \"fake_photo1.jpg\",\n
|
\"image/jpeg\",\n \"category\": \"photos\",\n \"name\": \"fake_photo1.jpg\",\n
|
||||||
\ \"size\": 26\n },\n {\n \"type\": \"image/jpeg\",\n \"category\":
|
\ \"size\": 26\n },\n {\n \"type\": \"image/jpeg\",\n \"category\":
|
||||||
\"photos\",\n \"name\": \"fake_photo2.jpg\",\n \"size\": 26\n }\n
|
\"photos\",\n \"name\": \"fake_photo2.jpg\",\n \"size\": 26\n }\n
|
||||||
|
@ -386,24 +406,24 @@
|
||||||
\ },\n \"mentions\": [\n\n ]\n },\n {\n \"entity\": null,\n \"licenses\":
|
\ },\n \"mentions\": [\n\n ]\n },\n {\n \"entity\": null,\n \"licenses\":
|
||||||
[\n\n ],\n \"content\": {\n \"action\": \"update\",\n \"types\":
|
[\n\n ],\n \"content\": {\n \"action\": \"update\",\n \"types\":
|
||||||
[\n \"https://tent.io/types/info/basic/v0.1.0\"\n ]\n },\n \"published_at\":
|
[\n \"https://tent.io/types/info/basic/v0.1.0\"\n ]\n },\n \"published_at\":
|
||||||
1350166212,\n \"permissions\": {\n \"public\": true\n },\n \"id\":
|
1350347683,\n \"permissions\": {\n \"public\": true\n },\n \"id\":
|
||||||
\"73h1mo\",\n \"attachments\": [\n\n ],\n \"type\": \"https://tent.io/types/post/profile/v0.1.0\",\n
|
\"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
|
\ \"version\": 2,\n \"app\": {\n \"url\": null,\n \"name\": null\n
|
||||||
\ },\n \"mentions\": [\n\n ]\n },\n {\n \"entity\": \"https://example.org\",\n
|
\ },\n \"mentions\": [\n\n ]\n },\n {\n \"entity\": \"https://example.org\",\n
|
||||||
\ \"licenses\": [\n \"http://creativecommons.org/licenses/by/3.0/\"\n ],\n
|
\ \"licenses\": [\n \"http://creativecommons.org/licenses/by/3.0/\"\n ],\n
|
||||||
\ \"content\": {\n \"text\": \"Just landed.\",\n \"location\": {\n
|
\ \"content\": {\n \"text\": \"Just landed.\",\n \"location\": {\n
|
||||||
\ \"type\": \"Point\",\n \"coordinates\": [\n 50.923878,\n
|
\ \"type\": \"Point\",\n \"coordinates\": [\n 50.923878,\n
|
||||||
\ 4.028605\n ]\n }\n },\n \"published_at\": 1350166212,\n
|
\ 4.028605\n ]\n }\n },\n \"published_at\": 1350347683,\n
|
||||||
\ \"permissions\": {\n \"public\": true\n },\n \"id\": \"kjyay9\",\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
|
\ \"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
|
\ \"version\": 1,\n \"app\": {\n \"url\": \"http://example.com\",\n
|
||||||
\ \"name\": \"FooApp\"\n },\n \"mentions\": [\n\n ]\n }\n]\n```\n"
|
\ \"name\": \"FooApp\"\n },\n \"mentions\": [\n\n ]\n }\n]\n```\n"
|
||||||
:delete_follower: ! "\n```text\nDELETE /followers/vqdc0y HTTP/1.1\nAccept: application/vnd.tent.v0+json\nAuthorization:
|
:delete_follower: ! "\n```text\nDELETE /followers/gxuefd HTTP/1.1\nAccept: application/vnd.tent.v0+json\nAuthorization:
|
||||||
MAC id=\"s:5758b054\", ts=\"1350166212\", nonce=\"799aa6\", mac=\"2f/F6FZifuDTcHyd2QUAs/r0thv5We3Wkme6Li4XJzc=\"\n```\n\n```text\nHTTP/1.1
|
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"
|
200 OK\nContent-Type: text/html\nCache-Control: \nContent-Length: 0\n```\n"
|
||||||
:variables:
|
:variables:
|
||||||
:app_code: !binary |-
|
:app_code: !binary |-
|
||||||
MzkwYjkwMjA2ZWJlZTdlMDQzZWQxNjQ3MTdhYzkyYjY=
|
OGE0NTFkNDEyZGE5YzBmMDRjZmYwZWI5OGEzMDIzYjU=
|
||||||
:app_id: mukhq0
|
:app_id: 326ee3
|
||||||
:post_id: kjyay9
|
:post_id: 8t1x4i
|
||||||
:follower_id: vqdc0y
|
:follower_id: gxuefd
|
||||||
|
|
|
@ -48,7 +48,7 @@ GET parameters can be used to filter and paginate the returned followings.
|
||||||
|
|
||||||
Apps can request information on the relationship with a specific entity being followed.
|
Apps can request information on the relationship with a specific entity being followed.
|
||||||
|
|
||||||
{get_followings example}
|
{get_following example}
|
||||||
|
|
||||||
|
|
||||||
### DELETE /followings/:id
|
### DELETE /followings/:id
|
||||||
|
@ -79,7 +79,7 @@ GET parameters can be used to filter and paginate the returned followers.
|
||||||
|
|
||||||
Apps can request information on a specific follower.
|
Apps can request information on a specific follower.
|
||||||
|
|
||||||
{get_follower example}
|
{auth_get_follower example}
|
||||||
|
|
||||||
|
|
||||||
### DELETE /followers/:id
|
### DELETE /followers/:id
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue