{ "uuid": "db134ae4-2a79-41b2-8792-35dd60beefd1", "lastMigration": 19, "name": "Medium.com - Unofficial API Spec", "endpointPrefix": "v1", "latency": 0, "port": 3000, "hostname": "0.0.0.0", "routes": [ { "uuid": "3eb4185c-f023-4da9-b7b8-0fc37b8c187d", "documentation": "User details", "method": "get", "endpoint": "me", "responses": [ { "uuid": "1f973b21-5073-46e1-8b12-de323f4440eb", "body": "{\n \"data\": {\n \"id\": \"5303d74c64f66366f00cb9b2a94f3251bf5\",\n \"imageUrl\": \"https://images.medium.com/0*fkfQiTzT7TlUGGyI.png\",\n \"name\": \"Jamie Talbot\",\n \"url\": \"https://medium.com/@majelbstoat\",\n \"username\": \"majelbstoat\"\n }\n}", "latency": 0, "statusCode": 200, "label": "OK", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "90e9ff8e-4acd-41f9-b7e3-50cd0c2d380f", "body": "", "latency": 0, "statusCode": 401, "label": "The `accessToken` is invalid or has been revoked.", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false } ], "enabled": true, "randomResponse": false, "sequentialResponse": false }, { "uuid": "f6337879-3d85-498e-9227-43813a722549", "documentation": "Contributors of Publication", "method": "get", "endpoint": "publications/:publicationId/contributors", "responses": [ { "uuid": "29721ce4-d29c-4eb8-9ecb-281115126043", "body": "{\n \"data\": [\n {\n \"publicationId\": \"b45573563f5a\",\n \"role\": \"editor\",\n \"userId\": \"13a06af8f81849c64dafbce822cbafbfab7ed7cecf82135bca946807ea351290d\"\n },\n {\n \"publicationId\": \"b45573563f5a\",\n \"role\": \"editor\",\n \"userId\": \"1c9c63b15b874d3e354340b7d7458d55e1dda0f6470074df1cc99608a372866ac\"\n },\n {\n \"publicationId\": \"b45573563f5a\",\n \"role\": \"editor\",\n \"userId\": \"1cc07499453463518b77d31650c0b53609dc973ad8ebd33690c7be9236e9384ad\"\n },\n {\n \"publicationId\": \"b45573563f5a\",\n \"role\": \"writer\",\n \"userId\": \"196f70942410555f4b3030debc4f199a0d5a0309a7b9df96c57b8ec6e4b5f11d7\"\n },\n {\n \"publicationId\": \"b45573563f5a\",\n \"role\": \"writer\",\n \"userId\": \"14d4a581f21ff537d245461b8ff2ae9b271b57d9554e25d863e3df6ef03ddd480\"\n }\n ]\n}", "latency": 0, "statusCode": 200, "label": "OK", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "7a57ef98-f10f-4e3f-93f8-c23ee143ea59", "body": "", "latency": 0, "statusCode": 401, "label": "The `accessToken` is invalid or has been revoked.", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false } ], "enabled": true, "randomResponse": false, "sequentialResponse": false }, { "uuid": "3a1ae0b1-61a3-4b61-b0fd-6b8612a8a142", "documentation": "Create Publication Post", "method": "post", "endpoint": "publications/:publicationId/posts", "responses": [ { "uuid": "5c88cabf-285d-4cef-917d-f51c446effc7", "body": "{\n \"data\": {\n \"authorId\": \"5303d74c64f66366f00cb9b2a94f3251bf5\",\n \"canonicalUrl\": \"http://jamietalbot.com/posts/liverpool-fc\",\n \"id\": \"e6f36a\",\n \"license\": \"all-rights-reserved\",\n \"licenseUrl\": \"https://medium.com/policy/9db0094a1e0f\",\n \"publishStatus\": \"public\",\n \"publishedAt\": 1442286338435,\n \"tags\": [\n \"football\",\n \"sport\",\n \"Liverpool\"\n ],\n \"title\": \"Liverpool FC\",\n \"url\": \"https://medium.com/@majelbstoat/liverpool-fc-e6f36a\"\n }\n}", "latency": 0, "statusCode": 200, "label": "OK", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "683970a3-9a7e-40ab-b3af-d105a76c4d8c", "body": "", "latency": 0, "statusCode": 400, "label": "Required fields were invalid, not specified.", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "f66e5a2b-9ee2-48aa-8102-939ec866a0cb", "body": "", "latency": 0, "statusCode": 401, "label": "The `accessToken` is invalid or has been revoked.", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "a09991e7-04c2-43ad-a5d2-fcf87ae8f600", "body": "", "latency": 0, "statusCode": 403, "label": "The `publicationId` in request path doesn’t point to a publication that the user can publish into.", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false } ], "enabled": true, "randomResponse": false, "sequentialResponse": false }, { "uuid": "75f7ef9e-198d-4af2-a561-92dcc40d66a2", "documentation": "Create User Post", "method": "post", "endpoint": "users/:authorId/posts", "responses": [ { "uuid": "52019716-0eaf-4fef-8429-6e2df0cfe9dd", "body": "{\n \"data\": {\n \"authorId\": \"5303d74c64f66366f00cb9b2a94f3251bf5\",\n \"canonicalUrl\": \"http://jamietalbot.com/posts/liverpool-fc\",\n \"id\": \"e6f36a\",\n \"license\": \"all-rights-reserved\",\n \"licenseUrl\": \"https://medium.com/policy/9db0094a1e0f\",\n \"publishStatus\": \"public\",\n \"publishedAt\": 1442286338435,\n \"tags\": [\n \"football\",\n \"sport\",\n \"Liverpool\"\n ],\n \"title\": \"Liverpool FC\",\n \"url\": \"https://medium.com/@majelbstoat/liverpool-fc-e6f36a\"\n }\n}", "latency": 0, "statusCode": 200, "label": "OK", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "95f27578-a90b-4804-a8b6-3f42ce3c2fda", "body": "", "latency": 0, "statusCode": 400, "label": "Required fields were invalid, not specified.", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "e51fc2ef-ac95-40dd-a07d-445dbf6250a5", "body": "", "latency": 0, "statusCode": 401, "label": "The `accessToken` is invalid or has been revoked.", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "0a16983b-f86d-4593-8f87-2521850eb72e", "body": "", "latency": 0, "statusCode": 403, "label": "The user does not have permission to publish, or the authorId in the request path points to wrong/non-existent user.", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false } ], "enabled": true, "randomResponse": false, "sequentialResponse": false }, { "uuid": "a47cf4ba-78f4-4a6d-85d3-17ffc1d753b6", "documentation": "User's publications", "method": "get", "endpoint": "users/:userId/publications", "responses": [ { "uuid": "c57bdc6d-4208-472d-8e85-d3862ec6102a", "body": "{\n \"data\": [\n {\n \"description\": \"What is this thing and how does it work?\",\n \"id\": \"b969ac62a46b\",\n \"imageUrl\": \"https://cdn-images-1.medium.com/fit/c/200/200/0*ae1jbP_od0W6EulE.jpeg\",\n \"name\": \"About Medium\",\n \"url\": \"https://medium.com/about\"\n },\n {\n \"description\": \"Medium’s Developer resources\",\n \"id\": \"b45573563f5a\",\n \"imageUrl\": \"https://cdn-images-1.medium.com/fit/c/200/200/1*ccokMT4VXmDDO1EoQQHkzg@2x.png\",\n \"name\": \"Developers\",\n \"url\": \"https://medium.com/developers\"\n }\n ]\n}", "latency": 0, "statusCode": 200, "label": "OK", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "224caf42-fe95-4f89-b4bf-715c994c6f18", "body": "", "latency": 0, "statusCode": 401, "label": "The `accessToken` is invalid, lacks the `listPublications` scope or has been revoked.", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "5d36898b-f3a9-4915-b096-7510a06982e7", "body": "", "latency": 0, "statusCode": 403, "label": "The request attempts to list publications for another user.", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false } ], "enabled": true, "randomResponse": false, "sequentialResponse": false } ], "proxyMode": false, "proxyHost": "", "proxyRemovePrefix": false, "tlsOptions": { "enabled": false, "type": "CERT", "pfxPath": "", "certPath": "", "keyPath": "", "caPath": "", "passphrase": "" }, "cors": true, "headers": [], "proxyReqHeaders": [ { "key": "", "value": "" } ], "proxyResHeaders": [ { "key": "", "value": "" } ] }