From 0c5bf27b83a4301261513073be8c1165c0a4dfac Mon Sep 17 00:00:00 2001 From: Jesse Stuart Date: Sun, 21 Oct 2012 10:53:25 -0400 Subject: [PATCH] Add DELETE /posts/:id example --- content/docs/api_examples.yaml | 319 ++++++++++++++++----------------- content/docs/app-server.md | 8 + 2 files changed, 166 insertions(+), 161 deletions(-) diff --git a/content/docs/api_examples.yaml b/content/docs/api_examples.yaml index e561281..9c03a23 100644 --- a/content/docs/api_examples.yaml +++ b/content/docs/api_examples.yaml @@ -1,15 +1,15 @@ --- :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 + 200 OK\nContent-Type: application/vnd.tent.v0+json\nETag: \"f9bf86f953b0d36631f0f40ef582a07b\"\nCache-Control: + max-age=0, private, must-revalidate\nContent-Length: 502\n```\n\n```json\n{\n \ \"https://tent.io/types/info/basic/v0.1.0\": {\n \"name\": \"The Tentity\",\n \ \"avatar_url\": \"http://example.org/avatar.jpg\",\n \"birthdate\": \"2012-08-23\",\n \ \"location\": \"The Internet\",\n \"gender\": \"Unknown\",\n \"bio\": - \"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 + \"Cupiditate ipsum est et dolorum dolore et quia.\",\n \"permissions\": {\n + \ \"public\": true\n }\n },\n \"https://tent.io/types/info/core/v0.1.0\": + {\n \"licenses\": [\n \"http://creativecommons.org/licenses/by/3.0/\"\n + \ ],\n \"entity\": \"https://example.org\",\n \"servers\": [\n \"https://tent.example.com\",\n \ \"http://eqt5g4fuenphqinx.onion/\"\n ],\n \"permissions\": {\n \"public\": true\n }\n }\n}\n```\n" :create_app: ! "\n```text\nPOST /apps HTTP/1.1\nContent-Type: application/vnd.tent.v0+json\nAccept: @@ -19,33 +19,33 @@ \ ],\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: + \"29756da4ba6ee0caeb3edde2dea21700\"\nCache-Control: max-age=0, private, must-revalidate\nContent-Length: 459\n```\n\n```json\n{\n \"name\": \"FooApp\",\n \"description\": \"Does amazing foos with your data\",\n \"url\": \"http://example.com\",\n \"icon\": \"http://example.com/icon.png\",\n \ \"redirect_uris\": [\n \"https://app.example.com/tent/callback\"\n ],\n \ \"scopes\": {\n \"write_profile\": \"Uses an app profile section to describe foos\",\n \"read_followings\": \"Calculates foos based on your followings\"\n - \ },\n \"id\": \"326ee3\",\n \"mac_key_id\": \"a:02ddb3b8\",\n \"mac_key\": - \"1bdaa909e7e1254d41c102775b20c605\",\n \"mac_algorithm\": \"hmac-sha-256\",\n + \ },\n \"id\": \"t1jrsh\",\n \"mac_key_id\": \"a:f72404a9\",\n \"mac_key\": + \"05bbbe4c7933d44f6bfee0da41f90b14\",\n \"mac_algorithm\": \"hmac-sha-256\",\n \ \"authorizations\": [\n\n ]\n}\n```\n" - :app_auth: ! "\n```text\nPOST /apps/326ee3/authorizations HTTP/1.1\nContent-Type: + :app_auth: ! "\n```text\nPOST /apps/t1jrsh/authorizations HTTP/1.1\nContent-Type: application/vnd.tent.v0+json\nAccept: application/vnd.tent.v0+json\nAuthorization: - MAC id=\"a: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: + MAC id=\"a:f72404a9\", ts=\"1350831026\", nonce=\"0ce437\", mac=\"3heLNevLWzVqWHAtgiG950vCX7yFpkQAzxyQjocC/G0=\"\n```\n\n```json\n{\n + \ \"code\": \"93ffa6b7cf3cc984d62e32c7a5a4a51d\",\n \"token_type\": \"mac\"\n}\n```\n\n```text\nHTTP/1.1 + 200 OK\nContent-Type: application/vnd.tent.v0+json\nETag: \"50c2221a5e3d0ee19428c5d6882d46ec\"\nCache-Control: max-age=0, private, must-revalidate\nContent-Length: 124\n```\n\n```json\n{\n - \ \"access_token\": \"u:9a27c9c0\",\n \"mac_key\": \"01a72852b917af2f16a782c08fcec23f\",\n + \ \"access_token\": \"u:57aab444\",\n \"mac_key\": \"0b45297e3044a41a2b052f6b622d5bd1\",\n \ \"mac_algorithm\": \"hmac-sha-256\",\n \"token_type\": \"mac\"\n}\n```\n" - :get_app: ! "\n```text\nGET /apps/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: + :get_app: ! "\n```text\nGET /apps/t1jrsh HTTP/1.1\nAccept: application/vnd.tent.v0+json\nAuthorization: + MAC id=\"a:f72404a9\", ts=\"1350831026\", nonce=\"91f259\", mac=\"BJgod9FEOiDeSDGKOQRSh8ABTILlSzrX09OZvC65cmE=\"\n```\n\n```text\nHTTP/1.1 + 200 OK\nContent-Type: application/vnd.tent.v0+json\nETag: \"df05a6cf3ea26771148294c5020fd8ed\"\nCache-Control: max-age=0, private, must-revalidate\nContent-Length: 853\n```\n\n```json\n{\n \ \"name\": \"FooApp\",\n \"description\": \"Does amazing foos with your data\",\n \ \"url\": \"http://example.com\",\n \"icon\": \"http://example.com/icon.png\",\n \ \"redirect_uris\": [\n \"https://app.example.com/tent/callback\"\n ],\n \ \"scopes\": {\n \"write_profile\": \"Uses an app profile section to describe foos\",\n \"read_followings\": \"Calculates foos based on your followings\"\n - \ },\n \"id\": \"326ee3\",\n \"authorizations\": [\n {\n \"post_types\": + \ },\n \"id\": \"t1jrsh\",\n \"authorizations\": [\n {\n \"post_types\": [\n \"https://tent.io/types/post/status/v0.1.0\",\n \"https://tent.io/types/post/photo/v0.1.0\"\n \ ],\n \"profile_info_types\": [\n \"https://tent.io/types/info/basic/v0.1.0\"\n \ ],\n \"scopes\": [\n \"read_posts\",\n \"write_posts\",\n @@ -54,24 +54,24 @@ \ \"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 \"notification_url\": null,\n \"id\": \"66ie07\"\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 + :update_app: ! "\n```text\nPUT /apps/t1jrsh HTTP/1.1\nContent-Type: application/vnd.tent.v0+json\nAccept: + application/vnd.tent.v0+json\nAuthorization: MAC id=\"a:f72404a9\", ts=\"1350831026\", + nonce=\"b873ef\", mac=\"5QOtR40s5oukTD6LNLeLH/aSmw1ECHJEZ01eANmvKdo=\"\n```\n\n```json\n{\n \ \"name\": \"FooApp\",\n \"description\": \"Does amazing foos with your data\",\n \ \"url\": \"http://example.com\",\n \"icon\": \"http://example.org/icon.png\",\n \ \"redirect_uris\": [\n \"https://app.example.com/tent/callback\"\n ],\n \ \"scopes\": {\n \"write_profile\": \"Uses an app profile section to describe foos\",\n \"read_followings\": \"Calculates foos based on your followings\"\n \ }\n}\n```\n\n```text\nHTTP/1.1 200 OK\nContent-Type: application/vnd.tent.v0+json\nETag: - \"d20fedfdd7fb7fc52665f71e70ac4844\"\nCache-Control: max-age=0, private, must-revalidate\nContent-Length: + \"f09a046ad244e3643fd6135bcaeefd3d\"\nCache-Control: max-age=0, private, must-revalidate\nContent-Length: 853\n```\n\n```json\n{\n \"name\": \"FooApp\",\n \"description\": \"Does amazing foos with your data\",\n \"url\": \"http://example.com\",\n \"icon\": \"http://example.org/icon.png\",\n \ \"redirect_uris\": [\n \"https://app.example.com/tent/callback\"\n ],\n \ \"scopes\": {\n \"write_profile\": \"Uses an app profile section to describe foos\",\n \"read_followings\": \"Calculates foos based on your followings\"\n - \ },\n \"id\": \"326ee3\",\n \"authorizations\": [\n {\n \"post_types\": + \ },\n \"id\": \"t1jrsh\",\n \"authorizations\": [\n {\n \"post_types\": [\n \"https://tent.io/types/post/status/v0.1.0\",\n \"https://tent.io/types/post/photo/v0.1.0\"\n \ ],\n \"profile_info_types\": [\n \"https://tent.io/types/info/basic/v0.1.0\"\n \ ],\n \"scopes\": [\n \"read_posts\",\n \"write_posts\",\n @@ -80,7 +80,7 @@ \ \"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 \"notification_url\": null,\n \"id\": \"66ie07\"\n }\n \ ]\n}\n```\n" :discovery: ! ' @@ -110,61 +110,60 @@ ' :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 + MAC id=\"u:57aab444\", ts=\"1350831026\", nonce=\"47dfdc\", mac=\"1I2wNUw2DIf/1pKNA9zNgARULzYtbxd3/v8cGnXPOpU=\"\n```\n\n```json\n{\n \ \"name\": \"The Tentity\",\n \"avatar_url\": \"http://example.org/avatar.jpg\",\n \ \"birthdate\": \"2012-08-23\",\n \"location\": \"The Internet\",\n \"gender\": - \"Unknown\",\n \"bio\": \"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 + \"Unknown\",\n \"bio\": \"Fugiat illo saepe exercitationem.\"\n}\n```\n\n```text\nHTTP/1.1 + 200 OK\nContent-Type: application/vnd.tent.v0+json\nETag: \"8a25799232579036a54a38c52868b39e\"\nCache-Control: + max-age=0, private, must-revalidate\nContent-Length: 540\n```\n\n```json\n{\n + \ \"https://tent.io/types/info/core/v0.1.0\": {\n \"licenses\": [\n \"http://creativecommons.org/licenses/by/3.0/\"\n + \ ],\n \"entity\": \"https://example.org\",\n \"servers\": [\n \"https://tent.example.com\",\n \ \"http://eqt5g4fuenphqinx.onion/\"\n ],\n \"permissions\": {\n \"groups\": [\n\n ],\n \"entities\": {\n },\n \"public\": true\n }\n \ },\n \"https://tent.io/types/info/basic/v0.1.0\": {\n \"name\": \"The Tentity\",\n \ \"avatar_url\": \"http://example.org/avatar.jpg\",\n \"birthdate\": \"2012-08-23\",\n \ \"location\": \"The Internet\",\n \"gender\": \"Unknown\",\n \"bio\": - \"Necessitatibus architecto corrupti asperiores laboriosam ut.\",\n \"permissions\": - {\n \"groups\": [\n\n ],\n \"entities\": {\n },\n \"public\": - true\n }\n }\n}\n```\n" + \"Fugiat illo saepe exercitationem.\",\n \"permissions\": {\n \"groups\": + [\n\n ],\n \"entities\": {\n },\n \"public\": true\n }\n + \ }\n}\n```\n" :create_post: ! "\n```text\nPOST /posts HTTP/1.1\nContent-Type: application/vnd.tent.v0+json\nAccept: - application/vnd.tent.v0+json\nAuthorization: MAC id=\"u:9a27c9c0\", ts=\"1350347683\", - nonce=\"8fa4c1\", mac=\"x861WqTLTGw9uVN89l1Zci+IUARAXGxI9QL7upBaeFU=\"\n```\n\n```json\n{\n + application/vnd.tent.v0+json\nAuthorization: MAC id=\"u:57aab444\", ts=\"1350831026\", + nonce=\"ffb789\", mac=\"9DEpqB5taspjfqy3cuXgvk4zR+dwDlJaxe/FTFkA8aI=\"\n```\n\n```json\n{\n \ \"type\": \"https://tent.io/types/post/status/v0.1.0\",\n \"published_at\": - 1350347683,\n \"permissions\": {\n \"public\": true\n },\n \"licenses\": + 1350831026,\n \"permissions\": {\n \"public\": true\n },\n \"licenses\": [\n \"http://creativecommons.org/licenses/by/3.0/\"\n ],\n \"content\": {\n \ \"text\": \"Just landed.\",\n \"location\": {\n \"type\": \"Point\",\n \ \"coordinates\": [\n 50.923878,\n 4.028605\n ]\n }\n \ }\n}\n```\n\n```text\nHTTP/1.1 200 OK\nContent-Type: application/vnd.tent.v0+json\nETag: - \"e2b2baceb915c444ead894c68c00dcdd\"\nCache-Control: max-age=0, private, must-revalidate\nContent-Length: + \"f2f5e502cf6b6f300b23459933d7b1e0\"\nCache-Control: max-age=0, private, must-revalidate\nContent-Length: 477\n```\n\n```json\n{\n \"entity\": \"https://example.org\",\n \"licenses\": [\n \"http://creativecommons.org/licenses/by/3.0/\"\n ],\n \"content\": {\n \ \"text\": \"Just landed.\",\n \"location\": {\n \"type\": \"Point\",\n \ \"coordinates\": [\n 50.923878,\n 4.028605\n ]\n }\n - \ },\n \"published_at\": 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 \"published_at\": 1350831026,\n \"permissions\": {\n \"groups\": [\n\n + \ ],\n \"entities\": {\n },\n \"public\": true\n },\n \"id\": \"v09ivz\",\n + \ \"updated_at\": 1350831026,\n \"received_at\": 1350831026,\n \"attachments\": [\n\n ],\n \"type\": \"https://tent.io/types/post/status/v0.1.0\",\n \"version\": 1,\n \"app\": {\n \"url\": \"http://example.com\",\n \"name\": \"FooApp\"\n \ },\n \"mentions\": [\n\n ]\n}\n```\n" :create_post_with_attachments: ! "\n```text\nPOST /posts HTTP/1.1\nContent-Type: multipart/form-data;boundary=-----------TentAttachment\nAccept: application/vnd.tent.v0+json\nAuthorization: - MAC id=\"u:9a27c9c0\", ts=\"1350347684\", nonce=\"babd81\", mac=\"PVPVvymyIoJ96ZvaxpvCZgR71ncTkaBMfd67/Tz/qtk=\"\n```\n\n```text\n-------------TentAttachment\r\nContent-Disposition: + MAC id=\"u:57aab444\", ts=\"1350831026\", nonce=\"775dcd\", mac=\"2x3f5yUdI1HZeGzooF2+y4P/2gI13qwmEplypV+WwDY=\"\n```\n\n```text\n-------------TentAttachment\r\nContent-Disposition: form-data; name=\"post\"; filename=\"post.json\"\r\nContent-Length: 206\r\nContent-Type: - application/vnd.tent.v0+json\r\nContent-Transfer-Encoding: binary\r\n\r\n{\"type\":\"https://tent.io/types/post/photo/v0.1.0\",\"published_at\":1350347684,\"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\":1350831026,\"permissions\":{\"public\":true},\"licenses\":[\"http://creativecommons.org/licenses/by/3.0/\"],\"content\":{\"caption\":\"Some fake photos\"}}\r\n-------------TentAttachment\r\nContent-Disposition: form-data; name=\"photos[0]\"; filename=\"fake_photo1.jpg\"\r\nContent-Length: 26\r\nContent-Type: image/jpeg\r\nContent-Transfer-Encoding: binary\r\n\r\nPhoto 1 data would go here\r\n-------------TentAttachment\r\nContent-Disposition: form-data; name=\"photos[1]\"; filename=\"fake_photo2.jpg\"\r\nContent-Length: 26\r\nContent-Type: image/jpeg\r\nContent-Transfer-Encoding: binary\r\n\r\nPhoto 2 data would go here\r\n-------------TentAttachment--\r\n\r\n\n```\n\n```text\nHTTP/1.1 - 200 OK\nContent-Type: application/vnd.tent.v0+json\nETag: \"876fd2a8597a6e9aceb4a6815cc10c4e\"\nCache-Control: + 200 OK\nContent-Type: application/vnd.tent.v0+json\nETag: \"28b458cfdff2c5ee9c2988e9e32d19b4\"\nCache-Control: max-age=0, private, must-revalidate\nContent-Length: 573\n```\n\n```json\n{\n \ \"entity\": \"https://example.org\",\n \"licenses\": [\n \"http://creativecommons.org/licenses/by/3.0/\"\n \ ],\n \"content\": {\n \"caption\": \"Some fake photos\"\n },\n \"published_at\": - 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\": + 1350831026,\n \"permissions\": {\n \"groups\": [\n\n ],\n \"entities\": + {\n },\n \"public\": true\n },\n \"id\": \"h2cfue\",\n \"updated_at\": + 1350831026,\n \"received_at\": 1350831026,\n \"attachments\": [\n {\n \"type\": \"image/jpeg\",\n \"category\": \"photos\",\n \"name\": \"fake_photo1.jpg\",\n \ \"size\": 26\n },\n {\n \"type\": \"image/jpeg\",\n \"category\": \"photos\",\n \"name\": \"fake_photo2.jpg\",\n \"size\": 26\n }\n @@ -175,11 +174,11 @@ ```text - GET /posts/srwwpy/attachments/fake_photo2.jpg HTTP/1.1 + GET /posts/h2cfue/attachments/fake_photo2.jpg HTTP/1.1 Accept: image/jpeg - Authorization: MAC id="u:9a27c9c0", ts="1350347684", nonce="62161e", mac="tD1i/oozogurBm9pUiwbeugNjxfMEl5bZXggLgb198k=" + Authorization: MAC id="u:57aab444", ts="1350831026", nonce="6398b0", mac="A8Qg27Qka4hc63fpoFYqo7W40QkvWv7mgcbNXtfV/hM=" ``` @@ -207,140 +206,135 @@ ' :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 + application/vnd.tent.v0+json\nAuthorization: MAC id=\"u:57aab444\", ts=\"1350831026\", + nonce=\"a2b121\", mac=\"fkNLG43w+L1/xNGIGZuukDc8mX5liI0GhiKzMO4ql2Y=\"\n```\n\n```json\n{\n \ \"entity\": \"https://example.org\"\n}\n```\n\n```text\nHTTP/1.1 200 OK\nContent-Type: - application/vnd.tent.v0+json\nETag: \"aa01305281afecc3658342af6be9ee33\"\nCache-Control: - max-age=0, private, must-revalidate\nContent-Length: 723\n```\n\n```json\n{\n + application/vnd.tent.v0+json\nETag: \"698cdc941a1e583f37b9fd8e85e778e0\"\nCache-Control: + max-age=0, private, must-revalidate\nContent-Length: 696\n```\n\n```json\n{\n \ \"entity\": \"https://example.org\",\n \"permissions\": {\n \"groups\": [\n\n ],\n \"entities\": {\n },\n \"public\": true\n },\n \"id\": - \"c88uqc\",\n \"created_at\": 1350347684,\n \"updated_at\": 1350347684,\n \"groups\": + \"ifegf4\",\n \"created_at\": 1350831026,\n \"updated_at\": 1350831026,\n \"groups\": [\n\n ],\n \"profile\": {\n \"https://tent.io/types/info/basic/v0.1.0\": {\n \"name\": \"The Tentity\",\n \"avatar_url\": \"http://example.org/avatar.jpg\",\n \ \"birthdate\": \"2012-08-23\",\n \"location\": \"The Internet\",\n - \ \"gender\": \"Unknown\",\n \"bio\": \"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 + \ \"gender\": \"Unknown\",\n \"bio\": \"Fugiat illo saepe exercitationem.\",\n + \ \"permissions\": {\n \"public\": true\n }\n },\n \"https://tent.io/types/info/core/v0.1.0\": + {\n \"licenses\": [\n \"http://creativecommons.org/licenses/by/3.0/\"\n + \ ],\n \"entity\": \"https://example.org\",\n \"servers\": [\n \"https://tent.example.com\",\n \ \"http://eqt5g4fuenphqinx.onion/\"\n ],\n \"permissions\": {\n \ \"public\": true\n }\n }\n },\n \"licenses\": [\n\n ],\n \"remote_id\": - \"9egzts\"\n}\n```\n" + \"unftvm\"\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 + MAC id=\"u:57aab444\", ts=\"1350831026\", nonce=\"87817a\", mac=\"wWzGgnvbG9EN0hpYsD5pGHKnZZoEeZj+YRrH1iXnarQ=\"\n```\n\n```text\nHTTP/1.1 + 200 OK\nContent-Type: application/vnd.tent.v0+json\nETag: \"6ddba05ec1cc467bdf2f369cef3d2ce8\"\nCache-Control: + max-age=0, private, must-revalidate\nContent-Length: 698\n```\n\n```json\n[\n \ {\n \"entity\": \"https://example.org\",\n \"permissions\": {\n \"groups\": [\n\n ],\n \"entities\": {\n },\n \"public\": true\n },\n - \ \"id\": \"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\": + \ \"id\": \"ifegf4\",\n \"created_at\": 1350831026,\n \"updated_at\": + 1350831026,\n \"groups\": [\n\n ],\n \"profile\": {\n \"https://tent.io/types/info/basic/v0.1.0\": {\n \"name\": \"The Tentity\",\n \"avatar_url\": \"http://example.org/avatar.jpg\",\n \ \"birthdate\": \"2012-08-23\",\n \"location\": \"The Internet\",\n - \ \"gender\": \"Unknown\",\n \"bio\": \"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 + \ \"gender\": \"Unknown\",\n \"bio\": \"Fugiat illo saepe exercitationem.\",\n + \ \"permissions\": {\n \"public\": true\n }\n },\n + \ \"https://tent.io/types/info/core/v0.1.0\": {\n \"licenses\": [\n + \ \"http://creativecommons.org/licenses/by/3.0/\"\n ],\n \"entity\": + \"https://example.org\",\n \"servers\": [\n \"https://tent.example.com\",\n + \ \"http://eqt5g4fuenphqinx.onion/\"\n ],\n \"permissions\": + {\n \"public\": true\n }\n }\n },\n \"licenses\": [\n\n + \ ],\n \"remote_id\": \"unftvm\"\n }\n]\n```\n" + :get_following: ! "\n```text\nGET /followings/ifegf4 HTTP/1.1\nAccept: application/vnd.tent.v0+json\nAuthorization: + MAC id=\"u:57aab444\", ts=\"1350831026\", nonce=\"127d23\", mac=\"sQ+2WcLz4lV9pWCx4so/E8Ced8c/0FQiKWHkjZw2RbA=\"\n```\n\n```text\nHTTP/1.1 + 200 OK\nContent-Type: application/vnd.tent.v0+json\nETag: \"698cdc941a1e583f37b9fd8e85e778e0\"\nCache-Control: + max-age=0, private, must-revalidate\nContent-Length: 696\n```\n\n```json\n{\n \ \"entity\": \"https://example.org\",\n \"permissions\": {\n \"groups\": [\n\n ],\n \"entities\": {\n },\n \"public\": true\n },\n \"id\": - \"c88uqc\",\n \"created_at\": 1350347684,\n \"updated_at\": 1350347684,\n \"groups\": + \"ifegf4\",\n \"created_at\": 1350831026,\n \"updated_at\": 1350831026,\n \"groups\": [\n\n ],\n \"profile\": {\n \"https://tent.io/types/info/basic/v0.1.0\": {\n \"name\": \"The Tentity\",\n \"avatar_url\": \"http://example.org/avatar.jpg\",\n \ \"birthdate\": \"2012-08-23\",\n \"location\": \"The Internet\",\n - \ \"gender\": \"Unknown\",\n \"bio\": \"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 + \ \"gender\": \"Unknown\",\n \"bio\": \"Fugiat illo saepe exercitationem.\",\n + \ \"permissions\": {\n \"public\": true\n }\n },\n \"https://tent.io/types/info/core/v0.1.0\": + {\n \"licenses\": [\n \"http://creativecommons.org/licenses/by/3.0/\"\n + \ ],\n \"entity\": \"https://example.org\",\n \"servers\": [\n \"https://tent.example.com\",\n \ \"http://eqt5g4fuenphqinx.onion/\"\n ],\n \"permissions\": {\n \ \"public\": true\n }\n }\n },\n \"licenses\": [\n\n ],\n \"remote_id\": - \"9egzts\"\n}\n```\n" + \"unftvm\"\n}\n```\n" :create_follower: ! "\n```text\nPOST /followers HTTP/1.1\nContent-Type: application/vnd.tent.v0+json\nAccept: application/vnd.tent.v0+json\n```\n\n```json\n{\n \"entity\": \"https://example.org\",\n - \ \"types\": [\n \"all\"\n ],\n \"notification_path\": \"notifications/c88uqc\",\n + \ \"types\": [\n \"all\"\n ],\n \"notification_path\": \"notifications/ifegf4\",\n \ \"licenses\": [\n \"http://creativecommons.org/licenses/by/3.0/\"\n ]\n}\n```\n\n```text\nHTTP/1.1 - 200 OK\nContent-Type: application/vnd.tent.v0+json\nETag: \"0ee9383bc932d80909ec65b77c49ea99\"\nCache-Control: + 200 OK\nContent-Type: application/vnd.tent.v0+json\nETag: \"b25b413ff9d0042c953cddc269d60568\"\nCache-Control: max-age=0, private, must-revalidate\nContent-Length: 253\n```\n\n```json\n{\n \ \"entity\": \"https://example.org\",\n \"permissions\": {\n \"public\": - true\n },\n \"id\": \"gxuefd\",\n \"mac_key_id\": \"s:06ede672\",\n \"mac_key\": - \"78d7d71e022d94728048738487236662\",\n \"mac_algorithm\": \"hmac-sha-256\",\n + true\n },\n \"id\": \"ram8he\",\n \"mac_key_id\": \"s:6fdcb540\",\n \"mac_key\": + \"8583f8dc112c8590aefd32f52d7985c2\",\n \"mac_algorithm\": \"hmac-sha-256\",\n \ \"licenses\": [\n \"http://creativecommons.org/licenses/by/3.0/\"\n ],\n \ \"types\": [\n \"all\"\n ]\n}\n```\n" - :delete_following: ! "\n```text\nDELETE /followings/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 + :delete_following: ! "\n```text\nDELETE /followings/ifegf4 HTTP/1.1\nAccept: application/vnd.tent.v0+json\nAuthorization: + MAC id=\"u:57aab444\", ts=\"1350831026\", nonce=\"4e3e23\", mac=\"F/krJ3FtxBEF0BzYNwy34SVoeP6FZmxIqmpBJ8Rug5w=\"\n```\n\n```text\nHTTP/1.1 200 OK\nContent-Type: text/html\nCache-Control: \nContent-Length: 0\n```\n" - :auth_get_follower: ! "\n```text\nGET /followers/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 + :auth_get_follower: ! "\n```text\nGET /followers/ram8he HTTP/1.1\nAccept: application/vnd.tent.v0+json\nAuthorization: + MAC id=\"u:57aab444\", ts=\"1350831026\", nonce=\"871194\", mac=\"Ilh3ub1kB9M/AtKJHEQnC4n5hwTKOdrwhaxmwc8zgkA=\"\n```\n\n```text\nHTTP/1.1 + 200 OK\nContent-Type: application/vnd.tent.v0+json\nETag: \"d62c33538352610a613462046bbf4432\"\nCache-Control: + max-age=0, private, must-revalidate\nContent-Length: 736\n```\n\n```json\n{\n \ \"entity\": \"https://example.org\",\n \"permissions\": {\n \"groups\": [\n\n ],\n \"entities\": {\n },\n \"public\": true\n },\n \"id\": - \"gxuefd\",\n \"created_at\": 1350347684,\n \"updated_at\": 1350347684,\n \"groups\": + \"ram8he\",\n \"created_at\": 1350831026,\n \"updated_at\": 1350831026,\n \"groups\": [\n\n ],\n \"profile\": {\n \"https://tent.io/types/info/basic/v0.1.0\": {\n \"name\": \"The Tentity\",\n \"avatar_url\": \"http://example.org/avatar.jpg\",\n \ \"birthdate\": \"2012-08-23\",\n \"location\": \"The Internet\",\n - \ \"gender\": \"Unknown\",\n \"bio\": \"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 + \ \"gender\": \"Unknown\",\n \"bio\": \"Fugiat illo saepe exercitationem.\",\n + \ \"permissions\": {\n \"public\": true\n }\n },\n \"https://tent.io/types/info/core/v0.1.0\": + {\n \"licenses\": [\n \"http://creativecommons.org/licenses/by/3.0/\"\n + \ ],\n \"entity\": \"https://example.org\",\n \"servers\": [\n \"https://tent.example.com\",\n \ \"http://eqt5g4fuenphqinx.onion/\"\n ],\n \"permissions\": {\n \ \"public\": true\n }\n }\n },\n \"licenses\": [\n \"http://creativecommons.org/licenses/by/3.0/\"\n \ ],\n \"types\": [\n \"all\"\n ]\n}\n```\n" - :get_follower: ! "\n```text\nGET /followers/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: + :get_follower: ! "\n```text\nGET /followers/ram8he HTTP/1.1\nAccept: application/vnd.tent.v0+json\nAuthorization: + MAC id=\"s:6fdcb540\", ts=\"1350831026\", nonce=\"faface\", mac=\"w1T0lynI0OOy1G93fL+JJLraaCgxSHcDTbXfN1Ob664=\"\n```\n\n```text\nHTTP/1.1 + 200 OK\nContent-Type: application/vnd.tent.v0+json\nETag: \"8cc9fe6fc3fcedacf9b152eedfcab5fb\"\nCache-Control: max-age=0, private, must-revalidate\nContent-Length: 151\n```\n\n```json\n{\n \ \"entity\": \"https://example.org\",\n \"permissions\": {\n \"public\": - true\n },\n \"id\": \"gxuefd\",\n \"licenses\": [\n \"http://creativecommons.org/licenses/by/3.0/\"\n + true\n },\n \"id\": \"ram8he\",\n \"licenses\": [\n \"http://creativecommons.org/licenses/by/3.0/\"\n \ ],\n \"types\": [\n \"all\"\n ]\n}\n```\n" - :update_follower: ! "\n```text\nPUT /followers/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 + :update_follower: ! "\n```text\nPUT /followers/ram8he HTTP/1.1\nContent-Type: application/vnd.tent.v0+json\nAccept: + application/vnd.tent.v0+json\nAuthorization: MAC id=\"s:6fdcb540\", ts=\"1350831026\", + nonce=\"5ea694\", mac=\"AcGGzzinhuzhSX/Z0t43H8yTWmy6ymo6Bf4chjldZnE=\"\n```\n\n```json\n{\n \ \"entity\": \"https://example.org\",\n \"licenses\": [\n \"http://creativecommons.org/licenses/by/3.0/\"\n \ ],\n \"types\": [\n \"https://tent.io/types/post/essay/v0.1.0#full\"\n ]\n}\n```\n\n```text\nHTTP/1.1 - 200 OK\nContent-Type: application/vnd.tent.v0+json\nETag: \"5ab6b93ff68eabdfc78a56cd06287488\"\nCache-Control: + 200 OK\nContent-Type: application/vnd.tent.v0+json\nETag: \"28bcb78c8164c2d88ee663fefaef5fac\"\nCache-Control: max-age=0, private, must-revalidate\nContent-Length: 192\n```\n\n```json\n{\n \ \"entity\": \"https://example.org\",\n \"permissions\": {\n \"public\": - true\n },\n \"id\": \"gxuefd\",\n \"licenses\": [\n \"http://creativecommons.org/licenses/by/3.0/\"\n + true\n },\n \"id\": \"ram8he\",\n \"licenses\": [\n \"http://creativecommons.org/licenses/by/3.0/\"\n \ ],\n \"types\": [\n \"https://tent.io/types/post/essay/v0.1.0#full\"\n ]\n}\n```\n" :get_followers: ! "\n```text\nGET /followers HTTP/1.1\nAccept: application/vnd.tent.v0+json\nAuthorization: - MAC id=\"u: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 + MAC id=\"u:57aab444\", ts=\"1350831026\", nonce=\"f88ea8\", mac=\"9Jvj1J0C5irQ60pOf9rDpvfLHVTGrTjXX6ltYLmMODY=\"\n```\n\n```text\nHTTP/1.1 + 200 OK\nContent-Type: application/vnd.tent.v0+json\nETag: \"fb8c84c8bd7e19faec0340d448d88bd3\"\nCache-Control: + max-age=0, private, must-revalidate\nContent-Length: 779\n```\n\n```json\n[\n \ {\n \"entity\": \"https://example.org\",\n \"permissions\": {\n \"groups\": [\n\n ],\n \"entities\": {\n },\n \"public\": true\n },\n - \ \"id\": \"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\": + \ \"id\": \"ram8he\",\n \"created_at\": 1350831026,\n \"updated_at\": + 1350831026,\n \"groups\": [\n\n ],\n \"profile\": {\n \"https://tent.io/types/info/basic/v0.1.0\": {\n \"name\": \"The Tentity\",\n \"avatar_url\": \"http://example.org/avatar.jpg\",\n \ \"birthdate\": \"2012-08-23\",\n \"location\": \"The Internet\",\n - \ \"gender\": \"Unknown\",\n \"bio\": \"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" + \ \"gender\": \"Unknown\",\n \"bio\": \"Fugiat illo saepe exercitationem.\",\n + \ \"permissions\": {\n \"public\": true\n }\n },\n + \ \"https://tent.io/types/info/core/v0.1.0\": {\n \"licenses\": [\n + \ \"http://creativecommons.org/licenses/by/3.0/\"\n ],\n \"entity\": + \"https://example.org\",\n \"servers\": [\n \"https://tent.example.com\",\n + \ \"http://eqt5g4fuenphqinx.onion/\"\n ],\n \"permissions\": + {\n \"public\": true\n }\n }\n },\n \"licenses\": [\n + \ \"http://creativecommons.org/licenses/by/3.0/\"\n ],\n \"types\": + [\n \"https://tent.io/types/post/essay/v0.1.0#full\"\n ]\n }\n]\n```\n" :get_posts: ! "\n```text\nGET /posts HTTP/1.1\nAccept: application/vnd.tent.v0+json\nAuthorization: - MAC id=\"u: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: + MAC id=\"u:57aab444\", ts=\"1350831026\", nonce=\"a1fd89\", mac=\"HoRA74fp7p6bSaT5sMBTw8WrRAh6xMcoXof7sBG5YQA=\"\n```\n\n```text\nHTTP/1.1 + 200 OK\nContent-Type: application/vnd.tent.v0+json\nETag: \"fdf810c6a5747a2e1d2af87c338dfb0a\"\nCache-Control: max-age=0, private, must-revalidate\nContent-Length: 1435\n```\n\n```json\n[\n \ {\n \"entity\": \"https://example.org\",\n \"licenses\": [\n \"http://creativecommons.org/licenses/by/3.0/\"\n \ ],\n \"content\": {\n \"caption\": \"Some fake photos\"\n },\n - \ \"published_at\": 1350347684,\n \"permissions\": {\n \"groups\": [\n\n + \ \"published_at\": 1350831026,\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 + \"h2cfue\",\n \"updated_at\": 1350831026,\n \"received_at\": 1350831026,\n \ \"attachments\": [\n {\n \"type\": \"image/jpeg\",\n \"category\": \"photos\",\n \"name\": \"fake_photo1.jpg\",\n \"size\": 26\n },\n \ {\n \"type\": \"image/jpeg\",\n \"category\": \"photos\",\n @@ -350,54 +344,54 @@ \ },\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 + 1350831026,\n \"permissions\": {\n \"groups\": [\n\n ],\n \"entities\": + {\n },\n \"public\": true\n },\n \"id\": \"x0y74e\",\n \"updated_at\": + 1350831026,\n \"received_at\": 1350831026,\n \"attachments\": [\n\n ],\n \ \"type\": \"https://tent.io/types/post/profile/v0.1.0\",\n \"version\": 2,\n \"app\": {\n \"url\": null,\n \"name\": null\n },\n \"mentions\": [\n\n ]\n },\n {\n \"entity\": \"https://example.org\",\n \"licenses\": [\n \"http://creativecommons.org/licenses/by/3.0/\"\n ],\n \"content\": {\n \"text\": \"Just landed.\",\n \"location\": {\n \"type\": \"Point\",\n \"coordinates\": [\n 50.923878,\n 4.028605\n - \ ]\n }\n },\n \"published_at\": 1350347683,\n \"permissions\": + \ ]\n }\n },\n \"published_at\": 1350831026,\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 + true\n },\n \"id\": \"v09ivz\",\n \"updated_at\": 1350831026,\n \"received_at\": + 1350831026,\n \"attachments\": [\n\n ],\n \"type\": \"https://tent.io/types/post/status/v0.1.0\",\n \ \"version\": 1,\n \"app\": {\n \"url\": \"http://example.com\",\n \ \"name\": \"FooApp\"\n },\n \"mentions\": [\n\n ]\n }\n]\n```\n" - :get_post: ! "\n```text\nGET /posts/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: + :get_post: ! "\n```text\nGET /posts/v09ivz HTTP/1.1\nAccept: application/vnd.tent.v0+json\nAuthorization: + MAC id=\"u:57aab444\", ts=\"1350831026\", nonce=\"bf1857\", mac=\"f1tBR9pq8CJ6E8wbN1FUaC7Co4aQarYmFFJc9iW5shI=\"\n```\n\n```text\nHTTP/1.1 + 200 OK\nContent-Type: application/vnd.tent.v0+json\nETag: \"f2f5e502cf6b6f300b23459933d7b1e0\"\nCache-Control: max-age=0, private, must-revalidate\nContent-Length: 477\n```\n\n```json\n{\n \ \"entity\": \"https://example.org\",\n \"licenses\": [\n \"http://creativecommons.org/licenses/by/3.0/\"\n \ ],\n \"content\": {\n \"text\": \"Just landed.\",\n \"location\": {\n \ \"type\": \"Point\",\n \"coordinates\": [\n 50.923878,\n 4.028605\n - \ ]\n }\n },\n \"published_at\": 1350347683,\n \"permissions\": {\n + \ ]\n }\n },\n \"published_at\": 1350831026,\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 + \ },\n \"id\": \"v09ivz\",\n \"updated_at\": 1350831026,\n \"received_at\": + 1350831026,\n \"attachments\": [\n\n ],\n \"type\": \"https://tent.io/types/post/status/v0.1.0\",\n \ \"version\": 1,\n \"app\": {\n \"url\": \"http://example.com\",\n \"name\": \"FooApp\"\n },\n \"mentions\": [\n\n ]\n}\n```\n" - :follower_get_post: ! "\n```text\nGET /posts/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: + :follower_get_post: ! "\n```text\nGET /posts/v09ivz HTTP/1.1\nAccept: application/vnd.tent.v0+json\nAuthorization: + MAC id=\"s:6fdcb540\", ts=\"1350831027\", nonce=\"860efe\", mac=\"zOtRgF/1VAG2gNdXhNlycIdNXtZkcNWo58zcO3IcRRU=\"\n```\n\n```text\nHTTP/1.1 + 200 OK\nContent-Type: application/vnd.tent.v0+json\nETag: \"593f2897853f1a3cc6f1ce7de5890522\"\nCache-Control: max-age=0, private, must-revalidate\nContent-Length: 402\n```\n\n```json\n{\n \ \"entity\": \"https://example.org\",\n \"licenses\": [\n \"http://creativecommons.org/licenses/by/3.0/\"\n \ ],\n \"content\": {\n \"text\": \"Just landed.\",\n \"location\": {\n \ \"type\": \"Point\",\n \"coordinates\": [\n 50.923878,\n 4.028605\n - \ ]\n }\n },\n \"published_at\": 1350347683,\n \"permissions\": {\n - \ \"public\": true\n },\n \"id\": \"8t1x4i\",\n \"attachments\": [\n\n ],\n + \ ]\n }\n },\n \"published_at\": 1350831026,\n \"permissions\": {\n + \ \"public\": true\n },\n \"id\": \"v09ivz\",\n \"attachments\": [\n\n ],\n \ \"type\": \"https://tent.io/types/post/status/v0.1.0\",\n \"version\": 1,\n \ \"app\": {\n \"url\": \"http://example.com\",\n \"name\": \"FooApp\"\n \ },\n \"mentions\": [\n\n ]\n}\n```\n" :follower_get_posts: ! "\n```text\nGET /posts HTTP/1.1\nAccept: application/vnd.tent.v0+json\nAuthorization: - MAC id=\"s: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: + MAC id=\"s:6fdcb540\", ts=\"1350831027\", nonce=\"19454c\", mac=\"0/4imTeKA4YUhL+Pf2YYhbXdp0FSBY+btJrTsjNkZxM=\"\n```\n\n```text\nHTTP/1.1 + 200 OK\nContent-Type: application/vnd.tent.v0+json\nETag: \"a32dd4983386a401255a1aee1666228a\"\nCache-Control: max-age=0, private, must-revalidate\nContent-Length: 1210\n```\n\n```json\n[\n \ {\n \"entity\": \"https://example.org\",\n \"licenses\": [\n \"http://creativecommons.org/licenses/by/3.0/\"\n \ ],\n \"content\": {\n \"caption\": \"Some fake photos\"\n },\n - \ \"published_at\": 1350347684,\n \"permissions\": {\n \"public\": true\n - \ },\n \"id\": \"srwwpy\",\n \"attachments\": [\n {\n \"type\": + \ \"published_at\": 1350831026,\n \"permissions\": {\n \"public\": true\n + \ },\n \"id\": \"h2cfue\",\n \"attachments\": [\n {\n \"type\": \"image/jpeg\",\n \"category\": \"photos\",\n \"name\": \"fake_photo1.jpg\",\n \ \"size\": 26\n },\n {\n \"type\": \"image/jpeg\",\n \"category\": \"photos\",\n \"name\": \"fake_photo2.jpg\",\n \"size\": 26\n }\n @@ -406,24 +400,27 @@ \ },\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 + 1350831026,\n \"permissions\": {\n \"public\": true\n },\n \"id\": + \"x0y74e\",\n \"attachments\": [\n\n ],\n \"type\": \"https://tent.io/types/post/profile/v0.1.0\",\n \ \"version\": 2,\n \"app\": {\n \"url\": null,\n \"name\": null\n \ },\n \"mentions\": [\n\n ]\n },\n {\n \"entity\": \"https://example.org\",\n \ \"licenses\": [\n \"http://creativecommons.org/licenses/by/3.0/\"\n ],\n \ \"content\": {\n \"text\": \"Just landed.\",\n \"location\": {\n \ \"type\": \"Point\",\n \"coordinates\": [\n 50.923878,\n - \ 4.028605\n ]\n }\n },\n \"published_at\": 1350347683,\n - \ \"permissions\": {\n \"public\": true\n },\n \"id\": \"8t1x4i\",\n + \ 4.028605\n ]\n }\n },\n \"published_at\": 1350831026,\n + \ \"permissions\": {\n \"public\": true\n },\n \"id\": \"v09ivz\",\n \ \"attachments\": [\n\n ],\n \"type\": \"https://tent.io/types/post/status/v0.1.0\",\n \ \"version\": 1,\n \"app\": {\n \"url\": \"http://example.com\",\n \ \"name\": \"FooApp\"\n },\n \"mentions\": [\n\n ]\n }\n]\n```\n" - :delete_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 + :delete_post: ! "\n```text\nDELETE /posts/v09ivz HTTP/1.1\nAccept: application/vnd.tent.v0+json\nAuthorization: + MAC id=\"u:57aab444\", ts=\"1350831027\", nonce=\"8f9bcd\", mac=\"gUxI0+dV3i4XpGFjIJjuUb6T369faQG8vU+MkOc5fNg=\"\n```\n\n```text\nHTTP/1.1 + 200 OK\nContent-Type: text/html\nCache-Control: \nContent-Length: 0\n```\n" + :delete_follower: ! "\n```text\nDELETE /followers/ram8he HTTP/1.1\nAccept: application/vnd.tent.v0+json\nAuthorization: + MAC id=\"s:6fdcb540\", ts=\"1350831027\", nonce=\"dc7549\", mac=\"Rmt0bo16gOgj1d9xYB5/RNLFyxFC4Xlf6SMhG7Zk+Fs=\"\n```\n\n```text\nHTTP/1.1 200 OK\nContent-Type: text/html\nCache-Control: \nContent-Length: 0\n```\n" :variables: :app_code: !binary |- - OGE0NTFkNDEyZGE5YzBmMDRjZmYwZWI5OGEzMDIzYjU= - :app_id: 326ee3 - :post_id: 8t1x4i - :follower_id: gxuefd + OTNmZmE2YjdjZjNjYzk4NGQ2MmUzMmM3YTVhNGE1MWQ= + :app_id: t1jrsh + :post_id: v09ivz + :follower_id: ram8he diff --git a/content/docs/app-server.md b/content/docs/app-server.md index 00664cb..93ba39a 100644 --- a/content/docs/app-server.md +++ b/content/docs/app-server.md @@ -142,3 +142,11 @@ Apps can create a new post with an attachment and send both to the server. Files Apps can retrieve attachments from a specific post by name and content-type from the server. {get_post_attachment example} + +### DELETE /posts/:id + +Apps can delete a specific post. + +{delete_post example} + +