diff --git a/README.md b/README.md index cb264ae..3940aeb 100644 --- a/README.md +++ b/README.md @@ -27,10 +27,42 @@ Seedpress is a headless Node JS API server built with Express, for PostgreSQL us * [X] Authentication with JSON Web Token * [X] Email, Password validations * [X] User login and registration -* [X] API and Unit testing -* [X] Page, Post, Media and Tag models +* [X] Full API and Unit test coverage +* [X] Page and Term models with belongsToMany two way relationship * [X] Easily deployable to Heroku (Procfile) +### Schema + +* Post + * id + * postTitle + * postSlug + * postType + * postDate + * postContent + * postAuthor + * postImage + * postMedia + * postStatus + * postExpiry + * postFrequency + * postTerms + * createdAt + * updatedAt + +* Terms + * id + * termType + * termName + * createdAt + * updatedAt + +* PostTerms + * termId + * postId + * createdAt + * updatedAt + ### To run locally Make sure to install and run PostgreSQL first. There are a list of package.json @@ -57,7 +89,7 @@ yarn test #### Postman There is a postman collection file for API testing and development in -`test/newseed-api.postman_collection.json`. It contains scripts and +`test/seedpress-api.postman_collection.json`. It contains scripts and basic CRUD for: * /auth @@ -71,20 +103,6 @@ basic CRUD for: * [GET] All posts (/) * [GET] Single post (/:slug) -* /pages - * [POST] Single page (/ - with auth) - * [PATCH] Single page (/:slug - with auth) - * [DEL] Single page (/:slug - with auth) - * [GET] All pages (/) - * [GET] Single page (/:slug) - -* /media - * [POST] Single medium (/ - with auth) - * [PATCH] Single medium (/:slug - with auth) - * [DEL] Single medium (/:slug - with auth) - * [GET] All media (/) - * [GET] Single medium (/:slug) - ### To deploy on Heroku ``` heroku login diff --git a/server/api/post/controller.js b/server/api/post/controller.js index 4cafed6..abc4ff8 100644 --- a/server/api/post/controller.js +++ b/server/api/post/controller.js @@ -133,10 +133,10 @@ function updatePost(req, res) { if (!post.dataValues.postSlug.includes(newTitle)) { req.body.postSlug = `${newTitle}-${Date.now()}`; } - return post.uppostDateAttributes(req.body); + return post.updateAttributes(req.body); }) - .then((uppostDatedPost) => { - res.json(uppostDatedPost); + .then((updatedPost) => { + res.json(updatedPost); }) .catch((err) => res.status(400).send({ error: err.message diff --git a/test/newseed-api.postman_collection.json b/test/newseed-api.postman_collection.json deleted file mode 100644 index 8e82476..0000000 --- a/test/newseed-api.postman_collection.json +++ /dev/null @@ -1,2609 +0,0 @@ -{ - "info": { - "_postman_id": "f97e2d84-9654-400b-b368-a05933b11a6c", - "name": "newseed-api", - "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" - }, - "item": [ - { - "name": "auth", - "description": "", - "item": [ - { - "name": "localhost: 1337/auth/register", - "request": { - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\"email\":\"new@user.com\",\"password\":\"passwrod\"}" - }, - "url": { - "raw": "localhost:1337/auth/register", - "host": [ - "localhost" - ], - "port": "1337", - "path": [ - "auth", - "register" - ] - } - }, - "response": [ - { - "id": "a2c375a5-9af4-4d2e-80f9-b46c038c3742", - "name": "localhost: 1337/auth/register", - "originalRequest": { - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "disabled": false - } - ], - "body": { - "mode": "raw", - "raw": "{\"email\":\"new@user.com\",\"password\":\"passwrod\"}" - }, - "url": { - "raw": "localhost:1337/auth/register", - "host": [ - "localhost" - ], - "port": "1337", - "path": [ - "auth", - "register" - ] - } - }, - "status": "OK", - "code": 200, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Access-Control-Allow-Origin", - "value": "*", - "name": "Access-Control-Allow-Origin", - "description": "Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource." - }, - { - "key": "Connection", - "value": "keep-alive", - "name": "Connection", - "description": "Options that are desired for the connection" - }, - { - "key": "Content-Length", - "value": "776", - "name": "Content-Length", - "description": "The length of the response body in octets (8-bit bytes)" - }, - { - "key": "Content-Type", - "value": "application/json; charset=utf-8", - "name": "Content-Type", - "description": "The mime type of this content" - }, - { - "key": "Date", - "value": "Mon, 16 Jul 2018 04:53:21 GMT", - "name": "Date", - "description": "The date and time that the message was sent" - }, - { - "key": "ETag", - "value": "W/\"308-i+MiB35zBWmyyynQxm0G0r/hiWA\"", - "name": "ETag", - "description": "An identifier for a specific version of a resource, often a message digest" - }, - { - "key": "Strict-Transport-Security", - "value": "max-age=15552000; includeSubDomains", - "name": "Strict-Transport-Security", - "description": "A HSTS Policy informing the HTTP client how long to cache the HTTPS only policy and whether this applies to subdomains." - }, - { - "key": "Vary", - "value": "Accept-Encoding", - "name": "Vary", - "description": "Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server." - }, - { - "key": "X-Content-Type-Options", - "value": "nosniff", - "name": "X-Content-Type-Options", - "description": "The only defined value, \"nosniff\", prevents Internet Explorer from MIME-sniffing a response away from the declared content-type" - }, - { - "key": "X-DNS-Prefetch-Control", - "value": "off", - "name": "X-DNS-Prefetch-Control", - "description": "Custom header" - }, - { - "key": "X-Download-Options", - "value": "noopen", - "name": "X-Download-Options", - "description": "Custom header" - }, - { - "key": "X-Frame-Options", - "value": "SAMEORIGIN", - "name": "X-Frame-Options", - "description": "Clickjacking protection: \"deny\" - no rendering within a frame, \"sameorigin\" - no rendering if origin mismatch" - }, - { - "key": "X-XSS-Protection", - "value": "1; mode=block", - "name": "X-XSS-Protection", - "description": "Cross-site scripting (XSS) filter" - } - ], - "cookie": [], - "body": "{\"user\":{\"id\":\"aa305d9d-eb35-4fd2-81fe-023edb828430\",\"email\":\"new@user.com\",\"password\":\"$2b$10$F9sE70763SGtpc4j7V5Qhuo.nPmrWbTpWjGC7ZKwFzpX.S44yuSke\",\"updatedAt\":\"2018-07-16T04:53:21.647Z\",\"createdAt\":\"2018-07-16T04:53:21.647Z\",\"firstName\":null,\"lastName\":null},\"message\":\"User created successfully.\",\"token\":\"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImFhMzA1ZDlkLWViMzUtNGZkMi04MWZlLTAyM2VkYjgyODQzMCIsImVtYWlsIjoibmV3QHVzZXIuY29tIiwicGFzc3dvcmQiOiIkMmIkMTAkRjlzRTcwNzYzU0d0cGM0ajdWNVFodW8ublBtcldiVHBXakdDN1pLd0Z6cFguUzQ0eXVTa2UiLCJ1cGRhdGVkQXQiOiIyMDE4LTA3LTE2VDA0OjUzOjIxLjY0N1oiLCJjcmVhdGVkQXQiOiIyMDE4LTA3LTE2VDA0OjUzOjIxLjY0N1oiLCJmaXJzdE5hbWUiOm51bGwsImxhc3ROYW1lIjpudWxsLCJpYXQiOjE1MzE3MTY4MDEsImV4cCI6MTUzNDMwODgwMX0.RnhNEsgRwAA329dfYTAb2zumjDTps1BWS-wsJqWiYoc\"}" - } - ] - }, - { - "name": "localhost: 1337/auth/login/", - "request": { - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\"email\":\"user@email.com\",\"password\":\"passwrod\"}" - }, - "url": { - "raw": "localhost:1337/auth/login", - "host": [ - "localhost" - ], - "port": "1337", - "path": [ - "auth", - "login" - ] - } - }, - "response": [ - { - "id": "8ab70c41-48fd-46b7-bea9-1320361cb1a6", - "name": "localhost: 1337/auth/login/", - "originalRequest": { - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "disabled": false - } - ], - "body": { - "mode": "raw", - "raw": "{\"email\":\"user@email.com\",\"password\":\"passwrod\"}" - }, - "url": { - "raw": "localhost:1337/auth/login", - "host": [ - "localhost" - ], - "port": "1337", - "path": [ - "auth", - "login" - ] - } - }, - "status": "OK", - "code": 200, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Access-Control-Allow-Origin", - "value": "*", - "name": "Access-Control-Allow-Origin", - "description": "Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource." - }, - { - "key": "Connection", - "value": "keep-alive", - "name": "Connection", - "description": "Options that are desired for the connection" - }, - { - "key": "Content-Length", - "value": "786", - "name": "Content-Length", - "description": "The length of the response body in octets (8-bit bytes)" - }, - { - "key": "Content-Type", - "value": "application/json; charset=utf-8", - "name": "Content-Type", - "description": "The mime type of this content" - }, - { - "key": "Date", - "value": "Mon, 16 Jul 2018 04:49:16 GMT", - "name": "Date", - "description": "The date and time that the message was sent" - }, - { - "key": "ETag", - "value": "W/\"312-MnA2Kb1b2Y90PNhcT4kiNbko3Y8\"", - "name": "ETag", - "description": "An identifier for a specific version of a resource, often a message digest" - }, - { - "key": "Strict-Transport-Security", - "value": "max-age=15552000; includeSubDomains", - "name": "Strict-Transport-Security", - "description": "A HSTS Policy informing the HTTP client how long to cache the HTTPS only policy and whether this applies to subdomains." - }, - { - "key": "Vary", - "value": "Accept-Encoding", - "name": "Vary", - "description": "Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server." - }, - { - "key": "X-Content-Type-Options", - "value": "nosniff", - "name": "X-Content-Type-Options", - "description": "The only defined value, \"nosniff\", prevents Internet Explorer from MIME-sniffing a response away from the declared content-type" - }, - { - "key": "X-DNS-Prefetch-Control", - "value": "off", - "name": "X-DNS-Prefetch-Control", - "description": "Custom header" - }, - { - "key": "X-Download-Options", - "value": "noopen", - "name": "X-Download-Options", - "description": "Custom header" - }, - { - "key": "X-Frame-Options", - "value": "SAMEORIGIN", - "name": "X-Frame-Options", - "description": "Clickjacking protection: \"deny\" - no rendering within a frame, \"sameorigin\" - no rendering if origin mismatch" - }, - { - "key": "X-XSS-Protection", - "value": "1; mode=block", - "name": "X-XSS-Protection", - "description": "Cross-site scripting (XSS) filter" - } - ], - "cookie": [], - "body": "{\"user\":{\"id\":\"078b0d47-aad2-416a-8b46-5eafbe9c8d91\",\"firstName\":\"John\",\"lastName\":\"User\",\"email\":\"user@email.com\",\"password\":\"$2b$10$dC4GbBR9fmVF9xK6vth/zO.VQqinUoGF8hx6.mdbA/tGuEjKrl/u2\",\"createdAt\":\"2018-07-16T04:44:51.309Z\",\"updatedAt\":\"2018-07-16T04:44:51.309Z\"},\"message\":\"Logged in successfully\",\"token\":\"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjA3OGIwZDQ3LWFhZDItNDE2YS04YjQ2LTVlYWZiZTljOGQ5MSIsImZpcnN0TmFtZSI6IkpvaG4iLCJsYXN0TmFtZSI6IlVzZXIiLCJlbWFpbCI6InVzZXJAZW1haWwuY29tIiwicGFzc3dvcmQiOiIkMmIkMTAkZEM0R2JCUjlmbVZGOXhLNnZ0aC96Ty5WUXFpblVvR0Y4aHg2Lm1kYkEvdEd1RWpLcmwvdTIiLCJjcmVhdGVkQXQiOiIyMDE4LTA3LTE2VDA0OjQ0OjUxLjMwOVoiLCJ1cGRhdGVkQXQiOiIyMDE4LTA3LTE2VDA0OjQ0OjUxLjMwOVoiLCJpYXQiOjE1MzE3MTY1NTYsImV4cCI6MTUzNDMwODU1Nn0.alJ1-EjEr-v9B3ASLE0mwFu9qttGTk0EW5iUe3T_d-M\"}" - } - ] - } - ] - }, - { - "name": "posts", - "description": "", - "item": [ - { - "name": "localhost:1337/api/posts", - "request": { - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Authorization", - "value": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjZjZjc5YjZjLWMyZGEtNDczYS1iNjhkLTM4ODcwYzY4OTUzYiIsImZpcnN0TmFtZSI6IkpvaG4iLCJsYXN0TmFtZSI6IlVzZXIiLCJlbWFpbCI6InVzZXJAZW1haWwuY29tIiwicGFzc3dvcmQiOiIkMmIkMTAkT3FHdndtdE04UkdmZHIxQkl4bHk3ZUtVZ1pud0ZMS0dFb1RtZWhVWk5yQi9meG9GTVlKS0MiLCJjcmVhdGVkQXQiOiIyMDE4LTA3LTEzVDA0OjUyOjU5LjA4N1oiLCJ1cGRhdGVkQXQiOiIyMDE4LTA3LTEzVDA0OjUyOjU5LjA4N1oiLCJpYXQiOjE1MzE2OTUwNzMsImV4cCI6MTUzNDI4NzA3M30.YAk0W_AOZCqEZNgVgeOl1d1Qhc00XGWnqIyLO8cXR4g" - } - ], - "body": { - "mode": "raw", - "raw": "{\"title\": \"tagsss\",\"date\": \"2018-07-02T00:36:26.371Z\",\"expiry\": \"2019-05-16T16:49:00.638Z\",\"status\": \"published\",\"content\": \"Reprehenderit cum delectus voluptas. Aut ut veritatis. Maiores voluptas voluptas officia tenetur qui eligendi quam perspiciatis. Delectus maiores aut laboriosam quae sunt.\\n \\rVoluptas labore distinctio quisquam ratione esse. Eaque dolores aut cumque soluta consectetur sed nihil. Iusto qui quos a sit inventore vel cumque facere quibusdam. Mollitia nam facere natus.\\n \\rTempora esse eos quasi. Rerum cum omnis. Veniam laboriosam alias. Aliquid alias quisquam ratione pariatur placeat nobis labore. Debitis sed deserunt.\",\"postTags\":[{\"name\":\"one\"},{\"name\":\"two\"}]}" - }, - "url": { - "raw": "localhost:1337/api/posts", - "host": [ - "localhost" - ], - "port": "1337", - "path": [ - "api", - "posts" - ] - } - }, - "response": [ - { - "id": "68d29eb0-3458-491f-a24f-239f80ed7189", - "name": "localhost:1337/api/posts", - "originalRequest": { - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "disabled": false - }, - { - "key": "Authorization", - "value": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjZjZjc5YjZjLWMyZGEtNDczYS1iNjhkLTM4ODcwYzY4OTUzYiIsImZpcnN0TmFtZSI6IkpvaG4iLCJsYXN0TmFtZSI6IlVzZXIiLCJlbWFpbCI6InVzZXJAZW1haWwuY29tIiwicGFzc3dvcmQiOiIkMmIkMTAkT3FHdndtdE04UkdmZHIxQkl4bHk3ZUtVZ1pud0ZMS0dFb1RtZWhVWk5yQi9meG9GTVlKS0MiLCJjcmVhdGVkQXQiOiIyMDE4LTA3LTEzVDA0OjUyOjU5LjA4N1oiLCJ1cGRhdGVkQXQiOiIyMDE4LTA3LTEzVDA0OjUyOjU5LjA4N1oiLCJpYXQiOjE1MzE2OTUwNzMsImV4cCI6MTUzNDI4NzA3M30.YAk0W_AOZCqEZNgVgeOl1d1Qhc00XGWnqIyLO8cXR4g", - "disabled": false - } - ], - "body": { - "mode": "raw", - "raw": "{\"title\": \"tagsss\",\"date\": \"2018-07-02T00:36:26.371Z\",\"expiry\": \"2019-05-16T16:49:00.638Z\",\"status\": \"published\",\"content\": \"Reprehenderit cum delectus voluptas. Aut ut veritatis. Maiores voluptas voluptas officia tenetur qui eligendi quam perspiciatis. Delectus maiores aut laboriosam quae sunt.\\n \\rVoluptas labore distinctio quisquam ratione esse. Eaque dolores aut cumque soluta consectetur sed nihil. Iusto qui quos a sit inventore vel cumque facere quibusdam. Mollitia nam facere natus.\\n \\rTempora esse eos quasi. Rerum cum omnis. Veniam laboriosam alias. Aliquid alias quisquam ratione pariatur placeat nobis labore. Debitis sed deserunt.\",\"postTags\":[{\"name\":\"one\"},{\"name\":\"two\"}]}" - }, - "url": { - "raw": "localhost:1337/api/posts", - "host": [ - "localhost" - ], - "port": "1337", - "path": [ - "api", - "posts" - ] - } - }, - "status": "OK", - "code": 200, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Access-Control-Allow-Origin", - "value": "*", - "name": "Access-Control-Allow-Origin", - "description": "Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource." - }, - { - "key": "Connection", - "value": "keep-alive", - "name": "Connection", - "description": "Options that are desired for the connection" - }, - { - "key": "Content-Length", - "value": "888", - "name": "Content-Length", - "description": "The length of the response body in octets (8-bit bytes)" - }, - { - "key": "Content-Type", - "value": "application/json; charset=utf-8", - "name": "Content-Type", - "description": "The mime type of this content" - }, - { - "key": "Date", - "value": "Mon, 16 Jul 2018 04:44:57 GMT", - "name": "Date", - "description": "The date and time that the message was sent" - }, - { - "key": "ETag", - "value": "W/\"378-Hvwx+p2Mdk+Yqs7nrIX8gyoy45Y\"", - "name": "ETag", - "description": "An identifier for a specific version of a resource, often a message digest" - }, - { - "key": "Strict-Transport-Security", - "value": "max-age=15552000; includeSubDomains", - "name": "Strict-Transport-Security", - "description": "A HSTS Policy informing the HTTP client how long to cache the HTTPS only policy and whether this applies to subdomains." - }, - { - "key": "Vary", - "value": "Accept-Encoding", - "name": "Vary", - "description": "Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server." - }, - { - "key": "X-Content-Type-Options", - "value": "nosniff", - "name": "X-Content-Type-Options", - "description": "The only defined value, \"nosniff\", prevents Internet Explorer from MIME-sniffing a response away from the declared content-type" - }, - { - "key": "X-DNS-Prefetch-Control", - "value": "off", - "name": "X-DNS-Prefetch-Control", - "description": "Custom header" - }, - { - "key": "X-Download-Options", - "value": "noopen", - "name": "X-Download-Options", - "description": "Custom header" - }, - { - "key": "X-Frame-Options", - "value": "SAMEORIGIN", - "name": "X-Frame-Options", - "description": "Clickjacking protection: \"deny\" - no rendering within a frame, \"sameorigin\" - no rendering if origin mismatch" - }, - { - "key": "X-XSS-Protection", - "value": "1; mode=block", - "name": "X-XSS-Protection", - "description": "Cross-site scripting (XSS) filter" - } - ], - "cookie": [], - "body": "{\"post\":{\"id\":\"80c2b91f-b63f-489b-bfb5-c88c4b9432a0\",\"title\":\"tagsss\",\"slug\":\"tagsss-1531716297612\",\"image\":\"\",\"content\":\"Reprehenderit cum delectus voluptas. Aut ut veritatis. Maiores voluptas voluptas officia tenetur qui eligendi quam perspiciatis. Delectus maiores aut laboriosam quae sunt.\\n \\rVoluptas labore distinctio quisquam ratione esse. Eaque dolores aut cumque soluta consectetur sed nihil. Iusto qui quos a sit inventore vel cumque facere quibusdam. Mollitia nam facere natus.\\n \\rTempora esse eos quasi. Rerum cum omnis. Veniam laboriosam alias. Aliquid alias quisquam ratione pariatur placeat nobis labore. Debitis sed deserunt.\",\"category\":\"news\",\"date\":\"2018-07-02T00:36:26.371Z\",\"expiry\":\"2019-05-16T16:49:00.638Z\",\"frequency\":\"\",\"status\":\"published\",\"updatedAt\":\"2018-07-16T04:44:57.614Z\",\"createdAt\":\"2018-07-16T04:44:57.614Z\",\"postTags\":[{\"name\":\"one\"},{\"name\":\"two\"}]}}" - } - ] - }, - { - "name": "localhost:1337/api/posts", - "request": { - "method": "GET", - "header": [], - "body": {}, - "url": { - "raw": "localhost:1337/api/posts", - "host": [ - "localhost" - ], - "port": "1337", - "path": [ - "api", - "posts" - ] - } - }, - "response": [ - { - "id": "fa97e5ed-01b3-4780-b981-ea543c2fa7ba", - "name": "localhost:1337/api/posts", - "originalRequest": { - "method": "GET", - "header": [], - "body": {}, - "url": { - "raw": "localhost:1337/api/posts", - "host": [ - "localhost" - ], - "port": "1337", - "path": [ - "api", - "posts" - ] - } - }, - "status": "OK", - "code": 200, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Access-Control-Allow-Origin", - "value": "*", - "name": "Access-Control-Allow-Origin", - "description": "Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource." - }, - { - "key": "Connection", - "value": "keep-alive", - "name": "Connection", - "description": "Options that are desired for the connection" - }, - { - "key": "Content-Encoding", - "value": "gzip", - "name": "Content-Encoding", - "description": "The type of encoding used on the data." - }, - { - "key": "Content-Type", - "value": "application/json; charset=utf-8", - "name": "Content-Type", - "description": "The mime type of this content" - }, - { - "key": "Date", - "value": "Mon, 16 Jul 2018 04:45:44 GMT", - "name": "Date", - "description": "The date and time that the message was sent" - }, - { - "key": "ETag", - "value": "W/\"f20-BupZLd29IU1tGzK97PmZ6060/Q4\"", - "name": "ETag", - "description": "An identifier for a specific version of a resource, often a message digest" - }, - { - "key": "Strict-Transport-Security", - "value": "max-age=15552000; includeSubDomains", - "name": "Strict-Transport-Security", - "description": "A HSTS Policy informing the HTTP client how long to cache the HTTPS only policy and whether this applies to subdomains." - }, - { - "key": "Transfer-Encoding", - "value": "chunked", - "name": "Transfer-Encoding", - "description": "The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity." - }, - { - "key": "Vary", - "value": "Accept-Encoding", - "name": "Vary", - "description": "Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server." - }, - { - "key": "X-Content-Type-Options", - "value": "nosniff", - "name": "X-Content-Type-Options", - "description": "The only defined value, \"nosniff\", prevents Internet Explorer from MIME-sniffing a response away from the declared content-type" - }, - { - "key": "X-DNS-Prefetch-Control", - "value": "off", - "name": "X-DNS-Prefetch-Control", - "description": "Custom header" - }, - { - "key": "X-Download-Options", - "value": "noopen", - "name": "X-Download-Options", - "description": "Custom header" - }, - { - "key": "X-Frame-Options", - "value": "SAMEORIGIN", - "name": "X-Frame-Options", - "description": "Clickjacking protection: \"deny\" - no rendering within a frame, \"sameorigin\" - no rendering if origin mismatch" - }, - { - "key": "X-XSS-Protection", - "value": "1; mode=block", - "name": "X-XSS-Protection", - "description": "Cross-site scripting (XSS) filter" - } - ], - "cookie": [], - "body": "{\"posts\":[{\"id\":\"80c2b91f-b63f-489b-bfb5-c88c4b9432a0\",\"title\":\"tagsss\",\"slug\":\"tagsss-1531716297612\",\"image\":\"\",\"category\":\"news\",\"date\":\"2018-07-02T00:36:26.371Z\",\"expiry\":\"2019-05-16T16:49:00.638Z\",\"frequency\":\"\",\"status\":\"published\",\"content\":\"Reprehenderit cum delectus voluptas. Aut ut veritatis. Maiores voluptas voluptas officia tenetur qui eligendi quam perspiciatis. Delectus maiores aut laboriosam quae sunt.\\n \\rVoluptas labore distinctio quisquam ratione esse. Eaque dolores aut cumque soluta consectetur sed nihil. Iusto qui quos a sit inventore vel cumque facere quibusdam. Mollitia nam facere natus.\\n \\rTempora esse eos quasi. Rerum cum omnis. Veniam laboriosam alias. Aliquid alias quisquam ratione pariatur placeat nobis labore. Debitis sed deserunt.\",\"createdAt\":\"2018-07-16T04:44:57.614Z\",\"updatedAt\":\"2018-07-16T04:44:57.614Z\",\"postTags\":[{\"id\":\"97fe5d4b-c844-40fe-adac-6b8b27cc257f\",\"name\":\"one\"},{\"id\":\"2e91847e-906d-48b6-af9a-ea133adec466\",\"name\":\"two\"}]},{\"id\":\"0823a8e1-76a7-4e36-8080-4bd1f1eba0d9\",\"title\":\"Quidem sequi in molestiae commodi.\",\"slug\":\"quidem-sequi-in-molestiae-commodi-1531716290774\",\"image\":\"http://lorempixel.com/640/480\",\"category\":\"news\",\"date\":\"2018-07-16T04:44:50.774Z\",\"expiry\":\"2019-06-23T10:55:34.091Z\",\"frequency\":null,\"status\":\"draft\",\"content\":\"Nulla ut voluptas tempora eum explicabo.\",\"createdAt\":\"2018-07-16T04:44:50.774Z\",\"updatedAt\":\"2018-07-16T04:44:50.774Z\",\"postTags\":[]},{\"id\":\"17021511-7385-4554-9d3a-d1c0afd8a082\",\"title\":\"Dolor dolores ut ea vel.\",\"slug\":\"dolor-dolores-ut-ea-vel-1531716290774\",\"image\":\"http://lorempixel.com/640/480\",\"category\":\"event\",\"date\":\"2018-07-16T04:44:50.774Z\",\"expiry\":\"2018-12-14T22:02:22.414Z\",\"frequency\":null,\"status\":\"published\",\"content\":\"Distinctio nisi ut ut optio harum. Laboriosam tempora maiores consequatur eum veritatis est. Rerum omnis nihil ipsam natus et illo harum voluptatem nam. Temporibus et temporibus illo voluptatem vel. Nisi est et.\",\"createdAt\":\"2018-07-16T04:44:50.774Z\",\"updatedAt\":\"2018-07-16T04:44:50.774Z\",\"postTags\":[]},{\"id\":\"d443d47c-2af3-40ca-a2aa-eb5106e55fe8\",\"title\":\"Aperiam est facilis tempore et.\",\"slug\":\"aperiam-est-facilis-tempore-et-1531716290774\",\"image\":\"http://lorempixel.com/640/480\",\"category\":\"event\",\"date\":\"2018-07-16T04:44:50.774Z\",\"expiry\":\"2018-10-08T20:17:24.396Z\",\"frequency\":null,\"status\":\"draft\",\"content\":\"in\",\"createdAt\":\"2018-07-16T04:44:50.774Z\",\"updatedAt\":\"2018-07-16T04:44:50.774Z\",\"postTags\":[]},{\"id\":\"bdfe2b63-ef6f-4403-8b9f-9ee87b33e4c6\",\"title\":\"Ut consequatur rerum alias quod.\",\"slug\":\"ut-consequatur-rerum-alias-quod-1531716290774\",\"image\":\"http://lorempixel.com/640/480\",\"category\":\"event\",\"date\":\"2018-07-16T04:44:50.774Z\",\"expiry\":\"2019-03-01T11:24:46.095Z\",\"frequency\":null,\"status\":\"draft\",\"content\":\"Impedit incidunt qui. Ducimus et animi fugit architecto repellendus nisi.\",\"createdAt\":\"2018-07-16T04:44:50.774Z\",\"updatedAt\":\"2018-07-16T04:44:50.774Z\",\"postTags\":[]},{\"id\":\"43a2ce54-89a6-4a21-b9ba-e70ae212f7fa\",\"title\":\"Distinctio ab aut qui cupiditate.\",\"slug\":\"distinctio-ab-aut-qui-cupiditate-1531716290774\",\"image\":\"http://lorempixel.com/640/480\",\"category\":\"event\",\"date\":\"2018-07-16T04:44:50.774Z\",\"expiry\":\"2019-03-16T18:11:01.619Z\",\"frequency\":null,\"status\":\"draft\",\"content\":\"Sint sapiente qui alias possimus ea.\\nEt voluptatem libero et beatae sunt.\\nQuas deleniti illo sint quia repellendus.\",\"createdAt\":\"2018-07-16T04:44:50.774Z\",\"updatedAt\":\"2018-07-16T04:44:50.774Z\",\"postTags\":[]},{\"id\":\"cffe3973-738d-4684-9d35-bf28e1e64d88\",\"title\":\"Ut quisquam hic atque animi.\",\"slug\":\"ut-quisquam-hic-atque-animi-1531716290774\",\"image\":\"http://lorempixel.com/640/480\",\"category\":\"need\",\"date\":\"2018-07-16T04:44:50.774Z\",\"expiry\":\"2019-05-21T01:05:42.317Z\",\"frequency\":null,\"status\":\"published\",\"content\":\"doloremque\",\"createdAt\":\"2018-07-16T04:44:50.774Z\",\"updatedAt\":\"2018-07-16T04:44:50.774Z\",\"postTags\":[]}]}" - } - ] - }, - { - "name": "localhost:1337/api/posts/get-single", - "request": { - "method": "GET", - "header": [], - "body": {}, - "url": { - "raw": "localhost:1337/api/posts/officia-quia-repellendus-deserunt-et-1531356733490", - "host": [ - "localhost" - ], - "port": "1337", - "path": [ - "api", - "posts", - "officia-quia-repellendus-deserunt-et-1531356733490" - ] - } - }, - "response": [ - { - "id": "9ec66b73-b3d8-4556-b435-d54ba6f5e88c", - "name": "localhost:1337/api/posts/get-single", - "originalRequest": { - "method": "GET", - "header": [], - "body": {}, - "url": { - "raw": "localhost:1337/api/posts/tagsss-1531716297612", - "host": [ - "localhost" - ], - "port": "1337", - "path": [ - "api", - "posts", - "tagsss-1531716297612" - ] - } - }, - "status": "OK", - "code": 200, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Access-Control-Allow-Origin", - "value": "*", - "name": "Access-Control-Allow-Origin", - "description": "Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource." - }, - { - "key": "Connection", - "value": "keep-alive", - "name": "Connection", - "description": "Options that are desired for the connection" - }, - { - "key": "Content-Length", - "value": "976", - "name": "Content-Length", - "description": "The length of the response body in octets (8-bit bytes)" - }, - { - "key": "Content-Type", - "value": "application/json; charset=utf-8", - "name": "Content-Type", - "description": "The mime type of this content" - }, - { - "key": "Date", - "value": "Mon, 16 Jul 2018 04:49:43 GMT", - "name": "Date", - "description": "The date and time that the message was sent" - }, - { - "key": "ETag", - "value": "W/\"3d0-uorpK3t6GB2miHgsd9hGNZwcMpo\"", - "name": "ETag", - "description": "An identifier for a specific version of a resource, often a message digest" - }, - { - "key": "Strict-Transport-Security", - "value": "max-age=15552000; includeSubDomains", - "name": "Strict-Transport-Security", - "description": "A HSTS Policy informing the HTTP client how long to cache the HTTPS only policy and whether this applies to subdomains." - }, - { - "key": "Vary", - "value": "Accept-Encoding", - "name": "Vary", - "description": "Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server." - }, - { - "key": "X-Content-Type-Options", - "value": "nosniff", - "name": "X-Content-Type-Options", - "description": "The only defined value, \"nosniff\", prevents Internet Explorer from MIME-sniffing a response away from the declared content-type" - }, - { - "key": "X-DNS-Prefetch-Control", - "value": "off", - "name": "X-DNS-Prefetch-Control", - "description": "Custom header" - }, - { - "key": "X-Download-Options", - "value": "noopen", - "name": "X-Download-Options", - "description": "Custom header" - }, - { - "key": "X-Frame-Options", - "value": "SAMEORIGIN", - "name": "X-Frame-Options", - "description": "Clickjacking protection: \"deny\" - no rendering within a frame, \"sameorigin\" - no rendering if origin mismatch" - }, - { - "key": "X-XSS-Protection", - "value": "1; mode=block", - "name": "X-XSS-Protection", - "description": "Cross-site scripting (XSS) filter" - } - ], - "cookie": [], - "body": "{\"post\":{\"id\":\"80c2b91f-b63f-489b-bfb5-c88c4b9432a0\",\"title\":\"tagsss\",\"slug\":\"tagsss-1531716297612\",\"image\":\"\",\"category\":\"news\",\"date\":\"2018-07-02T00:36:26.371Z\",\"expiry\":\"2019-05-16T16:49:00.638Z\",\"frequency\":\"\",\"status\":\"published\",\"content\":\"Reprehenderit cum delectus voluptas. Aut ut veritatis. Maiores voluptas voluptas officia tenetur qui eligendi quam perspiciatis. Delectus maiores aut laboriosam quae sunt.\\n \\rVoluptas labore distinctio quisquam ratione esse. Eaque dolores aut cumque soluta consectetur sed nihil. Iusto qui quos a sit inventore vel cumque facere quibusdam. Mollitia nam facere natus.\\n \\rTempora esse eos quasi. Rerum cum omnis. Veniam laboriosam alias. Aliquid alias quisquam ratione pariatur placeat nobis labore. Debitis sed deserunt.\",\"createdAt\":\"2018-07-16T04:44:57.614Z\",\"updatedAt\":\"2018-07-16T04:44:57.614Z\",\"postTags\":[{\"id\":\"97fe5d4b-c844-40fe-adac-6b8b27cc257f\",\"name\":\"one\"},{\"id\":\"2e91847e-906d-48b6-af9a-ea133adec466\",\"name\":\"two\"}]}}" - } - ] - }, - { - "name": "localhost:1337/api/posts/update", - "request": { - "method": "PATCH", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Authorization", - "value": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjJhM2JiOWYyLWE1NjEtNDAyNC1iNjA1LWQ3ZDVjNGNjMzUxMSIsImZpcnN0TmFtZSI6IkpvaG4iLCJsYXN0TmFtZSI6IlVzZXIiLCJlbWFpbCI6InVzZXJAZW1haWwuY29tIiwicGFzc3dvcmQiOiIkMmIkMTAkODdZQVU5TzZELi5rVFRNTkk3WXRodTdFLzVUc25SZ1cwZDVhSjU2Rk9vS2VVdDIvSUFqN0siLCJjcmVhdGVkQXQiOiIyMDE4LTA3LTExVDIzOjAyOjUxLjM3OFoiLCJ1cGRhdGVkQXQiOiIyMDE4LTA3LTExVDIzOjAyOjUxLjM3OFoiLCJpYXQiOjE1MzEzNTAxODEsImV4cCI6MTUzMzk0MjE4MX0.JdAiMrRf_HQW36BN2GkSaGXRy0deVeovdELF6In1_hU" - } - ], - "body": { - "mode": "raw", - "raw": "{\"title\": \"A goodsss day\"}" - }, - "url": { - "raw": "localhost:1337/api/posts/tagsss-1531716297612", - "host": [ - "localhost" - ], - "port": "1337", - "path": [ - "api", - "posts", - "tagsss-1531716297612" - ] - } - }, - "response": [ - { - "id": "9a9ce2a7-30cd-4390-8354-c74cdade199b", - "name": "localhost:1337/api/posts/update", - "originalRequest": { - "method": "PATCH", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "disabled": false - }, - { - "key": "Authorization", - "value": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjJhM2JiOWYyLWE1NjEtNDAyNC1iNjA1LWQ3ZDVjNGNjMzUxMSIsImZpcnN0TmFtZSI6IkpvaG4iLCJsYXN0TmFtZSI6IlVzZXIiLCJlbWFpbCI6InVzZXJAZW1haWwuY29tIiwicGFzc3dvcmQiOiIkMmIkMTAkODdZQVU5TzZELi5rVFRNTkk3WXRodTdFLzVUc25SZ1cwZDVhSjU2Rk9vS2VVdDIvSUFqN0siLCJjcmVhdGVkQXQiOiIyMDE4LTA3LTExVDIzOjAyOjUxLjM3OFoiLCJ1cGRhdGVkQXQiOiIyMDE4LTA3LTExVDIzOjAyOjUxLjM3OFoiLCJpYXQiOjE1MzEzNTAxODEsImV4cCI6MTUzMzk0MjE4MX0.JdAiMrRf_HQW36BN2GkSaGXRy0deVeovdELF6In1_hU", - "disabled": false - } - ], - "body": { - "mode": "raw", - "raw": "{\"title\": \"A goodsss day\"}" - }, - "url": { - "raw": "localhost:1337/api/posts/tagsss-1531716297612", - "host": [ - "localhost" - ], - "port": "1337", - "path": [ - "api", - "posts", - "tagsss-1531716297612" - ] - } - }, - "status": "OK", - "code": 200, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Access-Control-Allow-Origin", - "value": "*", - "name": "Access-Control-Allow-Origin", - "description": "Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource." - }, - { - "key": "Connection", - "value": "keep-alive", - "name": "Connection", - "description": "Options that are desired for the connection" - }, - { - "key": "Content-Length", - "value": "850", - "name": "Content-Length", - "description": "The length of the response body in octets (8-bit bytes)" - }, - { - "key": "Content-Type", - "value": "application/json; charset=utf-8", - "name": "Content-Type", - "description": "The mime type of this content" - }, - { - "key": "Date", - "value": "Mon, 16 Jul 2018 04:49:57 GMT", - "name": "Date", - "description": "The date and time that the message was sent" - }, - { - "key": "ETag", - "value": "W/\"352-vZLbp27xbKEwMDG3FkDaVTRdFG4\"", - "name": "ETag", - "description": "An identifier for a specific version of a resource, often a message digest" - }, - { - "key": "Strict-Transport-Security", - "value": "max-age=15552000; includeSubDomains", - "name": "Strict-Transport-Security", - "description": "A HSTS Policy informing the HTTP client how long to cache the HTTPS only policy and whether this applies to subdomains." - }, - { - "key": "Vary", - "value": "Accept-Encoding", - "name": "Vary", - "description": "Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server." - }, - { - "key": "X-Content-Type-Options", - "value": "nosniff", - "name": "X-Content-Type-Options", - "description": "The only defined value, \"nosniff\", prevents Internet Explorer from MIME-sniffing a response away from the declared content-type" - }, - { - "key": "X-DNS-Prefetch-Control", - "value": "off", - "name": "X-DNS-Prefetch-Control", - "description": "Custom header" - }, - { - "key": "X-Download-Options", - "value": "noopen", - "name": "X-Download-Options", - "description": "Custom header" - }, - { - "key": "X-Frame-Options", - "value": "SAMEORIGIN", - "name": "X-Frame-Options", - "description": "Clickjacking protection: \"deny\" - no rendering within a frame, \"sameorigin\" - no rendering if origin mismatch" - }, - { - "key": "X-XSS-Protection", - "value": "1; mode=block", - "name": "X-XSS-Protection", - "description": "Cross-site scripting (XSS) filter" - } - ], - "cookie": [], - "body": "{\"id\":\"80c2b91f-b63f-489b-bfb5-c88c4b9432a0\",\"title\":\"A goodsss day\",\"slug\":\"a-goodsss-day-1531716597515\",\"image\":\"\",\"category\":\"news\",\"date\":\"2018-07-02T00:36:26.371Z\",\"expiry\":\"2019-05-16T16:49:00.638Z\",\"frequency\":\"\",\"status\":\"published\",\"content\":\"Reprehenderit cum delectus voluptas. Aut ut veritatis. Maiores voluptas voluptas officia tenetur qui eligendi quam perspiciatis. Delectus maiores aut laboriosam quae sunt.\\n \\rVoluptas labore distinctio quisquam ratione esse. Eaque dolores aut cumque soluta consectetur sed nihil. Iusto qui quos a sit inventore vel cumque facere quibusdam. Mollitia nam facere natus.\\n \\rTempora esse eos quasi. Rerum cum omnis. Veniam laboriosam alias. Aliquid alias quisquam ratione pariatur placeat nobis labore. Debitis sed deserunt.\",\"createdAt\":\"2018-07-16T04:44:57.614Z\",\"updatedAt\":\"2018-07-16T04:49:57.515Z\"}" - } - ] - }, - { - "name": "localhost:1337/api/posts-delete", - "request": { - "method": "DELETE", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Authorization", - "value": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImFiZTMwZTgwLTUzY2UtNDRkOC05MzhlLWFiZDRhYjA5MGM2ZCIsImZpcnN0TmFtZSI6IkpvaG4iLCJsYXN0TmFtZSI6IlVzZXIiLCJlbWFpbCI6InVzZXJAZW1haWwuY29tIiwicGFzc3dvcmQiOiIkMmIkMTAkakVDdXB4cVNxRjZvQ3RyYzZIVnpEZVpDd2dXMVlCaWhnUUZMYjR0a3VaWGUyYUhPTk44aHkiLCJjcmVhdGVkQXQiOiIyMDE4LTA3LTExVDA1OjIwOjE4LjYzMVoiLCJ1cGRhdGVkQXQiOiIyMDE4LTA3LTExVDA1OjIwOjE4LjYzMVoiLCJpYXQiOjE1MzEyODY1MDgsImV4cCI6MTUzMzg3ODUwOH0.NgVhTMAUjR2H4WpBTDSo-4_7hCpxO4WVVmqXPs0-W-4" - } - ], - "body": { - "mode": "raw", - "raw": "" - }, - "url": { - "raw": "localhost:1337/api/posts/ab62e275-a4ba-4358-aa5d-20e00e4ab2a0", - "host": [ - "localhost" - ], - "port": "1337", - "path": [ - "api", - "posts", - "ab62e275-a4ba-4358-aa5d-20e00e4ab2a0" - ] - } - }, - "response": [ - { - "id": "e3292be1-c2ae-492f-924d-48a76b22ceaf", - "name": "localhost:1337/api/posts-delete", - "originalRequest": { - "method": "DELETE", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "disabled": false - }, - { - "key": "Authorization", - "value": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImFiZTMwZTgwLTUzY2UtNDRkOC05MzhlLWFiZDRhYjA5MGM2ZCIsImZpcnN0TmFtZSI6IkpvaG4iLCJsYXN0TmFtZSI6IlVzZXIiLCJlbWFpbCI6InVzZXJAZW1haWwuY29tIiwicGFzc3dvcmQiOiIkMmIkMTAkakVDdXB4cVNxRjZvQ3RyYzZIVnpEZVpDd2dXMVlCaWhnUUZMYjR0a3VaWGUyYUhPTk44aHkiLCJjcmVhdGVkQXQiOiIyMDE4LTA3LTExVDA1OjIwOjE4LjYzMVoiLCJ1cGRhdGVkQXQiOiIyMDE4LTA3LTExVDA1OjIwOjE4LjYzMVoiLCJpYXQiOjE1MzEyODY1MDgsImV4cCI6MTUzMzg3ODUwOH0.NgVhTMAUjR2H4WpBTDSo-4_7hCpxO4WVVmqXPs0-W-4", - "disabled": false - } - ], - "body": { - "mode": "raw", - "raw": "" - }, - "url": { - "raw": "localhost:1337/api/posts/a-goodsss-day-1531716597515", - "host": [ - "localhost" - ], - "port": "1337", - "path": [ - "api", - "posts", - "a-goodsss-day-1531716597515" - ] - } - }, - "status": "OK", - "code": 200, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Access-Control-Allow-Origin", - "value": "*", - "name": "Access-Control-Allow-Origin", - "description": "Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource." - }, - { - "key": "Connection", - "value": "keep-alive", - "name": "Connection", - "description": "Options that are desired for the connection" - }, - { - "key": "Content-Length", - "value": "40", - "name": "Content-Length", - "description": "The length of the response body in octets (8-bit bytes)" - }, - { - "key": "Content-Type", - "value": "application/json; charset=utf-8", - "name": "Content-Type", - "description": "The mime type of this content" - }, - { - "key": "Date", - "value": "Mon, 16 Jul 2018 04:51:13 GMT", - "name": "Date", - "description": "The date and time that the message was sent" - }, - { - "key": "ETag", - "value": "W/\"28-lhVHv+7L+msMz2SssxfwWOkXoP0\"", - "name": "ETag", - "description": "An identifier for a specific version of a resource, often a message digest" - }, - { - "key": "Strict-Transport-Security", - "value": "max-age=15552000; includeSubDomains", - "name": "Strict-Transport-Security", - "description": "A HSTS Policy informing the HTTP client how long to cache the HTTPS only policy and whether this applies to subdomains." - }, - { - "key": "Vary", - "value": "Accept-Encoding", - "name": "Vary", - "description": "Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server." - }, - { - "key": "X-Content-Type-Options", - "value": "nosniff", - "name": "X-Content-Type-Options", - "description": "The only defined value, \"nosniff\", prevents Internet Explorer from MIME-sniffing a response away from the declared content-type" - }, - { - "key": "X-DNS-Prefetch-Control", - "value": "off", - "name": "X-DNS-Prefetch-Control", - "description": "Custom header" - }, - { - "key": "X-Download-Options", - "value": "noopen", - "name": "X-Download-Options", - "description": "Custom header" - }, - { - "key": "X-Frame-Options", - "value": "SAMEORIGIN", - "name": "X-Frame-Options", - "description": "Clickjacking protection: \"deny\" - no rendering within a frame, \"sameorigin\" - no rendering if origin mismatch" - }, - { - "key": "X-XSS-Protection", - "value": "1; mode=block", - "name": "X-XSS-Protection", - "description": "Cross-site scripting (XSS) filter" - } - ], - "cookie": [], - "body": "{\"success\":\"Post successfully deleted.\"}" - } - ] - } - ] - }, - { - "name": "media", - "description": "", - "item": [ - { - "name": "localhost:1337/api/media", - "request": { - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Authorization", - "value": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjZjZjc5YjZjLWMyZGEtNDczYS1iNjhkLTM4ODcwYzY4OTUzYiIsImZpcnN0TmFtZSI6IkpvaG4iLCJsYXN0TmFtZSI6IlVzZXIiLCJlbWFpbCI6InVzZXJAZW1haWwuY29tIiwicGFzc3dvcmQiOiIkMmIkMTAkT3FHdndtdE04UkdmZHIxQkl4bHk3ZUtVZ1pud0ZMS0dFb1RtZWhVWk5yQi9meG9GTVlKS0MiLCJjcmVhdGVkQXQiOiIyMDE4LTA3LTEzVDA0OjUyOjU5LjA4N1oiLCJ1cGRhdGVkQXQiOiIyMDE4LTA3LTEzVDA0OjUyOjU5LjA4N1oiLCJpYXQiOjE1MzE2OTUwNzMsImV4cCI6MTUzNDI4NzA3M30.YAk0W_AOZCqEZNgVgeOl1d1Qhc00XGWnqIyLO8cXR4g" - } - ], - "body": { - "mode": "raw", - "raw": "{\"title\": \"medias\",\"date\": \"2018-07-02T00:36:26.371Z\",\"author\":\"Percy Hathelthwaite\",\"status\": \"published\",\"content\": \"Reprehenderit cum delectus voluptas. Aut ut veritatis. Maiores voluptas voluptas officia tenetur qui eligendi quam perspiciatis. Delectus maiores aut laboriosam quae sunt.\\n \\rVoluptas labore distinctio quisquam ratione esse. Eaque dolores aut cumque soluta consectetur sed nihil. Iusto qui quos a sit inventore vel cumque facere quibusdam. Mollitia nam facere natus.\\n \\rTempora esse eos quasi. Rerum cum omnis. Veniam laboriosam alias. Aliquid alias quisquam ratione pariatur placeat nobis labore. Debitis sed deserunt.\",\"link\":\"http://url.com\",\"mediaTags\":[{\"name\":\"one\"},{\"name\":\"two\"}]}" - }, - "url": { - "raw": "localhost:1337/api/media", - "host": [ - "localhost" - ], - "port": "1337", - "path": [ - "api", - "media" - ] - } - }, - "response": [ - { - "id": "5b62577d-0f2b-4ce9-9200-ab7e7f18e5fc", - "name": "localhost:1337/api/media", - "originalRequest": { - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "disabled": false - }, - { - "key": "Authorization", - "value": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjZjZjc5YjZjLWMyZGEtNDczYS1iNjhkLTM4ODcwYzY4OTUzYiIsImZpcnN0TmFtZSI6IkpvaG4iLCJsYXN0TmFtZSI6IlVzZXIiLCJlbWFpbCI6InVzZXJAZW1haWwuY29tIiwicGFzc3dvcmQiOiIkMmIkMTAkT3FHdndtdE04UkdmZHIxQkl4bHk3ZUtVZ1pud0ZMS0dFb1RtZWhVWk5yQi9meG9GTVlKS0MiLCJjcmVhdGVkQXQiOiIyMDE4LTA3LTEzVDA0OjUyOjU5LjA4N1oiLCJ1cGRhdGVkQXQiOiIyMDE4LTA3LTEzVDA0OjUyOjU5LjA4N1oiLCJpYXQiOjE1MzE2OTUwNzMsImV4cCI6MTUzNDI4NzA3M30.YAk0W_AOZCqEZNgVgeOl1d1Qhc00XGWnqIyLO8cXR4g", - "disabled": false - } - ], - "body": { - "mode": "raw", - "raw": "{\"title\": \"medias\",\"date\": \"2018-07-02T00:36:26.371Z\",\"author\":\"Percy Hathelthwaite\",\"status\": \"published\",\"content\": \"Reprehenderit cum delectus voluptas. Aut ut veritatis. Maiores voluptas voluptas officia tenetur qui eligendi quam perspiciatis. Delectus maiores aut laboriosam quae sunt.\\n \\rVoluptas labore distinctio quisquam ratione esse. Eaque dolores aut cumque soluta consectetur sed nihil. Iusto qui quos a sit inventore vel cumque facere quibusdam. Mollitia nam facere natus.\\n \\rTempora esse eos quasi. Rerum cum omnis. Veniam laboriosam alias. Aliquid alias quisquam ratione pariatur placeat nobis labore. Debitis sed deserunt.\",\"link\":\"http://url.com\",\"mediaTags\":[{\"name\":\"one\"},{\"name\":\"two\"}]}" - }, - "url": { - "raw": "localhost:1337/api/media", - "host": [ - "localhost" - ], - "port": "1337", - "path": [ - "api", - "media" - ] - } - }, - "status": "OK", - "code": 200, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Access-Control-Allow-Origin", - "value": "*", - "name": "Access-Control-Allow-Origin", - "description": "Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource." - }, - { - "key": "Connection", - "value": "keep-alive", - "name": "Connection", - "description": "Options that are desired for the connection" - }, - { - "key": "Content-Length", - "value": "891", - "name": "Content-Length", - "description": "The length of the response body in octets (8-bit bytes)" - }, - { - "key": "Content-Type", - "value": "application/json; charset=utf-8", - "name": "Content-Type", - "description": "The mime type of this content" - }, - { - "key": "Date", - "value": "Wed, 18 Jul 2018 22:05:47 GMT", - "name": "Date", - "description": "The date and time that the message was sent" - }, - { - "key": "ETag", - "value": "W/\"37b-cxH8LemwdA4T+fPYZIaqxn0iTl8\"", - "name": "ETag", - "description": "An identifier for a specific version of a resource, often a message digest" - }, - { - "key": "Strict-Transport-Security", - "value": "max-age=15552000; includeSubDomains", - "name": "Strict-Transport-Security", - "description": "A HSTS Policy informing the HTTP client how long to cache the HTTPS only policy and whether this applies to subdomains." - }, - { - "key": "Vary", - "value": "Accept-Encoding", - "name": "Vary", - "description": "Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server." - }, - { - "key": "X-Content-Type-Options", - "value": "nosniff", - "name": "X-Content-Type-Options", - "description": "The only defined value, \"nosniff\", prevents Internet Explorer from MIME-sniffing a response away from the declared content-type" - }, - { - "key": "X-DNS-Prefetch-Control", - "value": "off", - "name": "X-DNS-Prefetch-Control", - "description": "Custom header" - }, - { - "key": "X-Download-Options", - "value": "noopen", - "name": "X-Download-Options", - "description": "Custom header" - }, - { - "key": "X-Frame-Options", - "value": "SAMEORIGIN", - "name": "X-Frame-Options", - "description": "Clickjacking protection: \"deny\" - no rendering within a frame, \"sameorigin\" - no rendering if origin mismatch" - }, - { - "key": "X-XSS-Protection", - "value": "1; mode=block", - "name": "X-XSS-Protection", - "description": "Cross-site scripting (XSS) filter" - } - ], - "cookie": [], - "body": "{\"medium\":{\"id\":\"68b729fa-2dc5-4fdf-9396-f407b68cef6a\",\"title\":\"medias\",\"slug\":\"medias-1531951547174\",\"image\":\"\",\"content\":\"Reprehenderit cum delectus voluptas. Aut ut veritatis. Maiores voluptas voluptas officia tenetur qui eligendi quam perspiciatis. Delectus maiores aut laboriosam quae sunt.\\n \\rVoluptas labore distinctio quisquam ratione esse. Eaque dolores aut cumque soluta consectetur sed nihil. Iusto qui quos a sit inventore vel cumque facere quibusdam. Mollitia nam facere natus.\\n \\rTempora esse eos quasi. Rerum cum omnis. Veniam laboriosam alias. Aliquid alias quisquam ratione pariatur placeat nobis labore. Debitis sed deserunt.\",\"author\":\"Percy Hathelthwaite\",\"date\":\"2018-07-02T00:36:26.371Z\",\"category\":\"\",\"link\":\"http://url.com\",\"status\":\"published\",\"updatedAt\":\"2018-07-18T22:05:47.174Z\",\"createdAt\":\"2018-07-18T22:05:47.174Z\",\"mediaTags\":[{\"name\":\"one\"},{\"name\":\"two\"}]}}" - } - ] - }, - { - "name": "localhost:1337/api/media", - "request": { - "method": "GET", - "header": [], - "body": {}, - "url": { - "raw": "localhost:1337/api/media", - "host": [ - "localhost" - ], - "port": "1337", - "path": [ - "api", - "media" - ] - } - }, - "response": [ - { - "id": "e6a114f1-36d1-4eb5-8759-20ac3481bf82", - "name": "localhost:1337/api/media", - "originalRequest": { - "method": "GET", - "header": [], - "body": {}, - "url": { - "raw": "localhost:1337/api/media", - "host": [ - "localhost" - ], - "port": "1337", - "path": [ - "api", - "media" - ] - } - }, - "status": "OK", - "code": 200, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Access-Control-Allow-Origin", - "value": "*", - "name": "Access-Control-Allow-Origin", - "description": "Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource." - }, - { - "key": "Connection", - "value": "keep-alive", - "name": "Connection", - "description": "Options that are desired for the connection" - }, - { - "key": "Content-Encoding", - "value": "gzip", - "name": "Content-Encoding", - "description": "The type of encoding used on the data." - }, - { - "key": "Content-Type", - "value": "application/json; charset=utf-8", - "name": "Content-Type", - "description": "The mime type of this content" - }, - { - "key": "Date", - "value": "Wed, 18 Jul 2018 22:02:33 GMT", - "name": "Date", - "description": "The date and time that the message was sent" - }, - { - "key": "ETag", - "value": "W/\"1083-cbx8Lxuk4o6IEr0GeIwbc2XnX9Q\"", - "name": "ETag", - "description": "An identifier for a specific version of a resource, often a message digest" - }, - { - "key": "Strict-Transport-Security", - "value": "max-age=15552000; includeSubDomains", - "name": "Strict-Transport-Security", - "description": "A HSTS Policy informing the HTTP client how long to cache the HTTPS only policy and whether this applies to subdomains." - }, - { - "key": "Transfer-Encoding", - "value": "chunked", - "name": "Transfer-Encoding", - "description": "The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity." - }, - { - "key": "Vary", - "value": "Accept-Encoding", - "name": "Vary", - "description": "Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server." - }, - { - "key": "X-Content-Type-Options", - "value": "nosniff", - "name": "X-Content-Type-Options", - "description": "The only defined value, \"nosniff\", prevents Internet Explorer from MIME-sniffing a response away from the declared content-type" - }, - { - "key": "X-DNS-Prefetch-Control", - "value": "off", - "name": "X-DNS-Prefetch-Control", - "description": "Custom header" - }, - { - "key": "X-Download-Options", - "value": "noopen", - "name": "X-Download-Options", - "description": "Custom header" - }, - { - "key": "X-Frame-Options", - "value": "SAMEORIGIN", - "name": "X-Frame-Options", - "description": "Clickjacking protection: \"deny\" - no rendering within a frame, \"sameorigin\" - no rendering if origin mismatch" - }, - { - "key": "X-XSS-Protection", - "value": "1; mode=block", - "name": "X-XSS-Protection", - "description": "Cross-site scripting (XSS) filter" - } - ], - "cookie": [], - "body": "{\"media\":[{\"id\":\"a0ab0702-c4fa-4bd9-8a22-669bfe5479fc\",\"slug\":\"medias-1531951326878\",\"title\":\"medias\",\"date\":\"2018-07-02T00:36:26.371Z\",\"image\":\"\",\"content\":\"Reprehenderit cum delectus voluptas. Aut ut veritatis. Maiores voluptas voluptas officia tenetur qui eligendi quam perspiciatis. Delectus maiores aut laboriosam quae sunt.\\n \\rVoluptas labore distinctio quisquam ratione esse. Eaque dolores aut cumque soluta consectetur sed nihil. Iusto qui quos a sit inventore vel cumque facere quibusdam. Mollitia nam facere natus.\\n \\rTempora esse eos quasi. Rerum cum omnis. Veniam laboriosam alias. Aliquid alias quisquam ratione pariatur placeat nobis labore. Debitis sed deserunt.\",\"author\":\"Percy Hathelthwaite\",\"category\":\"\",\"link\":\"http://url.com\",\"status\":\"published\",\"createdAt\":\"2018-07-18T22:02:06.880Z\",\"updatedAt\":\"2018-07-18T22:02:06.880Z\",\"mediaTags\":[{\"id\":\"99f80016-d700-4553-a7bf-5fc66e8baeb5\",\"name\":\"two\"},{\"id\":\"66951e53-d811-45b7-b3f9-8d7359fb4eb0\",\"name\":\"one\"}]},{\"id\":\"e5a34fe9-39f0-4c1b-88c1-b33ac7203597\",\"slug\":\"nisi-quo-assumenda-quis-illo-1531949950405\",\"title\":\"Nisi quo assumenda quis illo.\",\"date\":\"2018-07-18T21:39:10.405Z\",\"image\":\"http://lorempixel.com/640/480\",\"content\":\"et\",\"author\":\"Nona Buckridge\",\"category\":\"event\",\"link\":null,\"status\":\"published\",\"createdAt\":\"2018-07-18T21:39:10.405Z\",\"updatedAt\":\"2018-07-18T21:39:10.405Z\",\"mediaTags\":[]},{\"id\":\"7ab24ee9-09d0-4c4d-8eac-714288d13ec4\",\"slug\":\"hic-ratione-possimus-voluptates-voluptas-1531949950404\",\"title\":\"Hic ratione possimus voluptates voluptas.\",\"date\":\"2018-07-18T21:39:10.404Z\",\"image\":\"http://lorempixel.com/640/480\",\"content\":\"Quia ipsa cumque corrupti eligendi cupiditate. Facilis ex nemo dicta nam consequuntur voluptatem. Non consequatur sed vero velit odit modi libero. Nisi qui ut quaerat consequuntur quia optio nemo.\",\"author\":\"Olga Bergstrom\",\"category\":\"need\",\"link\":null,\"status\":\"published\",\"createdAt\":\"2018-07-18T21:39:10.405Z\",\"updatedAt\":\"2018-07-18T21:39:10.405Z\",\"mediaTags\":[]},{\"id\":\"c3ab4a18-ae51-45bf-9f48-4c676676864c\",\"slug\":\"laborum-animi-et-blanditiis-recusandae-1531949950405\",\"title\":\"Laborum animi et blanditiis recusandae.\",\"date\":\"2018-07-18T21:39:10.405Z\",\"image\":\"http://lorempixel.com/640/480\",\"content\":\"Incidunt magnam officiis autem voluptatum aut odit quia. Aspernatur cupiditate numquam aut eos sapiente nobis ea. Optio quidem tenetur voluptas facere vel repellendus.\",\"author\":\"Novella Kunze Sr.\",\"category\":\"news\",\"link\":null,\"status\":\"draft\",\"createdAt\":\"2018-07-18T21:39:10.405Z\",\"updatedAt\":\"2018-07-18T21:39:10.405Z\",\"mediaTags\":[]},{\"id\":\"c97b952a-331a-447e-b517-8b143f7efdfd\",\"slug\":\"reiciendis-esse-accusamus-blanditiis-in-1531949950405\",\"title\":\"Reiciendis esse accusamus blanditiis in.\",\"date\":\"2018-07-18T21:39:10.405Z\",\"image\":\"http://lorempixel.com/640/480\",\"content\":\"Nostrum ut culpa voluptatibus quasi provident aut officiis officiis. Minima facere eum aut sunt beatae a. Facere ut repellat delectus et quibusdam qui sapiente praesentium. Cumque aut est molestiae.\",\"author\":\"Dr. Tillman Heller\",\"category\":\"news\",\"link\":null,\"status\":\"published\",\"createdAt\":\"2018-07-18T21:39:10.405Z\",\"updatedAt\":\"2018-07-18T21:39:10.405Z\",\"mediaTags\":[]},{\"id\":\"684b3767-7854-47e6-a05c-55bae368e4f5\",\"slug\":\"ut-aut-incidunt-labore-ullam-1531949950404\",\"title\":\"Ut aut incidunt labore ullam.\",\"date\":\"2018-07-18T21:39:10.404Z\",\"image\":\"http://lorempixel.com/640/480\",\"content\":\"Commodi perspiciatis architecto ut officiis.\",\"author\":\"Elsie Collier\",\"category\":\"news\",\"link\":null,\"status\":\"published\",\"createdAt\":\"2018-07-18T21:39:10.404Z\",\"updatedAt\":\"2018-07-18T21:39:10.404Z\",\"mediaTags\":[]},{\"id\":\"d6adae0f-f3c2-43b0-803b-e914f90dc86e\",\"slug\":\"doloribus-enim-sed-excepturi-sint-1531949950405\",\"title\":\"Doloribus enim sed excepturi sint.\",\"date\":\"2018-07-18T21:39:10.405Z\",\"image\":\"http://lorempixel.com/640/480\",\"content\":\"Odit ipsam maiores dolorem explicabo. Reiciendis laborum vel quasi voluptatem tenetur iusto voluptatem vero. Sit ex tempore dolor. Praesentium porro non recusandae tempora. Aut ut corporis non facere unde nihil.\",\"author\":\"Kari D'Amore\",\"category\":\"need\",\"link\":null,\"status\":\"published\",\"createdAt\":\"2018-07-18T21:39:10.405Z\",\"updatedAt\":\"2018-07-18T21:39:10.405Z\",\"mediaTags\":[]}]}" - } - ] - }, - { - "name": "localhost:1337/api/media/get-single", - "request": { - "method": "GET", - "header": [], - "body": {}, - "url": { - "raw": "localhost:1337/api/media/medias-1531951547174", - "host": [ - "localhost" - ], - "port": "1337", - "path": [ - "api", - "media", - "medias-1531951547174" - ] - } - }, - "response": [ - { - "id": "31bdb8a7-e77a-41cf-8f12-9e7a6fdd7957", - "name": "localhost:1337/api/media/get-single", - "originalRequest": { - "method": "GET", - "header": [], - "body": {}, - "url": { - "raw": "localhost:1337/api/media/medias-1531951547174", - "host": [ - "localhost" - ], - "port": "1337", - "path": [ - "api", - "media", - "medias-1531951547174" - ] - } - }, - "status": "OK", - "code": 200, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Access-Control-Allow-Origin", - "value": "*", - "name": "Access-Control-Allow-Origin", - "description": "Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource." - }, - { - "key": "Connection", - "value": "keep-alive", - "name": "Connection", - "description": "Options that are desired for the connection" - }, - { - "key": "Content-Length", - "value": "979", - "name": "Content-Length", - "description": "The length of the response body in octets (8-bit bytes)" - }, - { - "key": "Content-Type", - "value": "application/json; charset=utf-8", - "name": "Content-Type", - "description": "The mime type of this content" - }, - { - "key": "Date", - "value": "Wed, 18 Jul 2018 22:06:10 GMT", - "name": "Date", - "description": "The date and time that the message was sent" - }, - { - "key": "ETag", - "value": "W/\"3d3-zbYHCUTjgqNuS0UBp5EyOxDPc1A\"", - "name": "ETag", - "description": "An identifier for a specific version of a resource, often a message digest" - }, - { - "key": "Strict-Transport-Security", - "value": "max-age=15552000; includeSubDomains", - "name": "Strict-Transport-Security", - "description": "A HSTS Policy informing the HTTP client how long to cache the HTTPS only policy and whether this applies to subdomains." - }, - { - "key": "Vary", - "value": "Accept-Encoding", - "name": "Vary", - "description": "Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server." - }, - { - "key": "X-Content-Type-Options", - "value": "nosniff", - "name": "X-Content-Type-Options", - "description": "The only defined value, \"nosniff\", prevents Internet Explorer from MIME-sniffing a response away from the declared content-type" - }, - { - "key": "X-DNS-Prefetch-Control", - "value": "off", - "name": "X-DNS-Prefetch-Control", - "description": "Custom header" - }, - { - "key": "X-Download-Options", - "value": "noopen", - "name": "X-Download-Options", - "description": "Custom header" - }, - { - "key": "X-Frame-Options", - "value": "SAMEORIGIN", - "name": "X-Frame-Options", - "description": "Clickjacking protection: \"deny\" - no rendering within a frame, \"sameorigin\" - no rendering if origin mismatch" - }, - { - "key": "X-XSS-Protection", - "value": "1; mode=block", - "name": "X-XSS-Protection", - "description": "Cross-site scripting (XSS) filter" - } - ], - "cookie": [], - "body": "{\"medium\":{\"id\":\"68b729fa-2dc5-4fdf-9396-f407b68cef6a\",\"slug\":\"medias-1531951547174\",\"title\":\"medias\",\"date\":\"2018-07-02T00:36:26.371Z\",\"image\":\"\",\"content\":\"Reprehenderit cum delectus voluptas. Aut ut veritatis. Maiores voluptas voluptas officia tenetur qui eligendi quam perspiciatis. Delectus maiores aut laboriosam quae sunt.\\n \\rVoluptas labore distinctio quisquam ratione esse. Eaque dolores aut cumque soluta consectetur sed nihil. Iusto qui quos a sit inventore vel cumque facere quibusdam. Mollitia nam facere natus.\\n \\rTempora esse eos quasi. Rerum cum omnis. Veniam laboriosam alias. Aliquid alias quisquam ratione pariatur placeat nobis labore. Debitis sed deserunt.\",\"author\":\"Percy Hathelthwaite\",\"category\":\"\",\"link\":\"http://url.com\",\"status\":\"published\",\"createdAt\":\"2018-07-18T22:05:47.174Z\",\"updatedAt\":\"2018-07-18T22:05:47.174Z\",\"mediaTags\":[{\"id\":\"66951e53-d811-45b7-b3f9-8d7359fb4eb0\",\"name\":\"one\"},{\"id\":\"99f80016-d700-4553-a7bf-5fc66e8baeb5\",\"name\":\"two\"}]}}" - } - ] - }, - { - "name": "localhost:1337/api/media/update", - "request": { - "method": "PATCH", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Authorization", - "value": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjJhM2JiOWYyLWE1NjEtNDAyNC1iNjA1LWQ3ZDVjNGNjMzUxMSIsImZpcnN0TmFtZSI6IkpvaG4iLCJsYXN0TmFtZSI6IlVzZXIiLCJlbWFpbCI6InVzZXJAZW1haWwuY29tIiwicGFzc3dvcmQiOiIkMmIkMTAkODdZQVU5TzZELi5rVFRNTkk3WXRodTdFLzVUc25SZ1cwZDVhSjU2Rk9vS2VVdDIvSUFqN0siLCJjcmVhdGVkQXQiOiIyMDE4LTA3LTExVDIzOjAyOjUxLjM3OFoiLCJ1cGRhdGVkQXQiOiIyMDE4LTA3LTExVDIzOjAyOjUxLjM3OFoiLCJpYXQiOjE1MzEzNTAxODEsImV4cCI6MTUzMzk0MjE4MX0.JdAiMrRf_HQW36BN2GkSaGXRy0deVeovdELF6In1_hU" - } - ], - "body": { - "mode": "raw", - "raw": "{\"title\": \"A media day\"}" - }, - "url": { - "raw": "localhost:1337/api/media/medias-1531951326878", - "host": [ - "localhost" - ], - "port": "1337", - "path": [ - "api", - "media", - "medias-1531951326878" - ] - } - }, - "response": [ - { - "id": "ca277e69-ff85-4296-b93d-ae4b931c59be", - "name": "localhost:1337/api/media/update", - "originalRequest": { - "method": "PATCH", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Authorization", - "value": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjJhM2JiOWYyLWE1NjEtNDAyNC1iNjA1LWQ3ZDVjNGNjMzUxMSIsImZpcnN0TmFtZSI6IkpvaG4iLCJsYXN0TmFtZSI6IlVzZXIiLCJlbWFpbCI6InVzZXJAZW1haWwuY29tIiwicGFzc3dvcmQiOiIkMmIkMTAkODdZQVU5TzZELi5rVFRNTkk3WXRodTdFLzVUc25SZ1cwZDVhSjU2Rk9vS2VVdDIvSUFqN0siLCJjcmVhdGVkQXQiOiIyMDE4LTA3LTExVDIzOjAyOjUxLjM3OFoiLCJ1cGRhdGVkQXQiOiIyMDE4LTA3LTExVDIzOjAyOjUxLjM3OFoiLCJpYXQiOjE1MzEzNTAxODEsImV4cCI6MTUzMzk0MjE4MX0.JdAiMrRf_HQW36BN2GkSaGXRy0deVeovdELF6In1_hU" - } - ], - "body": { - "mode": "raw", - "raw": "{\"title\": \"A media day\"}" - }, - "url": { - "raw": "localhost:1337/api/media/medias-1531951326878", - "host": [ - "localhost" - ], - "port": "1337", - "path": [ - "api", - "media", - "medias-1531951326878" - ] - } - }, - "status": "OK", - "code": 200, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Access-Control-Allow-Origin", - "value": "*", - "name": "Access-Control-Allow-Origin", - "description": "Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource." - }, - { - "key": "Connection", - "value": "keep-alive", - "name": "Connection", - "description": "Options that are desired for the connection" - }, - { - "key": "Content-Length", - "value": "857", - "name": "Content-Length", - "description": "The length of the response body in octets (8-bit bytes)" - }, - { - "key": "Content-Type", - "value": "application/json; charset=utf-8", - "name": "Content-Type", - "description": "The mime type of this content" - }, - { - "key": "Date", - "value": "Wed, 18 Jul 2018 22:05:01 GMT", - "name": "Date", - "description": "The date and time that the message was sent" - }, - { - "key": "ETag", - "value": "W/\"359-k5NoKI+1xCFIXn1pkHDRdIsb8TU\"", - "name": "ETag", - "description": "An identifier for a specific version of a resource, often a message digest" - }, - { - "key": "Strict-Transport-Security", - "value": "max-age=15552000; includeSubDomains", - "name": "Strict-Transport-Security", - "description": "A HSTS Policy informing the HTTP client how long to cache the HTTPS only policy and whether this applies to subdomains." - }, - { - "key": "Vary", - "value": "Accept-Encoding", - "name": "Vary", - "description": "Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server." - }, - { - "key": "X-Content-Type-Options", - "value": "nosniff", - "name": "X-Content-Type-Options", - "description": "The only defined value, \"nosniff\", prevents Internet Explorer from MIME-sniffing a response away from the declared content-type" - }, - { - "key": "X-DNS-Prefetch-Control", - "value": "off", - "name": "X-DNS-Prefetch-Control", - "description": "Custom header" - }, - { - "key": "X-Download-Options", - "value": "noopen", - "name": "X-Download-Options", - "description": "Custom header" - }, - { - "key": "X-Frame-Options", - "value": "SAMEORIGIN", - "name": "X-Frame-Options", - "description": "Clickjacking protection: \"deny\" - no rendering within a frame, \"sameorigin\" - no rendering if origin mismatch" - }, - { - "key": "X-XSS-Protection", - "value": "1; mode=block", - "name": "X-XSS-Protection", - "description": "Cross-site scripting (XSS) filter" - } - ], - "cookie": [], - "body": "{\"medium\":{\"id\":\"a0ab0702-c4fa-4bd9-8a22-669bfe5479fc\",\"slug\":\"a-media-day-1531951501467\",\"title\":\"A media day\",\"date\":\"2018-07-02T00:36:26.371Z\",\"image\":\"\",\"content\":\"Reprehenderit cum delectus voluptas. Aut ut veritatis. Maiores voluptas voluptas officia tenetur qui eligendi quam perspiciatis. Delectus maiores aut laboriosam quae sunt.\\n \\rVoluptas labore distinctio quisquam ratione esse. Eaque dolores aut cumque soluta consectetur sed nihil. Iusto qui quos a sit inventore vel cumque facere quibusdam. Mollitia nam facere natus.\\n \\rTempora esse eos quasi. Rerum cum omnis. Veniam laboriosam alias. Aliquid alias quisquam ratione pariatur placeat nobis labore. Debitis sed deserunt.\",\"author\":\"Percy Hathelthwaite\",\"category\":\"\",\"link\":\"http://url.com\",\"status\":\"published\",\"createdAt\":\"2018-07-18T22:02:06.880Z\",\"updatedAt\":\"2018-07-18T22:05:01.468Z\"}}" - } - ] - }, - { - "name": "localhost:1337/api/media-delete", - "request": { - "method": "DELETE", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Authorization", - "value": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImFiZTMwZTgwLTUzY2UtNDRkOC05MzhlLWFiZDRhYjA5MGM2ZCIsImZpcnN0TmFtZSI6IkpvaG4iLCJsYXN0TmFtZSI6IlVzZXIiLCJlbWFpbCI6InVzZXJAZW1haWwuY29tIiwicGFzc3dvcmQiOiIkMmIkMTAkakVDdXB4cVNxRjZvQ3RyYzZIVnpEZVpDd2dXMVlCaWhnUUZMYjR0a3VaWGUyYUhPTk44aHkiLCJjcmVhdGVkQXQiOiIyMDE4LTA3LTExVDA1OjIwOjE4LjYzMVoiLCJ1cGRhdGVkQXQiOiIyMDE4LTA3LTExVDA1OjIwOjE4LjYzMVoiLCJpYXQiOjE1MzEyODY1MDgsImV4cCI6MTUzMzg3ODUwOH0.NgVhTMAUjR2H4WpBTDSo-4_7hCpxO4WVVmqXPs0-W-4" - } - ], - "body": { - "mode": "raw", - "raw": "" - }, - "url": { - "raw": "localhost:1337/api/media/a-media-day-1531951501467", - "host": [ - "localhost" - ], - "port": "1337", - "path": [ - "api", - "media", - "a-media-day-1531951501467" - ] - } - }, - "response": [ - { - "id": "891c008c-b98e-4c82-bdb9-91c3ce071d78", - "name": "localhost:1337/api/media-delete", - "originalRequest": { - "method": "DELETE", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "disabled": false - }, - { - "key": "Authorization", - "value": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImFiZTMwZTgwLTUzY2UtNDRkOC05MzhlLWFiZDRhYjA5MGM2ZCIsImZpcnN0TmFtZSI6IkpvaG4iLCJsYXN0TmFtZSI6IlVzZXIiLCJlbWFpbCI6InVzZXJAZW1haWwuY29tIiwicGFzc3dvcmQiOiIkMmIkMTAkakVDdXB4cVNxRjZvQ3RyYzZIVnpEZVpDd2dXMVlCaWhnUUZMYjR0a3VaWGUyYUhPTk44aHkiLCJjcmVhdGVkQXQiOiIyMDE4LTA3LTExVDA1OjIwOjE4LjYzMVoiLCJ1cGRhdGVkQXQiOiIyMDE4LTA3LTExVDA1OjIwOjE4LjYzMVoiLCJpYXQiOjE1MzEyODY1MDgsImV4cCI6MTUzMzg3ODUwOH0.NgVhTMAUjR2H4WpBTDSo-4_7hCpxO4WVVmqXPs0-W-4", - "disabled": false - } - ], - "body": { - "mode": "raw", - "raw": "" - }, - "url": { - "raw": "localhost:1337/api/media/a-media-day-1531951501467", - "host": [ - "localhost" - ], - "port": "1337", - "path": [ - "api", - "media", - "a-media-day-1531951501467" - ] - } - }, - "status": "OK", - "code": 200, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Access-Control-Allow-Origin", - "value": "*", - "name": "Access-Control-Allow-Origin", - "description": "Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource." - }, - { - "key": "Connection", - "value": "keep-alive", - "name": "Connection", - "description": "Options that are desired for the connection" - }, - { - "key": "Content-Length", - "value": "41", - "name": "Content-Length", - "description": "The length of the response body in octets (8-bit bytes)" - }, - { - "key": "Content-Type", - "value": "application/json; charset=utf-8", - "name": "Content-Type", - "description": "The mime type of this content" - }, - { - "key": "Date", - "value": "Wed, 18 Jul 2018 22:07:40 GMT", - "name": "Date", - "description": "The date and time that the message was sent" - }, - { - "key": "ETag", - "value": "W/\"29-7JTY8QIQG1F+noL0g0jLQjzRc50\"", - "name": "ETag", - "description": "An identifier for a specific version of a resource, often a message digest" - }, - { - "key": "Strict-Transport-Security", - "value": "max-age=15552000; includeSubDomains", - "name": "Strict-Transport-Security", - "description": "A HSTS Policy informing the HTTP client how long to cache the HTTPS only policy and whether this applies to subdomains." - }, - { - "key": "Vary", - "value": "Accept-Encoding", - "name": "Vary", - "description": "Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server." - }, - { - "key": "X-Content-Type-Options", - "value": "nosniff", - "name": "X-Content-Type-Options", - "description": "The only defined value, \"nosniff\", prevents Internet Explorer from MIME-sniffing a response away from the declared content-type" - }, - { - "key": "X-DNS-Prefetch-Control", - "value": "off", - "name": "X-DNS-Prefetch-Control", - "description": "Custom header" - }, - { - "key": "X-Download-Options", - "value": "noopen", - "name": "X-Download-Options", - "description": "Custom header" - }, - { - "key": "X-Frame-Options", - "value": "SAMEORIGIN", - "name": "X-Frame-Options", - "description": "Clickjacking protection: \"deny\" - no rendering within a frame, \"sameorigin\" - no rendering if origin mismatch" - }, - { - "key": "X-XSS-Protection", - "value": "1; mode=block", - "name": "X-XSS-Protection", - "description": "Cross-site scripting (XSS) filter" - } - ], - "cookie": [], - "body": "{\"success\":\"Media successfully deleted.\"}" - } - ] - } - ] - }, - { - "name": "tags", - "description": "", - "item": [ - { - "name": "localhost:1337/api/tags", - "request": { - "method": "GET", - "header": [], - "body": {}, - "url": { - "raw": "localhost:1337/api/tags", - "host": [ - "localhost" - ], - "port": "1337", - "path": [ - "api", - "tags" - ] - } - }, - "response": [ - { - "id": "021610e8-a6ca-407e-8e2a-0a58be74c277", - "name": "localhost:1337/api/tags", - "originalRequest": { - "method": "GET", - "header": [], - "body": {}, - "url": { - "raw": "localhost:1337/api/tags", - "host": [ - "localhost" - ], - "port": "1337", - "path": [ - "api", - "tags" - ] - } - }, - "status": "OK", - "code": 200, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Access-Control-Allow-Origin", - "value": "*", - "name": "Access-Control-Allow-Origin", - "description": "Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource." - }, - { - "key": "Connection", - "value": "keep-alive", - "name": "Connection", - "description": "Options that are desired for the connection" - }, - { - "key": "Content-Length", - "value": "284", - "name": "Content-Length", - "description": "The length of the response body in octets (8-bit bytes)" - }, - { - "key": "Content-Type", - "value": "application/json; charset=utf-8", - "name": "Content-Type", - "description": "The mime type of this content" - }, - { - "key": "Date", - "value": "Mon, 16 Jul 2018 04:46:58 GMT", - "name": "Date", - "description": "The date and time that the message was sent" - }, - { - "key": "ETag", - "value": "W/\"11c-QjXL0wZUE3r/BbQi4Y0pti0J2l8\"", - "name": "ETag", - "description": "An identifier for a specific version of a resource, often a message digest" - }, - { - "key": "Strict-Transport-Security", - "value": "max-age=15552000; includeSubDomains", - "name": "Strict-Transport-Security", - "description": "A HSTS Policy informing the HTTP client how long to cache the HTTPS only policy and whether this applies to subdomains." - }, - { - "key": "Vary", - "value": "Accept-Encoding", - "name": "Vary", - "description": "Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server." - }, - { - "key": "X-Content-Type-Options", - "value": "nosniff", - "name": "X-Content-Type-Options", - "description": "The only defined value, \"nosniff\", prevents Internet Explorer from MIME-sniffing a response away from the declared content-type" - }, - { - "key": "X-DNS-Prefetch-Control", - "value": "off", - "name": "X-DNS-Prefetch-Control", - "description": "Custom header" - }, - { - "key": "X-Download-Options", - "value": "noopen", - "name": "X-Download-Options", - "description": "Custom header" - }, - { - "key": "X-Frame-Options", - "value": "SAMEORIGIN", - "name": "X-Frame-Options", - "description": "Clickjacking protection: \"deny\" - no rendering within a frame, \"sameorigin\" - no rendering if origin mismatch" - }, - { - "key": "X-XSS-Protection", - "value": "1; mode=block", - "name": "X-XSS-Protection", - "description": "Cross-site scripting (XSS) filter" - } - ], - "cookie": [], - "body": "{\"tags\":[{\"id\":\"97fe5d4b-c844-40fe-adac-6b8b27cc257f\",\"name\":\"one\",\"createdAt\":\"2018-07-16T04:44:57.638Z\",\"updatedAt\":\"2018-07-16T04:44:57.638Z\"},{\"id\":\"2e91847e-906d-48b6-af9a-ea133adec466\",\"name\":\"two\",\"createdAt\":\"2018-07-16T04:44:57.651Z\",\"updatedAt\":\"2018-07-16T04:44:57.651Z\"}]}" - } - ] - } - ] - }, - { - "name": "pages", - "description": "", - "item": [ - { - "name": "localhost:1337/api/pages", - "request": { - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Authorization", - "value": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjdkNmU5OGE2LWVjZjEtNDZmNC1hNzE3LWU4NTE4Y2E5M2M4ZiIsImZpcnN0TmFtZSI6IkpvaG4iLCJsYXN0TmFtZSI6IlVzZXIiLCJlbWFpbCI6InVzZXJAZW1haWwuY29tIiwicGFzc3dvcmQiOiIkMmIkMTAkRncwb3k0d0hSOEUuTmVIWElKSm13ZUIzUlhOTFNYTThuZ1ROOEpyZHRqblptUGZJVW44cHUiLCJjcmVhdGVkQXQiOiIyMDE4LTA3LTEyVDA0OjAyOjEwLjc5MVoiLCJ1cGRhdGVkQXQiOiIyMDE4LTA3LTEyVDA0OjAyOjEwLjc5MVoiLCJpYXQiOjE1MzEzNjgzNTgsImV4cCI6MTUzMzk2MDM1OH0.RCPAbOInAEGPjl6Sl2c8mcmTr6ynXy8uolRt07hcetg" - } - ], - "body": { - "mode": "raw", - "raw": "{\"title\": \"aaaaaaa\",\"date\": \"2018-07-02T00:36:26.371Z\",\"image\": \"/image\",\"slide\": \"0\",\"status\": \"published\",\"content\": \"Reprehenderit cum delectus voluptas. Aut ut veritatis. Maiores voluptas voluptas officia tenetur qui eligendi quam perspiciatis. Delectus maiores aut laboriosam quae sunt.\\n \\rVoluptas labore distinctio quisquam ratione esse. Eaque dolores aut cumque soluta consectetur sed nihil. Iusto qui quos a sit inventore vel cumque facere quibusdam. Mollitia nam facere natus.\\n \\rTempora esse eos quasi. Rerum cum omnis. Veniam laboriosam alias. Aliquid alias quisquam ratione pariatur placeat nobis labore. Debitis sed deserunt.\"}" - }, - "url": { - "raw": "localhost:1337/api/pages", - "host": [ - "localhost" - ], - "port": "1337", - "path": [ - "api", - "pages" - ] - } - }, - "response": [ - { - "id": "8932e51b-676d-4bd5-a2e3-96b85fd142a5", - "name": "localhost:1337/api/pages", - "originalRequest": { - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "disabled": false - }, - { - "key": "Authorization", - "value": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjdkNmU5OGE2LWVjZjEtNDZmNC1hNzE3LWU4NTE4Y2E5M2M4ZiIsImZpcnN0TmFtZSI6IkpvaG4iLCJsYXN0TmFtZSI6IlVzZXIiLCJlbWFpbCI6InVzZXJAZW1haWwuY29tIiwicGFzc3dvcmQiOiIkMmIkMTAkRncwb3k0d0hSOEUuTmVIWElKSm13ZUIzUlhOTFNYTThuZ1ROOEpyZHRqblptUGZJVW44cHUiLCJjcmVhdGVkQXQiOiIyMDE4LTA3LTEyVDA0OjAyOjEwLjc5MVoiLCJ1cGRhdGVkQXQiOiIyMDE4LTA3LTEyVDA0OjAyOjEwLjc5MVoiLCJpYXQiOjE1MzEzNjgzNTgsImV4cCI6MTUzMzk2MDM1OH0.RCPAbOInAEGPjl6Sl2c8mcmTr6ynXy8uolRt07hcetg", - "disabled": false - } - ], - "body": { - "mode": "raw", - "raw": "{\"title\": \"aaaaaaa\",\"date\": \"2018-07-02T00:36:26.371Z\",\"image\": \"/image\",\"slide\": \"0\",\"status\": \"published\",\"content\": \"Reprehenderit cum delectus voluptas. Aut ut veritatis. Maiores voluptas voluptas officia tenetur qui eligendi quam perspiciatis. Delectus maiores aut laboriosam quae sunt.\\n \\rVoluptas labore distinctio quisquam ratione esse. Eaque dolores aut cumque soluta consectetur sed nihil. Iusto qui quos a sit inventore vel cumque facere quibusdam. Mollitia nam facere natus.\\n \\rTempora esse eos quasi. Rerum cum omnis. Veniam laboriosam alias. Aliquid alias quisquam ratione pariatur placeat nobis labore. Debitis sed deserunt.\"}" - }, - "url": { - "raw": "localhost:1337/api/pages", - "host": [ - "localhost" - ], - "port": "1337", - "path": [ - "api", - "pages" - ] - } - }, - "status": "OK", - "code": 200, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Access-Control-Allow-Origin", - "value": "*", - "name": "Access-Control-Allow-Origin", - "description": "Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource." - }, - { - "key": "Connection", - "value": "keep-alive", - "name": "Connection", - "description": "Options that are desired for the connection" - }, - { - "key": "Content-Length", - "value": "762", - "name": "Content-Length", - "description": "The length of the response body in octets (8-bit bytes)" - }, - { - "key": "Content-Type", - "value": "application/json; charset=utf-8", - "name": "Content-Type", - "description": "The mime type of this content" - }, - { - "key": "Date", - "value": "Mon, 16 Jul 2018 04:47:31 GMT", - "name": "Date", - "description": "The date and time that the message was sent" - }, - { - "key": "ETag", - "value": "W/\"2fa-JM0aSYE2xOR4Ox/V6klUVKHLdWg\"", - "name": "ETag", - "description": "An identifier for a specific version of a resource, often a message digest" - }, - { - "key": "Strict-Transport-Security", - "value": "max-age=15552000; includeSubDomains", - "name": "Strict-Transport-Security", - "description": "A HSTS Policy informing the HTTP client how long to cache the HTTPS only policy and whether this applies to subdomains." - }, - { - "key": "Vary", - "value": "Accept-Encoding", - "name": "Vary", - "description": "Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server." - }, - { - "key": "X-Content-Type-Options", - "value": "nosniff", - "name": "X-Content-Type-Options", - "description": "The only defined value, \"nosniff\", prevents Internet Explorer from MIME-sniffing a response away from the declared content-type" - }, - { - "key": "X-DNS-Prefetch-Control", - "value": "off", - "name": "X-DNS-Prefetch-Control", - "description": "Custom header" - }, - { - "key": "X-Download-Options", - "value": "noopen", - "name": "X-Download-Options", - "description": "Custom header" - }, - { - "key": "X-Frame-Options", - "value": "SAMEORIGIN", - "name": "X-Frame-Options", - "description": "Clickjacking protection: \"deny\" - no rendering within a frame, \"sameorigin\" - no rendering if origin mismatch" - }, - { - "key": "X-XSS-Protection", - "value": "1; mode=block", - "name": "X-XSS-Protection", - "description": "Cross-site scripting (XSS) filter" - } - ], - "cookie": [], - "body": "{\"page\":{\"id\":\"df988f87-6cc2-45e6-bfaa-a45c8a8db36d\",\"title\":\"aaaaaaa\",\"slug\":\"aaaaaaa-1531716451107\",\"image\":\"/image\",\"content\":\"Reprehenderit cum delectus voluptas. Aut ut veritatis. Maiores voluptas voluptas officia tenetur qui eligendi quam perspiciatis. Delectus maiores aut laboriosam quae sunt.\\n \\rVoluptas labore distinctio quisquam ratione esse. Eaque dolores aut cumque soluta consectetur sed nihil. Iusto qui quos a sit inventore vel cumque facere quibusdam. Mollitia nam facere natus.\\n \\rTempora esse eos quasi. Rerum cum omnis. Veniam laboriosam alias. Aliquid alias quisquam ratione pariatur placeat nobis labore. Debitis sed deserunt.\",\"slide\":\"0\",\"status\":\"published\",\"updatedAt\":\"2018-07-16T04:47:31.113Z\",\"createdAt\":\"2018-07-16T04:47:31.113Z\"}}" - } - ] - }, - { - "name": "localhost:1337/api/pages", - "request": { - "method": "GET", - "header": [], - "body": {}, - "url": { - "raw": "localhost:1337/api/pages", - "host": [ - "localhost" - ], - "port": "1337", - "path": [ - "api", - "pages" - ] - } - }, - "response": [ - { - "id": "215de68b-a02b-44c2-b608-fd9bdb36b171", - "name": "localhost:1337/api/pages", - "originalRequest": { - "method": "GET", - "header": [], - "body": {}, - "url": { - "raw": "localhost:1337/api/pages", - "host": [ - "localhost" - ], - "port": "1337", - "path": [ - "api", - "pages" - ] - } - }, - "status": "OK", - "code": 200, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Access-Control-Allow-Origin", - "value": "*", - "name": "Access-Control-Allow-Origin", - "description": "Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource." - }, - { - "key": "Connection", - "value": "keep-alive", - "name": "Connection", - "description": "Options that are desired for the connection" - }, - { - "key": "Content-Encoding", - "value": "gzip", - "name": "Content-Encoding", - "description": "The type of encoding used on the data." - }, - { - "key": "Content-Type", - "value": "application/json; charset=utf-8", - "name": "Content-Type", - "description": "The mime type of this content" - }, - { - "key": "Date", - "value": "Mon, 16 Jul 2018 04:47:54 GMT", - "name": "Date", - "description": "The date and time that the message was sent" - }, - { - "key": "ETag", - "value": "W/\"dcf-evzH6fLibpPE3hiirs9Rj65C5VQ\"", - "name": "ETag", - "description": "An identifier for a specific version of a resource, often a message digest" - }, - { - "key": "Strict-Transport-Security", - "value": "max-age=15552000; includeSubDomains", - "name": "Strict-Transport-Security", - "description": "A HSTS Policy informing the HTTP client how long to cache the HTTPS only policy and whether this applies to subdomains." - }, - { - "key": "Transfer-Encoding", - "value": "chunked", - "name": "Transfer-Encoding", - "description": "The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity." - }, - { - "key": "Vary", - "value": "Accept-Encoding", - "name": "Vary", - "description": "Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server." - }, - { - "key": "X-Content-Type-Options", - "value": "nosniff", - "name": "X-Content-Type-Options", - "description": "The only defined value, \"nosniff\", prevents Internet Explorer from MIME-sniffing a response away from the declared content-type" - }, - { - "key": "X-DNS-Prefetch-Control", - "value": "off", - "name": "X-DNS-Prefetch-Control", - "description": "Custom header" - }, - { - "key": "X-Download-Options", - "value": "noopen", - "name": "X-Download-Options", - "description": "Custom header" - }, - { - "key": "X-Frame-Options", - "value": "SAMEORIGIN", - "name": "X-Frame-Options", - "description": "Clickjacking protection: \"deny\" - no rendering within a frame, \"sameorigin\" - no rendering if origin mismatch" - }, - { - "key": "X-XSS-Protection", - "value": "1; mode=block", - "name": "X-XSS-Protection", - "description": "Cross-site scripting (XSS) filter" - } - ], - "cookie": [], - "body": "{\"pages\":[{\"id\":\"d55baf67-23c7-4f88-87bd-ccbeb9a6dfd4\",\"image\":\"http://lorempixel.com/640/480\",\"slide\":\"0\",\"status\":\"draft\",\"slug\":\"quis-fugiat-ipsum-porro-ad-1531716290736\",\"content\":\"Officia et est consequatur qui voluptatem.\",\"title\":\"Quis fugiat ipsum porro ad.\",\"createdAt\":\"2018-07-16T04:44:50.736Z\",\"updatedAt\":\"2018-07-16T04:44:50.736Z\"},{\"id\":\"383d289d-8b1f-4ec9-9adb-9b839632e2f3\",\"image\":\"http://lorempixel.com/640/480\",\"slide\":\"0\",\"status\":\"published\",\"slug\":\"delectus-voluptatum-quia-ex-ea-1531716290736\",\"content\":\"Voluptatum officiis eligendi voluptas ipsa aut iure. Dolor eligendi magnam temporibus at natus et voluptatem repellat. Commodi eos nihil et magni soluta excepturi aliquam est. Dignissimos facilis in autem saepe fugit. Id dolores consequatur aut dolor libero ea et. Aspernatur molestias iste voluptas doloremque.\\n \\rIure qui molestiae ea consequatur itaque eum tempora. Praesentium aut asperiores et. Blanditiis quia odio quibusdam dolor odit ipsa ut. Consequatur perspiciatis porro tenetur ex voluptatem.\\n \\rTenetur quis explicabo voluptatibus. Magnam quae veniam. Aperiam atque reiciendis nam sint sed sit atque quia provident. Repellendus eos sed ad optio quo quaerat iure. Voluptatum labore veniam autem voluptatem sapiente non laborum. Qui maxime itaque possimus ipsa nostrum non.\",\"title\":\"Delectus voluptatum quia ex ea.\",\"createdAt\":\"2018-07-16T04:44:50.737Z\",\"updatedAt\":\"2018-07-16T04:44:50.737Z\"},{\"id\":\"1a9dfa26-ee7b-4ff5-b1ce-60758214696e\",\"image\":\"http://lorempixel.com/640/480\",\"slide\":\"0\",\"status\":\"published\",\"slug\":\"ipsum-vel-quaerat-perferendis-sit-1531716290737\",\"content\":\"consequatur\",\"title\":\"Ipsum vel quaerat perferendis sit.\",\"createdAt\":\"2018-07-16T04:44:50.737Z\",\"updatedAt\":\"2018-07-16T04:44:50.737Z\"},{\"id\":\"7c2e5214-3146-4887-96c9-3c3b11641cd9\",\"image\":\"http://lorempixel.com/640/480\",\"slide\":\"1\",\"status\":\"published\",\"slug\":\"sit-deserunt-vero-officiis-architecto-1531716290737\",\"content\":\"Sed soluta qui. Enim totam quis et accusamus. Eum magni tempora earum suscipit ipsum quia eius.\",\"title\":\"Sit deserunt vero officiis architecto.\",\"createdAt\":\"2018-07-16T04:44:50.737Z\",\"updatedAt\":\"2018-07-16T04:44:50.737Z\"},{\"id\":\"efedce45-692b-4a8f-a8de-51619c311d02\",\"image\":\"http://lorempixel.com/640/480\",\"slide\":\"0\",\"status\":\"published\",\"slug\":\"esse-ipsa-nisi-sunt-et-1531716290737\",\"content\":\"vero\",\"title\":\"Esse ipsa nisi sunt et.\",\"createdAt\":\"2018-07-16T04:44:50.737Z\",\"updatedAt\":\"2018-07-16T04:44:50.737Z\"},{\"id\":\"a09ac6e7-7e45-41e2-8706-14fec054b24c\",\"image\":\"http://lorempixel.com/640/480\",\"slide\":\"0\",\"status\":\"published\",\"slug\":\"iste-eligendi-officia-enim-illum-1531716290737\",\"content\":\"et quo consectetur\",\"title\":\"Iste eligendi officia enim illum.\",\"createdAt\":\"2018-07-16T04:44:50.737Z\",\"updatedAt\":\"2018-07-16T04:44:50.737Z\"},{\"id\":\"df988f87-6cc2-45e6-bfaa-a45c8a8db36d\",\"image\":\"/image\",\"slide\":\"0\",\"status\":\"published\",\"slug\":\"aaaaaaa-1531716451107\",\"content\":\"Reprehenderit cum delectus voluptas. Aut ut veritatis. Maiores voluptas voluptas officia tenetur qui eligendi quam perspiciatis. Delectus maiores aut laboriosam quae sunt.\\n \\rVoluptas labore distinctio quisquam ratione esse. Eaque dolores aut cumque soluta consectetur sed nihil. Iusto qui quos a sit inventore vel cumque facere quibusdam. Mollitia nam facere natus.\\n \\rTempora esse eos quasi. Rerum cum omnis. Veniam laboriosam alias. Aliquid alias quisquam ratione pariatur placeat nobis labore. Debitis sed deserunt.\",\"title\":\"aaaaaaa\",\"createdAt\":\"2018-07-16T04:47:31.113Z\",\"updatedAt\":\"2018-07-16T04:47:31.113Z\"}]}" - } - ] - }, - { - "name": "localhost:1337/api/pages/single-page", - "request": { - "method": "GET", - "header": [], - "body": {}, - "url": { - "raw": "localhost:1337/api/pages/quis-fugiat-ipsum-porro-ad-1531716290736", - "host": [ - "localhost" - ], - "port": "1337", - "path": [ - "api", - "pages", - "quis-fugiat-ipsum-porro-ad-1531716290736" - ] - } - }, - "response": [ - { - "id": "0f49570e-810f-46de-bf51-d42980d6435c", - "name": "localhost:1337/api/pages/single-page", - "originalRequest": { - "method": "GET", - "header": [], - "body": {}, - "url": { - "raw": "localhost:1337/api/pages/quis-fugiat-ipsum-porro-ad-1531716290736", - "host": [ - "localhost" - ], - "port": "1337", - "path": [ - "api", - "pages", - "quis-fugiat-ipsum-porro-ad-1531716290736" - ] - } - }, - "status": "OK", - "code": 200, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Access-Control-Allow-Origin", - "value": "*", - "name": "Access-Control-Allow-Origin", - "description": "Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource." - }, - { - "key": "Connection", - "value": "keep-alive", - "name": "Connection", - "description": "Options that are desired for the connection" - }, - { - "key": "Content-Length", - "value": "341", - "name": "Content-Length", - "description": "The length of the response body in octets (8-bit bytes)" - }, - { - "key": "Content-Type", - "value": "application/json; charset=utf-8", - "name": "Content-Type", - "description": "The mime type of this content" - }, - { - "key": "Date", - "value": "Mon, 16 Jul 2018 04:48:17 GMT", - "name": "Date", - "description": "The date and time that the message was sent" - }, - { - "key": "ETag", - "value": "W/\"155-D4u0FdPnKp817XNDG/kKdvuAm1U\"", - "name": "ETag", - "description": "An identifier for a specific version of a resource, often a message digest" - }, - { - "key": "Strict-Transport-Security", - "value": "max-age=15552000; includeSubDomains", - "name": "Strict-Transport-Security", - "description": "A HSTS Policy informing the HTTP client how long to cache the HTTPS only policy and whether this applies to subdomains." - }, - { - "key": "Vary", - "value": "Accept-Encoding", - "name": "Vary", - "description": "Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server." - }, - { - "key": "X-Content-Type-Options", - "value": "nosniff", - "name": "X-Content-Type-Options", - "description": "The only defined value, \"nosniff\", prevents Internet Explorer from MIME-sniffing a response away from the declared content-type" - }, - { - "key": "X-DNS-Prefetch-Control", - "value": "off", - "name": "X-DNS-Prefetch-Control", - "description": "Custom header" - }, - { - "key": "X-Download-Options", - "value": "noopen", - "name": "X-Download-Options", - "description": "Custom header" - }, - { - "key": "X-Frame-Options", - "value": "SAMEORIGIN", - "name": "X-Frame-Options", - "description": "Clickjacking protection: \"deny\" - no rendering within a frame, \"sameorigin\" - no rendering if origin mismatch" - }, - { - "key": "X-XSS-Protection", - "value": "1; mode=block", - "name": "X-XSS-Protection", - "description": "Cross-site scripting (XSS) filter" - } - ], - "cookie": [], - "body": "{\"page\":{\"id\":\"d55baf67-23c7-4f88-87bd-ccbeb9a6dfd4\",\"image\":\"http://lorempixel.com/640/480\",\"slide\":\"0\",\"status\":\"draft\",\"slug\":\"quis-fugiat-ipsum-porro-ad-1531716290736\",\"content\":\"Officia et est consequatur qui voluptatem.\",\"title\":\"Quis fugiat ipsum porro ad.\",\"createdAt\":\"2018-07-16T04:44:50.736Z\",\"updatedAt\":\"2018-07-16T04:44:50.736Z\"}}" - } - ] - }, - { - "name": "localhost:1337/api/pages/update", - "request": { - "method": "PATCH", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Authorization", - "value": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjJhM2JiOWYyLWE1NjEtNDAyNC1iNjA1LWQ3ZDVjNGNjMzUxMSIsImZpcnN0TmFtZSI6IkpvaG4iLCJsYXN0TmFtZSI6IlVzZXIiLCJlbWFpbCI6InVzZXJAZW1haWwuY29tIiwicGFzc3dvcmQiOiIkMmIkMTAkODdZQVU5TzZELi5rVFRNTkk3WXRodTdFLzVUc25SZ1cwZDVhSjU2Rk9vS2VVdDIvSUFqN0siLCJjcmVhdGVkQXQiOiIyMDE4LTA3LTExVDIzOjAyOjUxLjM3OFoiLCJ1cGRhdGVkQXQiOiIyMDE4LTA3LTExVDIzOjAyOjUxLjM3OFoiLCJpYXQiOjE1MzEzNTAxODEsImV4cCI6MTUzMzk0MjE4MX0.JdAiMrRf_HQW36BN2GkSaGXRy0deVeovdELF6In1_hU" - } - ], - "body": { - "mode": "raw", - "raw": "{\"title\": \"A goodsss day\"}" - }, - "url": { - "raw": "localhost:1337/api/pages/illum-vitae-aliquid-laudantium-quo-1531368130236", - "host": [ - "localhost" - ], - "port": "1337", - "path": [ - "api", - "pages", - "illum-vitae-aliquid-laudantium-quo-1531368130236" - ] - } - }, - "response": [ - { - "id": "49a463e9-9c84-4226-aaae-6a61de5f19e6", - "name": "localhost:1337/api/pages/update", - "originalRequest": { - "method": "PATCH", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "disabled": false - }, - { - "key": "Authorization", - "value": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjJhM2JiOWYyLWE1NjEtNDAyNC1iNjA1LWQ3ZDVjNGNjMzUxMSIsImZpcnN0TmFtZSI6IkpvaG4iLCJsYXN0TmFtZSI6IlVzZXIiLCJlbWFpbCI6InVzZXJAZW1haWwuY29tIiwicGFzc3dvcmQiOiIkMmIkMTAkODdZQVU5TzZELi5rVFRNTkk3WXRodTdFLzVUc25SZ1cwZDVhSjU2Rk9vS2VVdDIvSUFqN0siLCJjcmVhdGVkQXQiOiIyMDE4LTA3LTExVDIzOjAyOjUxLjM3OFoiLCJ1cGRhdGVkQXQiOiIyMDE4LTA3LTExVDIzOjAyOjUxLjM3OFoiLCJpYXQiOjE1MzEzNTAxODEsImV4cCI6MTUzMzk0MjE4MX0.JdAiMrRf_HQW36BN2GkSaGXRy0deVeovdELF6In1_hU", - "disabled": false - } - ], - "body": { - "mode": "raw", - "raw": "{\"title\": \"A goodsss day\"}" - }, - "url": { - "raw": "localhost:1337/api/pages/quis-fugiat-ipsum-porro-ad-1531716290736", - "host": [ - "localhost" - ], - "port": "1337", - "path": [ - "api", - "pages", - "quis-fugiat-ipsum-porro-ad-1531716290736" - ] - } - }, - "status": "OK", - "code": 200, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Access-Control-Allow-Origin", - "value": "*", - "name": "Access-Control-Allow-Origin", - "description": "Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource." - }, - { - "key": "Connection", - "value": "keep-alive", - "name": "Connection", - "description": "Options that are desired for the connection" - }, - { - "key": "Content-Length", - "value": "305", - "name": "Content-Length", - "description": "The length of the response body in octets (8-bit bytes)" - }, - { - "key": "Content-Type", - "value": "application/json; charset=utf-8", - "name": "Content-Type", - "description": "The mime type of this content" - }, - { - "key": "Date", - "value": "Mon, 16 Jul 2018 04:48:32 GMT", - "name": "Date", - "description": "The date and time that the message was sent" - }, - { - "key": "ETag", - "value": "W/\"131-+R2j3r1lm6diwWrEiBUtiwijckA\"", - "name": "ETag", - "description": "An identifier for a specific version of a resource, often a message digest" - }, - { - "key": "Strict-Transport-Security", - "value": "max-age=15552000; includeSubDomains", - "name": "Strict-Transport-Security", - "description": "A HSTS Policy informing the HTTP client how long to cache the HTTPS only policy and whether this applies to subdomains." - }, - { - "key": "Vary", - "value": "Accept-Encoding", - "name": "Vary", - "description": "Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server." - }, - { - "key": "X-Content-Type-Options", - "value": "nosniff", - "name": "X-Content-Type-Options", - "description": "The only defined value, \"nosniff\", prevents Internet Explorer from MIME-sniffing a response away from the declared content-type" - }, - { - "key": "X-DNS-Prefetch-Control", - "value": "off", - "name": "X-DNS-Prefetch-Control", - "description": "Custom header" - }, - { - "key": "X-Download-Options", - "value": "noopen", - "name": "X-Download-Options", - "description": "Custom header" - }, - { - "key": "X-Frame-Options", - "value": "SAMEORIGIN", - "name": "X-Frame-Options", - "description": "Clickjacking protection: \"deny\" - no rendering within a frame, \"sameorigin\" - no rendering if origin mismatch" - }, - { - "key": "X-XSS-Protection", - "value": "1; mode=block", - "name": "X-XSS-Protection", - "description": "Cross-site scripting (XSS) filter" - } - ], - "cookie": [], - "body": "{\"id\":\"d55baf67-23c7-4f88-87bd-ccbeb9a6dfd4\",\"image\":\"http://lorempixel.com/640/480\",\"slide\":\"0\",\"status\":\"draft\",\"slug\":\"a-goodsss-day-1531716512240\",\"content\":\"Officia et est consequatur qui voluptatem.\",\"title\":\"A goodsss day\",\"createdAt\":\"2018-07-16T04:44:50.736Z\",\"updatedAt\":\"2018-07-16T04:48:32.241Z\"}" - } - ] - }, - { - "name": "localhost:1337/api/pages-delete", - "request": { - "method": "DELETE", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Authorization", - "value": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImFiZTMwZTgwLTUzY2UtNDRkOC05MzhlLWFiZDRhYjA5MGM2ZCIsImZpcnN0TmFtZSI6IkpvaG4iLCJsYXN0TmFtZSI6IlVzZXIiLCJlbWFpbCI6InVzZXJAZW1haWwuY29tIiwicGFzc3dvcmQiOiIkMmIkMTAkakVDdXB4cVNxRjZvQ3RyYzZIVnpEZVpDd2dXMVlCaWhnUUZMYjR0a3VaWGUyYUhPTk44aHkiLCJjcmVhdGVkQXQiOiIyMDE4LTA3LTExVDA1OjIwOjE4LjYzMVoiLCJ1cGRhdGVkQXQiOiIyMDE4LTA3LTExVDA1OjIwOjE4LjYzMVoiLCJpYXQiOjE1MzEyODY1MDgsImV4cCI6MTUzMzg3ODUwOH0.NgVhTMAUjR2H4WpBTDSo-4_7hCpxO4WVVmqXPs0-W-4" - } - ], - "body": { - "mode": "raw", - "raw": "" - }, - "url": { - "raw": "localhost:1337/api/pages/a-goodsss-day-1531716512240", - "host": [ - "localhost" - ], - "port": "1337", - "path": [ - "api", - "pages", - "a-goodsss-day-1531716512240" - ] - } - }, - "response": [ - { - "id": "fd572958-2461-47ca-8bc4-30f1619a7479", - "name": "localhost:1337/api/pages-delete", - "originalRequest": { - "method": "DELETE", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "disabled": false - }, - { - "key": "Authorization", - "value": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImFiZTMwZTgwLTUzY2UtNDRkOC05MzhlLWFiZDRhYjA5MGM2ZCIsImZpcnN0TmFtZSI6IkpvaG4iLCJsYXN0TmFtZSI6IlVzZXIiLCJlbWFpbCI6InVzZXJAZW1haWwuY29tIiwicGFzc3dvcmQiOiIkMmIkMTAkakVDdXB4cVNxRjZvQ3RyYzZIVnpEZVpDd2dXMVlCaWhnUUZMYjR0a3VaWGUyYUhPTk44aHkiLCJjcmVhdGVkQXQiOiIyMDE4LTA3LTExVDA1OjIwOjE4LjYzMVoiLCJ1cGRhdGVkQXQiOiIyMDE4LTA3LTExVDA1OjIwOjE4LjYzMVoiLCJpYXQiOjE1MzEyODY1MDgsImV4cCI6MTUzMzg3ODUwOH0.NgVhTMAUjR2H4WpBTDSo-4_7hCpxO4WVVmqXPs0-W-4", - "disabled": false - } - ], - "body": { - "mode": "raw", - "raw": "" - }, - "url": { - "raw": "localhost:1337/api/pages/a-goodsss-day-1531716512240", - "host": [ - "localhost" - ], - "port": "1337", - "path": [ - "api", - "pages", - "a-goodsss-day-1531716512240" - ] - } - }, - "status": "OK", - "code": 200, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Access-Control-Allow-Origin", - "value": "*", - "name": "Access-Control-Allow-Origin", - "description": "Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource." - }, - { - "key": "Connection", - "value": "keep-alive", - "name": "Connection", - "description": "Options that are desired for the connection" - }, - { - "key": "Content-Length", - "value": "40", - "name": "Content-Length", - "description": "The length of the response body in octets (8-bit bytes)" - }, - { - "key": "Content-Type", - "value": "application/json; charset=utf-8", - "name": "Content-Type", - "description": "The mime type of this content" - }, - { - "key": "Date", - "value": "Mon, 16 Jul 2018 04:48:57 GMT", - "name": "Date", - "description": "The date and time that the message was sent" - }, - { - "key": "ETag", - "value": "W/\"28-aAfpCvLSh6RDTb9JdnGgqOj/dfI\"", - "name": "ETag", - "description": "An identifier for a specific version of a resource, often a message digest" - }, - { - "key": "Strict-Transport-Security", - "value": "max-age=15552000; includeSubDomains", - "name": "Strict-Transport-Security", - "description": "A HSTS Policy informing the HTTP client how long to cache the HTTPS only policy and whether this applies to subdomains." - }, - { - "key": "Vary", - "value": "Accept-Encoding", - "name": "Vary", - "description": "Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server." - }, - { - "key": "X-Content-Type-Options", - "value": "nosniff", - "name": "X-Content-Type-Options", - "description": "The only defined value, \"nosniff\", prevents Internet Explorer from MIME-sniffing a response away from the declared content-type" - }, - { - "key": "X-DNS-Prefetch-Control", - "value": "off", - "name": "X-DNS-Prefetch-Control", - "description": "Custom header" - }, - { - "key": "X-Download-Options", - "value": "noopen", - "name": "X-Download-Options", - "description": "Custom header" - }, - { - "key": "X-Frame-Options", - "value": "SAMEORIGIN", - "name": "X-Frame-Options", - "description": "Clickjacking protection: \"deny\" - no rendering within a frame, \"sameorigin\" - no rendering if origin mismatch" - }, - { - "key": "X-XSS-Protection", - "value": "1; mode=block", - "name": "X-XSS-Protection", - "description": "Cross-site scripting (XSS) filter" - } - ], - "cookie": [], - "body": "{\"success\":\"Page successfully deleted.\"}" - } - ] - } - ] - } - ] -} diff --git a/test/seedpress-api.postman_collection.json b/test/seedpress-api.postman_collection.json new file mode 100644 index 0000000..a3519fa --- /dev/null +++ b/test/seedpress-api.postman_collection.json @@ -0,0 +1,1039 @@ +{ + "info": { + "_postman_id": "f97e2d84-9654-400b-b368-a05933b11a6c", + "name": "seedpress-api", + "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" + }, + "item": [ + { + "name": "auth", + "description": "", + "item": [ + { + "name": "localhost: 1337/auth/register", + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\"email\":\"new@user.com\",\"password\":\"passwrod\"}" + }, + "url": { + "raw": "localhost:1337/auth/register", + "host": [ + "localhost" + ], + "port": "1337", + "path": [ + "auth", + "register" + ] + } + }, + "response": [ + { + "id": "232f24f1-1a13-4cc1-b4ea-82b567b92a0d", + "name": "localhost: 1337/auth/register", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "disabled": false + } + ], + "body": { + "mode": "raw", + "raw": "{\"email\":\"new@user.com\",\"password\":\"passwrod\"}" + }, + "url": { + "raw": "localhost:1337/auth/register", + "host": [ + "localhost" + ], + "port": "1337", + "path": [ + "auth", + "register" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Access-Control-Allow-Origin", + "value": "*", + "name": "Access-Control-Allow-Origin", + "description": "Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource." + }, + { + "key": "Connection", + "value": "keep-alive", + "name": "Connection", + "description": "Options that are desired for the connection" + }, + { + "key": "Content-Length", + "value": "776", + "name": "Content-Length", + "description": "The length of the response body in octets (8-bit bytes)" + }, + { + "key": "Content-Type", + "value": "application/json; charset=utf-8", + "name": "Content-Type", + "description": "The mime type of this content" + }, + { + "key": "Date", + "value": "Mon, 16 Jul 2018 04:53:21 GMT", + "name": "Date", + "description": "The date and time that the message was sent" + }, + { + "key": "ETag", + "value": "W/\"308-i+MiB35zBWmyyynQxm0G0r/hiWA\"", + "name": "ETag", + "description": "An identifier for a specific version of a resource, often a message digest" + }, + { + "key": "Strict-Transport-Security", + "value": "max-age=15552000; includeSubDomains", + "name": "Strict-Transport-Security", + "description": "A HSTS Policy informing the HTTP client how long to cache the HTTPS only policy and whether this applies to subdomains." + }, + { + "key": "Vary", + "value": "Accept-Encoding", + "name": "Vary", + "description": "Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server." + }, + { + "key": "X-Content-Type-Options", + "value": "nosniff", + "name": "X-Content-Type-Options", + "description": "The only defined value, \"nosniff\", prevents Internet Explorer from MIME-sniffing a response away from the declared content-type" + }, + { + "key": "X-DNS-Prefetch-Control", + "value": "off", + "name": "X-DNS-Prefetch-Control", + "description": "Custom header" + }, + { + "key": "X-Download-Options", + "value": "noopen", + "name": "X-Download-Options", + "description": "Custom header" + }, + { + "key": "X-Frame-Options", + "value": "SAMEORIGIN", + "name": "X-Frame-Options", + "description": "Clickjacking protection: \"deny\" - no rendering within a frame, \"sameorigin\" - no rendering if origin mismatch" + }, + { + "key": "X-XSS-Protection", + "value": "1; mode=block", + "name": "X-XSS-Protection", + "description": "Cross-site scripting (XSS) filter" + } + ], + "cookie": [], + "body": "{\"user\":{\"id\":\"aa305d9d-eb35-4fd2-81fe-023edb828430\",\"email\":\"new@user.com\",\"password\":\"$2b$10$F9sE70763SGtpc4j7V5Qhuo.nPmrWbTpWjGC7ZKwFzpX.S44yuSke\",\"updatedAt\":\"2018-07-16T04:53:21.647Z\",\"createdAt\":\"2018-07-16T04:53:21.647Z\",\"firstName\":null,\"lastName\":null},\"message\":\"User created successfully.\",\"token\":\"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImFhMzA1ZDlkLWViMzUtNGZkMi04MWZlLTAyM2VkYjgyODQzMCIsImVtYWlsIjoibmV3QHVzZXIuY29tIiwicGFzc3dvcmQiOiIkMmIkMTAkRjlzRTcwNzYzU0d0cGM0ajdWNVFodW8ublBtcldiVHBXakdDN1pLd0Z6cFguUzQ0eXVTa2UiLCJ1cGRhdGVkQXQiOiIyMDE4LTA3LTE2VDA0OjUzOjIxLjY0N1oiLCJjcmVhdGVkQXQiOiIyMDE4LTA3LTE2VDA0OjUzOjIxLjY0N1oiLCJmaXJzdE5hbWUiOm51bGwsImxhc3ROYW1lIjpudWxsLCJpYXQiOjE1MzE3MTY4MDEsImV4cCI6MTUzNDMwODgwMX0.RnhNEsgRwAA329dfYTAb2zumjDTps1BWS-wsJqWiYoc\"}" + } + ] + }, + { + "name": "localhost: 1337/auth/login/", + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\"email\":\"user@email.com\",\"password\":\"passwrod\"}" + }, + "url": { + "raw": "localhost:1337/auth/login", + "host": [ + "localhost" + ], + "port": "1337", + "path": [ + "auth", + "login" + ] + } + }, + "response": [ + { + "id": "3f93c69f-b3f8-4b3f-83f1-dadd14e78ab7", + "name": "localhost: 1337/auth/login/", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "disabled": false + } + ], + "body": { + "mode": "raw", + "raw": "{\"email\":\"user@email.com\",\"password\":\"passwrod\"}" + }, + "url": { + "raw": "localhost:1337/auth/login", + "host": [ + "localhost" + ], + "port": "1337", + "path": [ + "auth", + "login" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Access-Control-Allow-Origin", + "value": "*", + "name": "Access-Control-Allow-Origin", + "description": "Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource." + }, + { + "key": "Connection", + "value": "keep-alive", + "name": "Connection", + "description": "Options that are desired for the connection" + }, + { + "key": "Content-Length", + "value": "786", + "name": "Content-Length", + "description": "The length of the response body in octets (8-bit bytes)" + }, + { + "key": "Content-Type", + "value": "application/json; charset=utf-8", + "name": "Content-Type", + "description": "The mime type of this content" + }, + { + "key": "Date", + "value": "Mon, 16 Jul 2018 04:49:16 GMT", + "name": "Date", + "description": "The date and time that the message was sent" + }, + { + "key": "ETag", + "value": "W/\"312-MnA2Kb1b2Y90PNhcT4kiNbko3Y8\"", + "name": "ETag", + "description": "An identifier for a specific version of a resource, often a message digest" + }, + { + "key": "Strict-Transport-Security", + "value": "max-age=15552000; includeSubDomains", + "name": "Strict-Transport-Security", + "description": "A HSTS Policy informing the HTTP client how long to cache the HTTPS only policy and whether this applies to subdomains." + }, + { + "key": "Vary", + "value": "Accept-Encoding", + "name": "Vary", + "description": "Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server." + }, + { + "key": "X-Content-Type-Options", + "value": "nosniff", + "name": "X-Content-Type-Options", + "description": "The only defined value, \"nosniff\", prevents Internet Explorer from MIME-sniffing a response away from the declared content-type" + }, + { + "key": "X-DNS-Prefetch-Control", + "value": "off", + "name": "X-DNS-Prefetch-Control", + "description": "Custom header" + }, + { + "key": "X-Download-Options", + "value": "noopen", + "name": "X-Download-Options", + "description": "Custom header" + }, + { + "key": "X-Frame-Options", + "value": "SAMEORIGIN", + "name": "X-Frame-Options", + "description": "Clickjacking protection: \"deny\" - no rendering within a frame, \"sameorigin\" - no rendering if origin mismatch" + }, + { + "key": "X-XSS-Protection", + "value": "1; mode=block", + "name": "X-XSS-Protection", + "description": "Cross-site scripting (XSS) filter" + } + ], + "cookie": [], + "body": "{\"user\":{\"id\":\"078b0d47-aad2-416a-8b46-5eafbe9c8d91\",\"firstName\":\"John\",\"lastName\":\"User\",\"email\":\"user@email.com\",\"password\":\"$2b$10$dC4GbBR9fmVF9xK6vth/zO.VQqinUoGF8hx6.mdbA/tGuEjKrl/u2\",\"createdAt\":\"2018-07-16T04:44:51.309Z\",\"updatedAt\":\"2018-07-16T04:44:51.309Z\"},\"message\":\"Logged in successfully\",\"token\":\"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjA3OGIwZDQ3LWFhZDItNDE2YS04YjQ2LTVlYWZiZTljOGQ5MSIsImZpcnN0TmFtZSI6IkpvaG4iLCJsYXN0TmFtZSI6IlVzZXIiLCJlbWFpbCI6InVzZXJAZW1haWwuY29tIiwicGFzc3dvcmQiOiIkMmIkMTAkZEM0R2JCUjlmbVZGOXhLNnZ0aC96Ty5WUXFpblVvR0Y4aHg2Lm1kYkEvdEd1RWpLcmwvdTIiLCJjcmVhdGVkQXQiOiIyMDE4LTA3LTE2VDA0OjQ0OjUxLjMwOVoiLCJ1cGRhdGVkQXQiOiIyMDE4LTA3LTE2VDA0OjQ0OjUxLjMwOVoiLCJpYXQiOjE1MzE3MTY1NTYsImV4cCI6MTUzNDMwODU1Nn0.alJ1-EjEr-v9B3ASLE0mwFu9qttGTk0EW5iUe3T_d-M\"}" + } + ] + } + ] + }, + { + "name": "posts", + "description": "", + "item": [ + { + "name": "localhost:1337/api/posts", + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Authorization", + "value": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjU2OTEzMGViLWVkZjItNDg1ZS1iMDNhLWZiZDlmYjhlZDNjZiIsInVzZXJOYW1lIjoiSm9obiBVc2VyIiwidXNlckVtYWlsIjoidXNlckBlbWFpbC5jb20iLCJ1c2VyUGFzcyI6IiQyYiQxMCR3RVNtMXNJb2ZrYmJsNnBrSG9XeW91VWpnaFhqekRRRU1sWTdxNXdVN0NITlU0ZXFLMlE3MiIsImNyZWF0ZWRBdCI6IjIwMTgtMDctMjNUMDI6Mzg6MDkuMzc0WiIsInVwZGF0ZWRBdCI6IjIwMTgtMDctMjNUMDI6Mzg6MDkuMzc0WiIsImlhdCI6MTUzMjMxMzUwMCwiZXhwIjoxNTM0OTA1NTAwfQ.SfEBe7MW46BnN2Gjo2pksb7cpnITs5UVnW5zlDCsajI" + } + ], + "body": { + "mode": "raw", + "raw": "{\"postTitle\": \"A new post\",\"postType\": \"post\",\"postDate\": \"2018-07-02T00:36:26.371Z\",\"postContent\": \"Reprehenderit cum delectus voluptas. Aut ut veritatis. Maiores voluptas voluptas officia tenetur qui eligendi quam perspiciatis. Delectus maiores aut laboriosam quae sunt.\\n \\rVoluptas labore distinctio quisquam ratione esse. Eaque dolores aut cumque soluta consectetur sed nihil. Iusto qui quos a sit inventore vel cumque facere quibusdam. Mollitia nam facere natus.\\n \\rTempora esse eos quasi. Rerum cum omnis. Veniam laboriosam alias. Aliquid alias quisquam ratione pariatur placeat nobis labore. Debitis sed deserunt.\",\"postAuthor\":\"Brutus Maximus\",\"postImage\":\"/url\",\"postMedia\":\"/url\",\"postStatus\": \"published\",\"postExpiry\": \"2019-05-16T16:49:00.638Z\",\"postTerms\":[{\"termType\":\"tag\",\"termName\":\"fws\"},{\"termType\":\"tag\",\"termName\":\"Ho\"}]}" + }, + "url": { + "raw": "localhost:1337/api/posts", + "host": [ + "localhost" + ], + "port": "1337", + "path": [ + "api", + "posts" + ] + } + }, + "response": [ + { + "id": "dcf60ef0-0cf5-436f-ba1c-77a84d1b003a", + "name": "localhost:1337/api/posts", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "disabled": false + }, + { + "key": "Authorization", + "value": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjU2OTEzMGViLWVkZjItNDg1ZS1iMDNhLWZiZDlmYjhlZDNjZiIsInVzZXJOYW1lIjoiSm9obiBVc2VyIiwidXNlckVtYWlsIjoidXNlckBlbWFpbC5jb20iLCJ1c2VyUGFzcyI6IiQyYiQxMCR3RVNtMXNJb2ZrYmJsNnBrSG9XeW91VWpnaFhqekRRRU1sWTdxNXdVN0NITlU0ZXFLMlE3MiIsImNyZWF0ZWRBdCI6IjIwMTgtMDctMjNUMDI6Mzg6MDkuMzc0WiIsInVwZGF0ZWRBdCI6IjIwMTgtMDctMjNUMDI6Mzg6MDkuMzc0WiIsImlhdCI6MTUzMjMxMzUwMCwiZXhwIjoxNTM0OTA1NTAwfQ.SfEBe7MW46BnN2Gjo2pksb7cpnITs5UVnW5zlDCsajI", + "disabled": false + } + ], + "body": { + "mode": "raw", + "raw": "{\"postTitle\": \"A new post\",\"postType\": \"post\",\"postDate\": \"2018-07-02T00:36:26.371Z\",\"postContent\": \"Reprehenderit cum delectus voluptas. Aut ut veritatis. Maiores voluptas voluptas officia tenetur qui eligendi quam perspiciatis. Delectus maiores aut laboriosam quae sunt.\\n \\rVoluptas labore distinctio quisquam ratione esse. Eaque dolores aut cumque soluta consectetur sed nihil. Iusto qui quos a sit inventore vel cumque facere quibusdam. Mollitia nam facere natus.\\n \\rTempora esse eos quasi. Rerum cum omnis. Veniam laboriosam alias. Aliquid alias quisquam ratione pariatur placeat nobis labore. Debitis sed deserunt.\",\"postAuthor\":\"Brutus Maximus\",\"postImage\":\"/url\",\"postMedia\":\"/url\",\"postStatus\": \"published\",\"postExpiry\": \"2019-05-16T16:49:00.638Z\",\"postTerms\":[{\"termType\":\"tag\",\"termName\":\"fws\"},{\"termType\":\"tag\",\"termName\":\"Ho\"}]}" + }, + "url": { + "raw": "localhost:1337/api/posts", + "host": [ + "localhost" + ], + "port": "1337", + "path": [ + "api", + "posts" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Access-Control-Allow-Origin", + "value": "*", + "name": "Access-Control-Allow-Origin", + "description": "Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource." + }, + { + "key": "Connection", + "value": "keep-alive", + "name": "Connection", + "description": "Options that are desired for the connection" + }, + { + "key": "Content-Encoding", + "value": "gzip", + "name": "Content-Encoding", + "description": "The type of encoding used on the data." + }, + { + "key": "Content-Type", + "value": "application/json; charset=utf-8", + "name": "Content-Type", + "description": "The mime type of this content" + }, + { + "key": "Date", + "value": "Mon, 23 Jul 2018 04:16:54 GMT", + "name": "Date", + "description": "The date and time that the message was sent" + }, + { + "key": "ETag", + "value": "W/\"406-W9u+n1QRvBEUwEE/t+0Y9/uEgh4\"", + "name": "ETag", + "description": "An identifier for a specific version of a resource, often a message digest" + }, + { + "key": "Strict-Transport-Security", + "value": "max-age=15552000; includeSubDomains", + "name": "Strict-Transport-Security", + "description": "A HSTS Policy informing the HTTP client how long to cache the HTTPS only policy and whether this applies to subdomains." + }, + { + "key": "Transfer-Encoding", + "value": "chunked", + "name": "Transfer-Encoding", + "description": "The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity." + }, + { + "key": "Vary", + "value": "Accept-Encoding", + "name": "Vary", + "description": "Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server." + }, + { + "key": "X-Content-Type-Options", + "value": "nosniff", + "name": "X-Content-Type-Options", + "description": "The only defined value, \"nosniff\", prevents Internet Explorer from MIME-sniffing a response away from the declared content-type" + }, + { + "key": "X-DNS-Prefetch-Control", + "value": "off", + "name": "X-DNS-Prefetch-Control", + "description": "Custom header" + }, + { + "key": "X-Download-Options", + "value": "noopen", + "name": "X-Download-Options", + "description": "Custom header" + }, + { + "key": "X-Frame-Options", + "value": "SAMEORIGIN", + "name": "X-Frame-Options", + "description": "Clickjacking protection: \"deny\" - no rendering within a frame, \"sameorigin\" - no rendering if origin mismatch" + }, + { + "key": "X-XSS-Protection", + "value": "1; mode=block", + "name": "X-XSS-Protection", + "description": "Cross-site scripting (XSS) filter" + } + ], + "cookie": [], + "body": "{\"post\":{\"id\":1,\"postTitle\":\"A new post\",\"postSlug\":\"a-new-post-1532319414478\",\"postType\":\"post\",\"postDate\":\"2018-07-02T00:36:26.371Z\",\"postContent\":\"Reprehenderit cum delectus voluptas. Aut ut veritatis. Maiores voluptas voluptas officia tenetur qui eligendi quam perspiciatis. Delectus maiores aut laboriosam quae sunt.\\n \\rVoluptas labore distinctio quisquam ratione esse. Eaque dolores aut cumque soluta consectetur sed nihil. Iusto qui quos a sit inventore vel cumque facere quibusdam. Mollitia nam facere natus.\\n \\rTempora esse eos quasi. Rerum cum omnis. Veniam laboriosam alias. Aliquid alias quisquam ratione pariatur placeat nobis labore. Debitis sed deserunt.\",\"postAuthor\":\"Brutus Maximus\",\"postImage\":\"/url\",\"postMedia\":\"/url\",\"postStatus\":\"published\",\"postExpiry\":\"2019-05-16T16:49:00.638Z\",\"postFrequency\":\"\",\"updatedAt\":\"2018-07-23T04:16:54.480Z\",\"createdAt\":\"2018-07-23T04:16:54.480Z\",\"postTerms\":[{\"termType\":\"tag\",\"termName\":\"fws\",\"termSlug\":\"tag-fws\"},{\"termType\":\"tag\",\"termName\":\"Ho\",\"termSlug\":\"tag-ho\"}]}}" + } + ] + }, + { + "name": "localhost:1337/api/posts", + "request": { + "method": "GET", + "header": [], + "body": {}, + "url": { + "raw": "localhost:1337/api/posts", + "host": [ + "localhost" + ], + "port": "1337", + "path": [ + "api", + "posts" + ] + } + }, + "response": [ + { + "id": "fd1ded84-6de0-405a-9fd9-55bea7e44370", + "name": "localhost:1337/api/posts", + "originalRequest": { + "method": "GET", + "header": [], + "body": {}, + "url": { + "raw": "localhost:1337/api/posts", + "host": [ + "localhost" + ], + "port": "1337", + "path": [ + "api", + "posts" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Access-Control-Allow-Origin", + "value": "*", + "name": "Access-Control-Allow-Origin", + "description": "Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource." + }, + { + "key": "Connection", + "value": "keep-alive", + "name": "Connection", + "description": "Options that are desired for the connection" + }, + { + "key": "Content-Encoding", + "value": "gzip", + "name": "Content-Encoding", + "description": "The type of encoding used on the data." + }, + { + "key": "Content-Type", + "value": "application/json; charset=utf-8", + "name": "Content-Type", + "description": "The mime type of this content" + }, + { + "key": "Date", + "value": "Mon, 23 Jul 2018 03:01:48 GMT", + "name": "Date", + "description": "The date and time that the message was sent" + }, + { + "key": "ETag", + "value": "W/\"3292-xdLPtorrPp8BrBKyuFhEtkwTRGk\"", + "name": "ETag", + "description": "An identifier for a specific version of a resource, often a message digest" + }, + { + "key": "Strict-Transport-Security", + "value": "max-age=15552000; includeSubDomains", + "name": "Strict-Transport-Security", + "description": "A HSTS Policy informing the HTTP client how long to cache the HTTPS only policy and whether this applies to subdomains." + }, + { + "key": "Transfer-Encoding", + "value": "chunked", + "name": "Transfer-Encoding", + "description": "The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity." + }, + { + "key": "Vary", + "value": "Accept-Encoding", + "name": "Vary", + "description": "Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server." + }, + { + "key": "X-Content-Type-Options", + "value": "nosniff", + "name": "X-Content-Type-Options", + "description": "The only defined value, \"nosniff\", prevents Internet Explorer from MIME-sniffing a response away from the declared content-type" + }, + { + "key": "X-DNS-Prefetch-Control", + "value": "off", + "name": "X-DNS-Prefetch-Control", + "description": "Custom header" + }, + { + "key": "X-Download-Options", + "value": "noopen", + "name": "X-Download-Options", + "description": "Custom header" + }, + { + "key": "X-Frame-Options", + "value": "SAMEORIGIN", + "name": "X-Frame-Options", + "description": "Clickjacking protection: \"deny\" - no rendering within a frame, \"sameorigin\" - no rendering if origin mismatch" + }, + { + "key": "X-XSS-Protection", + "value": "1; mode=block", + "name": "X-XSS-Protection", + "description": "Cross-site scripting (XSS) filter" + } + ], + "cookie": [], + "body": "{\"posts\":[{\"id\":3,\"postTitle\":\"A new post\",\"postSlug\":\"a-new-post-1532314507359\",\"postType\":\"post\",\"postDate\":\"2018-07-02T00:36:26.371Z\",\"postContent\":\"Reprehenderit cum delectus voluptas. Aut ut veritatis. Maiores voluptas voluptas officia tenetur qui eligendi quam perspiciatis. Delectus maiores aut laboriosam quae sunt.\\n \\rVoluptas labore distinctio quisquam ratione esse. Eaque dolores aut cumque soluta consectetur sed nihil. Iusto qui quos a sit inventore vel cumque facere quibusdam. Mollitia nam facere natus.\\n \\rTempora esse eos quasi. Rerum cum omnis. Veniam laboriosam alias. Aliquid alias quisquam ratione pariatur placeat nobis labore. Debitis sed deserunt.\",\"postAuthor\":\"Brutus Maximus\",\"postImage\":\"/url\",\"postMedia\":\"/url\",\"postStatus\":\"published\",\"postExpiry\":\"2019-05-16T16:49:00.638Z\",\"postFrequency\":\"\",\"createdAt\":\"2018-07-23T02:55:07.361Z\",\"updatedAt\":\"2018-07-23T02:55:07.361Z\",\"postTerms\":[{\"id\":1,\"termType\":\"tag\",\"termName\":\"fws\",\"termSlug\":\"tag-fws\"},{\"id\":2,\"termType\":\"tag\",\"termName\":\"Ho\",\"termSlug\":\"tag-ho\"}]},{\"id\":4,\"postTitle\":\"A new post\",\"postSlug\":\"a-new-post-1532314625998\",\"postType\":\"post\",\"postDate\":\"2018-07-02T00:36:26.371Z\",\"postContent\":\"Reprehenderit cum delectus voluptas. Aut ut veritatis. Maiores voluptas voluptas officia tenetur qui eligendi quam perspiciatis. Delectus maiores aut laboriosam quae sunt.\\n \\rVoluptas labore distinctio quisquam ratione esse. Eaque dolores aut cumque soluta consectetur sed nihil. Iusto qui quos a sit inventore vel cumque facere quibusdam. Mollitia nam facere natus.\\n \\rTempora esse eos quasi. Rerum cum omnis. Veniam laboriosam alias. Aliquid alias quisquam ratione pariatur placeat nobis labore. Debitis sed deserunt.\",\"postAuthor\":\"Brutus Maximus\",\"postImage\":\"/url\",\"postMedia\":\"/url\",\"postStatus\":\"published\",\"postExpiry\":\"2019-05-16T16:49:00.638Z\",\"postFrequency\":\"\",\"createdAt\":\"2018-07-23T02:57:06.000Z\",\"updatedAt\":\"2018-07-23T02:57:06.000Z\",\"postTerms\":[{\"id\":1,\"termType\":\"tag\",\"termName\":\"fws\",\"termSlug\":\"tag-fws\"},{\"id\":2,\"termType\":\"tag\",\"termName\":\"Ho\",\"termSlug\":\"tag-ho\"}]},{\"id\":5,\"postTitle\":\"A new post\",\"postSlug\":\"a-new-post-1532314698450\",\"postType\":\"post\",\"postDate\":\"2018-07-02T00:36:26.371Z\",\"postContent\":\"Reprehenderit cum delectus voluptas. Aut ut veritatis. Maiores voluptas voluptas officia tenetur qui eligendi quam perspiciatis. Delectus maiores aut laboriosam quae sunt.\\n \\rVoluptas labore distinctio quisquam ratione esse. Eaque dolores aut cumque soluta consectetur sed nihil. Iusto qui quos a sit inventore vel cumque facere quibusdam. Mollitia nam facere natus.\\n \\rTempora esse eos quasi. Rerum cum omnis. Veniam laboriosam alias. Aliquid alias quisquam ratione pariatur placeat nobis labore. Debitis sed deserunt.\",\"postAuthor\":\"Brutus Maximus\",\"postImage\":\"/url\",\"postMedia\":\"/url\",\"postStatus\":\"published\",\"postExpiry\":\"2019-05-16T16:49:00.638Z\",\"postFrequency\":\"\",\"createdAt\":\"2018-07-23T02:58:18.452Z\",\"updatedAt\":\"2018-07-23T02:58:18.452Z\",\"postTerms\":[{\"id\":1,\"termType\":\"tag\",\"termName\":\"fws\",\"termSlug\":\"tag-fws\"},{\"id\":2,\"termType\":\"tag\",\"termName\":\"Ho\",\"termSlug\":\"tag-ho\"}]},{\"id\":6,\"postTitle\":\"A new post\",\"postSlug\":\"a-new-post-1532314808493\",\"postType\":\"post\",\"postDate\":\"2018-07-02T00:36:26.371Z\",\"postContent\":\"Reprehenderit cum delectus voluptas. Aut ut veritatis. Maiores voluptas voluptas officia tenetur qui eligendi quam perspiciatis. Delectus maiores aut laboriosam quae sunt.\\n \\rVoluptas labore distinctio quisquam ratione esse. Eaque dolores aut cumque soluta consectetur sed nihil. Iusto qui quos a sit inventore vel cumque facere quibusdam. Mollitia nam facere natus.\\n \\rTempora esse eos quasi. Rerum cum omnis. Veniam laboriosam alias. Aliquid alias quisquam ratione pariatur placeat nobis labore. Debitis sed deserunt.\",\"postAuthor\":\"Brutus Maximus\",\"postImage\":\"/url\",\"postMedia\":\"/url\",\"postStatus\":\"published\",\"postExpiry\":\"2019-05-16T16:49:00.638Z\",\"postFrequency\":\"\",\"createdAt\":\"2018-07-23T03:00:08.495Z\",\"updatedAt\":\"2018-07-23T03:00:08.495Z\",\"postTerms\":[{\"id\":1,\"termType\":\"tag\",\"termName\":\"fws\",\"termSlug\":\"tag-fws\"},{\"id\":2,\"termType\":\"tag\",\"termName\":\"Ho\",\"termSlug\":\"tag-ho\"}]},{\"id\":7,\"postTitle\":\"A new post\",\"postSlug\":\"a-new-post-1532314846653\",\"postType\":\"post\",\"postDate\":\"2018-07-02T00:36:26.371Z\",\"postContent\":\"Reprehenderit cum delectus voluptas. Aut ut veritatis. Maiores voluptas voluptas officia tenetur qui eligendi quam perspiciatis. Delectus maiores aut laboriosam quae sunt.\\n \\rVoluptas labore distinctio quisquam ratione esse. Eaque dolores aut cumque soluta consectetur sed nihil. Iusto qui quos a sit inventore vel cumque facere quibusdam. Mollitia nam facere natus.\\n \\rTempora esse eos quasi. Rerum cum omnis. Veniam laboriosam alias. Aliquid alias quisquam ratione pariatur placeat nobis labore. Debitis sed deserunt.\",\"postAuthor\":\"Brutus Maximus\",\"postImage\":\"/url\",\"postMedia\":\"/url\",\"postStatus\":\"published\",\"postExpiry\":\"2019-05-16T16:49:00.638Z\",\"postFrequency\":\"\",\"createdAt\":\"2018-07-23T03:00:46.655Z\",\"updatedAt\":\"2018-07-23T03:00:46.655Z\",\"postTerms\":[{\"id\":1,\"termType\":\"tag\",\"termName\":\"fws\",\"termSlug\":\"tag-fws\"},{\"id\":2,\"termType\":\"tag\",\"termName\":\"Ho\",\"termSlug\":\"tag-ho\"}]},{\"id\":8,\"postTitle\":\"A new post\",\"postSlug\":\"a-new-post-1532314885420\",\"postType\":\"post\",\"postDate\":\"2018-07-02T00:36:26.371Z\",\"postContent\":\"Reprehenderit cum delectus voluptas. Aut ut veritatis. Maiores voluptas voluptas officia tenetur qui eligendi quam perspiciatis. Delectus maiores aut laboriosam quae sunt.\\n \\rVoluptas labore distinctio quisquam ratione esse. Eaque dolores aut cumque soluta consectetur sed nihil. Iusto qui quos a sit inventore vel cumque facere quibusdam. Mollitia nam facere natus.\\n \\rTempora esse eos quasi. Rerum cum omnis. Veniam laboriosam alias. Aliquid alias quisquam ratione pariatur placeat nobis labore. Debitis sed deserunt.\",\"postAuthor\":\"Brutus Maximus\",\"postImage\":\"/url\",\"postMedia\":\"/url\",\"postStatus\":\"published\",\"postExpiry\":\"2019-05-16T16:49:00.638Z\",\"postFrequency\":\"\",\"createdAt\":\"2018-07-23T03:01:25.421Z\",\"updatedAt\":\"2018-07-23T03:01:25.421Z\",\"postTerms\":[{\"id\":1,\"termType\":\"tag\",\"termName\":\"fws\",\"termSlug\":\"tag-fws\"},{\"id\":2,\"termType\":\"tag\",\"termName\":\"Ho\",\"termSlug\":\"tag-ho\"}]},{\"id\":9,\"postTitle\":\"A new post\",\"postSlug\":\"a-new-post-1532314902103\",\"postType\":\"post\",\"postDate\":\"2018-07-02T00:36:26.371Z\",\"postContent\":\"Reprehenderit cum delectus voluptas. Aut ut veritatis. Maiores voluptas voluptas officia tenetur qui eligendi quam perspiciatis. Delectus maiores aut laboriosam quae sunt.\\n \\rVoluptas labore distinctio quisquam ratione esse. Eaque dolores aut cumque soluta consectetur sed nihil. Iusto qui quos a sit inventore vel cumque facere quibusdam. Mollitia nam facere natus.\\n \\rTempora esse eos quasi. Rerum cum omnis. Veniam laboriosam alias. Aliquid alias quisquam ratione pariatur placeat nobis labore. Debitis sed deserunt.\",\"postAuthor\":\"Brutus Maximus\",\"postImage\":\"/url\",\"postMedia\":\"/url\",\"postStatus\":\"published\",\"postExpiry\":\"2019-05-16T16:49:00.638Z\",\"postFrequency\":\"\",\"createdAt\":\"2018-07-23T03:01:42.105Z\",\"updatedAt\":\"2018-07-23T03:01:42.105Z\",\"postTerms\":[{\"id\":1,\"termType\":\"tag\",\"termName\":\"fws\",\"termSlug\":\"tag-fws\"},{\"id\":2,\"termType\":\"tag\",\"termName\":\"Ho\",\"termSlug\":\"tag-ho\"}]},{\"id\":78599,\"postTitle\":\"Velit libero voluptatem repellendus praesentium.\",\"postSlug\":\"velit-libero-voluptatem-repellendus-praesentium-1532314385532\",\"postType\":\"post\",\"postDate\":\"2018-07-23T02:53:05.532Z\",\"postContent\":\"Est quidem dolores repudiandae at magni suscipit corrupti quia dolore.3Dolore aperiam id iure quam asperiores.3Animi odit exercitationem est ducimus voluptatem officiis est nesciunt saepe.\",\"postAuthor\":\"Kamron Daniel\",\"postImage\":\"http://lorempixel.com/640/480\",\"postMedia\":\"http://lorempixel.com/640/480\",\"postStatus\":\"draft\",\"postExpiry\":\"2018-07-29T18:36:13.864Z\",\"postFrequency\":\"day\",\"createdAt\":\"2018-07-23T02:53:05.532Z\",\"updatedAt\":\"2018-07-23T02:53:05.532Z\",\"postTerms\":[]},{\"id\":90316,\"postTitle\":\"Debitis quos odio mollitia quo.\",\"postSlug\":\"debitis-quos-odio-mollitia-quo-1532314385532\",\"postType\":\"page\",\"postDate\":\"2018-07-23T02:53:05.532Z\",\"postContent\":\"Aut cupiditate consectetur quod rerum distinctio.3Corrupti rerum et laudantium ad itaque sint.3Est qui et pariatur deleniti laudantium.\",\"postAuthor\":\"Kailyn Muller Jr.\",\"postImage\":\"http://lorempixel.com/640/480\",\"postMedia\":\"http://lorempixel.com/640/480\",\"postStatus\":\"published\",\"postExpiry\":\"2018-11-01T05:16:57.974Z\",\"postFrequency\":\"fortnight\",\"createdAt\":\"2018-07-23T02:53:05.532Z\",\"updatedAt\":\"2018-07-23T02:53:05.532Z\",\"postTerms\":[]},{\"id\":40194,\"postTitle\":\"Et sunt provident voluptas et.\",\"postSlug\":\"et-sunt-provident-voluptas-et-1532314385532\",\"postType\":\"post\",\"postDate\":\"2018-07-23T02:53:05.532Z\",\"postContent\":\"Molestias magnam consequatur quis voluptas debitis et.3Reprehenderit enim culpa qui beatae sed impedit nihil.3Iste numquam et repudiandae velit odit commodi labore quidem.\",\"postAuthor\":\"Jeremie Gottlieb\",\"postImage\":\"http://lorempixel.com/640/480\",\"postMedia\":\"http://lorempixel.com/640/480\",\"postStatus\":\"draft\",\"postExpiry\":\"2018-08-26T21:45:38.271Z\",\"postFrequency\":\"fortnight\",\"createdAt\":\"2018-07-23T02:53:05.532Z\",\"updatedAt\":\"2018-07-23T02:53:05.532Z\",\"postTerms\":[]},{\"id\":94383,\"postTitle\":\"Blanditiis ea natus quam repudiandae.\",\"postSlug\":\"blanditiis-ea-natus-quam-repudiandae-1532314385531\",\"postType\":\"page\",\"postDate\":\"2018-07-23T02:53:05.531Z\",\"postContent\":\"Nulla ut dolor.3Occaecati facilis aut.3Exercitationem qui illo ducimus veritatis omnis accusantium.\",\"postAuthor\":\"Audra Fisher IV\",\"postImage\":\"http://lorempixel.com/640/480\",\"postMedia\":\"http://lorempixel.com/640/480\",\"postStatus\":\"draft\",\"postExpiry\":\"2018-12-30T20:10:47.859Z\",\"postFrequency\":null,\"createdAt\":\"2018-07-23T02:53:05.532Z\",\"updatedAt\":\"2018-07-23T02:53:05.532Z\",\"postTerms\":[]},{\"id\":2,\"postTitle\":\"A new post\",\"postSlug\":\"a-new-post-1532314450730\",\"postType\":\"post\",\"postDate\":\"2018-07-02T00:36:26.371Z\",\"postContent\":\"Reprehenderit cum delectus voluptas. Aut ut veritatis. Maiores voluptas voluptas officia tenetur qui eligendi quam perspiciatis. Delectus maiores aut laboriosam quae sunt.\\n \\rVoluptas labore distinctio quisquam ratione esse. Eaque dolores aut cumque soluta consectetur sed nihil. Iusto qui quos a sit inventore vel cumque facere quibusdam. Mollitia nam facere natus.\\n \\rTempora esse eos quasi. Rerum cum omnis. Veniam laboriosam alias. Aliquid alias quisquam ratione pariatur placeat nobis labore. Debitis sed deserunt.\",\"postAuthor\":\"Brutus Maximus\",\"postImage\":\"/url\",\"postMedia\":\"/url\",\"postStatus\":\"published\",\"postExpiry\":\"2019-05-16T16:49:00.638Z\",\"postFrequency\":\"\",\"createdAt\":\"2018-07-23T02:54:10.730Z\",\"updatedAt\":\"2018-07-23T02:54:10.730Z\",\"postTerms\":[]},{\"id\":28749,\"postTitle\":\"Nulla suscipit qui animi labore.\",\"postSlug\":\"nulla-suscipit-qui-animi-labore-1532314385532\",\"postType\":\"page\",\"postDate\":\"2018-07-23T02:53:05.532Z\",\"postContent\":\"Recusandae illum soluta et nihil est eos quia quis.3Rerum rem aut inventore deleniti accusamus veritatis architecto id voluptas.3Sed molestias error iusto vero.\",\"postAuthor\":\"Etha Cormier\",\"postImage\":\"http://lorempixel.com/640/480\",\"postMedia\":\"http://lorempixel.com/640/480\",\"postStatus\":\"published\",\"postExpiry\":\"2019-01-09T13:14:09.794Z\",\"postFrequency\":null,\"createdAt\":\"2018-07-23T02:53:05.532Z\",\"updatedAt\":\"2018-07-23T02:53:05.532Z\",\"postTerms\":[]},{\"id\":1,\"postTitle\":\"A new post\",\"postSlug\":\"a-new-post-1532314391936\",\"postType\":\"post\",\"postDate\":\"2018-07-02T00:36:26.371Z\",\"postContent\":\"Reprehenderit cum delectus voluptas. Aut ut veritatis. Maiores voluptas voluptas officia tenetur qui eligendi quam perspiciatis. Delectus maiores aut laboriosam quae sunt.\\n \\rVoluptas labore distinctio quisquam ratione esse. Eaque dolores aut cumque soluta consectetur sed nihil. Iusto qui quos a sit inventore vel cumque facere quibusdam. Mollitia nam facere natus.\\n \\rTempora esse eos quasi. Rerum cum omnis. Veniam laboriosam alias. Aliquid alias quisquam ratione pariatur placeat nobis labore. Debitis sed deserunt.\",\"postAuthor\":\"Brutus Maximus\",\"postImage\":\"/url\",\"postMedia\":\"/url\",\"postStatus\":\"published\",\"postExpiry\":\"2019-05-16T16:49:00.638Z\",\"postFrequency\":\"\",\"createdAt\":\"2018-07-23T02:53:11.938Z\",\"updatedAt\":\"2018-07-23T02:53:11.938Z\",\"postTerms\":[]},{\"id\":48459,\"postTitle\":\"Aperiam ratione iste consequatur id.\",\"postSlug\":\"aperiam-ratione-iste-consequatur-id-1532314385532\",\"postType\":\"post\",\"postDate\":\"2018-07-23T02:53:05.532Z\",\"postContent\":\"Rerum aliquid ipsam laborum vel.3Facilis eaque temporibus.3Quis nesciunt rerum aspernatur commodi et nemo modi et tempora.\",\"postAuthor\":\"Barton O'Hara\",\"postImage\":\"http://lorempixel.com/640/480\",\"postMedia\":\"http://lorempixel.com/640/480\",\"postStatus\":\"draft\",\"postExpiry\":\"2018-11-17T05:30:11.263Z\",\"postFrequency\":\"fortnight\",\"createdAt\":\"2018-07-23T02:53:05.532Z\",\"updatedAt\":\"2018-07-23T02:53:05.532Z\",\"postTerms\":[]}]}" + } + ] + }, + { + "name": "localhost:1337/api/posts/get-single", + "request": { + "method": "GET", + "header": [], + "body": {}, + "url": { + "raw": "localhost:1337/api/posts/a-new-post-1532319459574", + "host": [ + "localhost" + ], + "port": "1337", + "path": [ + "api", + "posts", + "a-new-post-1532319459574" + ] + } + }, + "response": [ + { + "id": "2be941a0-97be-424f-a259-f3fcc44a0490", + "name": "localhost:1337/api/posts/get-single", + "originalRequest": { + "method": "GET", + "header": [], + "body": {}, + "url": { + "raw": "localhost:1337/api/posts/a-new-post-1532319459574", + "host": [ + "localhost" + ], + "port": "1337", + "path": [ + "api", + "posts", + "a-new-post-1532319459574" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Access-Control-Allow-Origin", + "value": "*", + "name": "Access-Control-Allow-Origin", + "description": "Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource." + }, + { + "key": "Connection", + "value": "keep-alive", + "name": "Connection", + "description": "Options that are desired for the connection" + }, + { + "key": "Content-Encoding", + "value": "gzip", + "name": "Content-Encoding", + "description": "The type of encoding used on the data." + }, + { + "key": "Content-Type", + "value": "application/json; charset=utf-8", + "name": "Content-Type", + "description": "The mime type of this content" + }, + { + "key": "Date", + "value": "Mon, 23 Jul 2018 04:17:50 GMT", + "name": "Date", + "description": "The date and time that the message was sent" + }, + { + "key": "ETag", + "value": "W/\"414-QVDHZKEdrf2mpxWGi/C9cpyngEM\"", + "name": "ETag", + "description": "An identifier for a specific version of a resource, often a message digest" + }, + { + "key": "Strict-Transport-Security", + "value": "max-age=15552000; includeSubDomains", + "name": "Strict-Transport-Security", + "description": "A HSTS Policy informing the HTTP client how long to cache the HTTPS only policy and whether this applies to subdomains." + }, + { + "key": "Transfer-Encoding", + "value": "chunked", + "name": "Transfer-Encoding", + "description": "The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity." + }, + { + "key": "Vary", + "value": "Accept-Encoding", + "name": "Vary", + "description": "Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server." + }, + { + "key": "X-Content-Type-Options", + "value": "nosniff", + "name": "X-Content-Type-Options", + "description": "The only defined value, \"nosniff\", prevents Internet Explorer from MIME-sniffing a response away from the declared content-type" + }, + { + "key": "X-DNS-Prefetch-Control", + "value": "off", + "name": "X-DNS-Prefetch-Control", + "description": "Custom header" + }, + { + "key": "X-Download-Options", + "value": "noopen", + "name": "X-Download-Options", + "description": "Custom header" + }, + { + "key": "X-Frame-Options", + "value": "SAMEORIGIN", + "name": "X-Frame-Options", + "description": "Clickjacking protection: \"deny\" - no rendering within a frame, \"sameorigin\" - no rendering if origin mismatch" + }, + { + "key": "X-XSS-Protection", + "value": "1; mode=block", + "name": "X-XSS-Protection", + "description": "Cross-site scripting (XSS) filter" + } + ], + "cookie": [], + "body": "{\"post\":{\"id\":2,\"postTitle\":\"A new post\",\"postSlug\":\"a-new-post-1532319459574\",\"postType\":\"post\",\"postDate\":\"2018-07-02T00:36:26.371Z\",\"postContent\":\"Reprehenderit cum delectus voluptas. Aut ut veritatis. Maiores voluptas voluptas officia tenetur qui eligendi quam perspiciatis. Delectus maiores aut laboriosam quae sunt.\\n \\rVoluptas labore distinctio quisquam ratione esse. Eaque dolores aut cumque soluta consectetur sed nihil. Iusto qui quos a sit inventore vel cumque facere quibusdam. Mollitia nam facere natus.\\n \\rTempora esse eos quasi. Rerum cum omnis. Veniam laboriosam alias. Aliquid alias quisquam ratione pariatur placeat nobis labore. Debitis sed deserunt.\",\"postAuthor\":\"Brutus Maximus\",\"postImage\":\"/url\",\"postMedia\":\"/url\",\"postStatus\":\"published\",\"postExpiry\":\"2019-05-16T16:49:00.638Z\",\"postFrequency\":\"\",\"createdAt\":\"2018-07-23T04:17:39.574Z\",\"updatedAt\":\"2018-07-23T04:17:39.574Z\",\"postTerms\":[{\"id\":1,\"termType\":\"tag\",\"termName\":\"fws\",\"termSlug\":\"tag-fws\"},{\"id\":2,\"termType\":\"tag\",\"termName\":\"Ho\",\"termSlug\":\"tag-ho\"}]}}" + } + ] + }, + { + "name": "localhost:1337/api/posts/update", + "request": { + "method": "PATCH", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Authorization", + "value": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjU2OTEzMGViLWVkZjItNDg1ZS1iMDNhLWZiZDlmYjhlZDNjZiIsInVzZXJOYW1lIjoiSm9obiBVc2VyIiwidXNlckVtYWlsIjoidXNlckBlbWFpbC5jb20iLCJ1c2VyUGFzcyI6IiQyYiQxMCR3RVNtMXNJb2ZrYmJsNnBrSG9XeW91VWpnaFhqekRRRU1sWTdxNXdVN0NITlU0ZXFLMlE3MiIsImNyZWF0ZWRBdCI6IjIwMTgtMDctMjNUMDI6Mzg6MDkuMzc0WiIsInVwZGF0ZWRBdCI6IjIwMTgtMDctMjNUMDI6Mzg6MDkuMzc0WiIsImlhdCI6MTUzMjMxMzUwMCwiZXhwIjoxNTM0OTA1NTAwfQ.SfEBe7MW46BnN2Gjo2pksb7cpnITs5UVnW5zlDCsajI" + } + ], + "body": { + "mode": "raw", + "raw": "{\"postTitle\": \"A goodsss day\"}" + }, + "url": { + "raw": "localhost:1337/api/posts/a-new-post-1532319459574", + "host": [ + "localhost" + ], + "port": "1337", + "path": [ + "api", + "posts", + "a-new-post-1532319459574" + ] + } + }, + "response": [ + { + "id": "58bcf9df-5460-4ed3-bc20-7d18a4581b0d", + "name": "localhost:1337/api/posts/update", + "originalRequest": { + "method": "PATCH", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "disabled": false + }, + { + "key": "Authorization", + "value": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjU2OTEzMGViLWVkZjItNDg1ZS1iMDNhLWZiZDlmYjhlZDNjZiIsInVzZXJOYW1lIjoiSm9obiBVc2VyIiwidXNlckVtYWlsIjoidXNlckBlbWFpbC5jb20iLCJ1c2VyUGFzcyI6IiQyYiQxMCR3RVNtMXNJb2ZrYmJsNnBrSG9XeW91VWpnaFhqekRRRU1sWTdxNXdVN0NITlU0ZXFLMlE3MiIsImNyZWF0ZWRBdCI6IjIwMTgtMDctMjNUMDI6Mzg6MDkuMzc0WiIsInVwZGF0ZWRBdCI6IjIwMTgtMDctMjNUMDI6Mzg6MDkuMzc0WiIsImlhdCI6MTUzMjMxMzUwMCwiZXhwIjoxNTM0OTA1NTAwfQ.SfEBe7MW46BnN2Gjo2pksb7cpnITs5UVnW5zlDCsajI", + "disabled": false + } + ], + "body": { + "mode": "raw", + "raw": "{\"postTitle\": \"A goodsss day\"}" + }, + "url": { + "raw": "localhost:1337/api/posts/a-new-post-1532319459574", + "host": [ + "localhost" + ], + "port": "1337", + "path": [ + "api", + "posts", + "a-new-post-1532319459574" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Access-Control-Allow-Origin", + "value": "*", + "name": "Access-Control-Allow-Origin", + "description": "Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource." + }, + { + "key": "Connection", + "value": "keep-alive", + "name": "Connection", + "description": "Options that are desired for the connection" + }, + { + "key": "Content-Length", + "value": "901", + "name": "Content-Length", + "description": "The length of the response body in octets (8-bit bytes)" + }, + { + "key": "Content-Type", + "value": "application/json; charset=utf-8", + "name": "Content-Type", + "description": "The mime type of this content" + }, + { + "key": "Date", + "value": "Mon, 23 Jul 2018 04:19:05 GMT", + "name": "Date", + "description": "The date and time that the message was sent" + }, + { + "key": "ETag", + "value": "W/\"385-/8/0KZuutPPJMxkE5JHarcUf3gA\"", + "name": "ETag", + "description": "An identifier for a specific version of a resource, often a message digest" + }, + { + "key": "Strict-Transport-Security", + "value": "max-age=15552000; includeSubDomains", + "name": "Strict-Transport-Security", + "description": "A HSTS Policy informing the HTTP client how long to cache the HTTPS only policy and whether this applies to subdomains." + }, + { + "key": "Vary", + "value": "Accept-Encoding", + "name": "Vary", + "description": "Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server." + }, + { + "key": "X-Content-Type-Options", + "value": "nosniff", + "name": "X-Content-Type-Options", + "description": "The only defined value, \"nosniff\", prevents Internet Explorer from MIME-sniffing a response away from the declared content-type" + }, + { + "key": "X-DNS-Prefetch-Control", + "value": "off", + "name": "X-DNS-Prefetch-Control", + "description": "Custom header" + }, + { + "key": "X-Download-Options", + "value": "noopen", + "name": "X-Download-Options", + "description": "Custom header" + }, + { + "key": "X-Frame-Options", + "value": "SAMEORIGIN", + "name": "X-Frame-Options", + "description": "Clickjacking protection: \"deny\" - no rendering within a frame, \"sameorigin\" - no rendering if origin mismatch" + }, + { + "key": "X-XSS-Protection", + "value": "1; mode=block", + "name": "X-XSS-Protection", + "description": "Cross-site scripting (XSS) filter" + } + ], + "cookie": [], + "body": "{\"id\":2,\"postTitle\":\"A goodsss day\",\"postSlug\":\"a-goodsss-day-1532319545369\",\"postType\":\"post\",\"postDate\":\"2018-07-02T00:36:26.371Z\",\"postContent\":\"Reprehenderit cum delectus voluptas. Aut ut veritatis. Maiores voluptas voluptas officia tenetur qui eligendi quam perspiciatis. Delectus maiores aut laboriosam quae sunt.\\n \\rVoluptas labore distinctio quisquam ratione esse. Eaque dolores aut cumque soluta consectetur sed nihil. Iusto qui quos a sit inventore vel cumque facere quibusdam. Mollitia nam facere natus.\\n \\rTempora esse eos quasi. Rerum cum omnis. Veniam laboriosam alias. Aliquid alias quisquam ratione pariatur placeat nobis labore. Debitis sed deserunt.\",\"postAuthor\":\"Brutus Maximus\",\"postImage\":\"/url\",\"postMedia\":\"/url\",\"postStatus\":\"published\",\"postExpiry\":\"2019-05-16T16:49:00.638Z\",\"postFrequency\":\"\",\"createdAt\":\"2018-07-23T04:17:39.574Z\",\"updatedAt\":\"2018-07-23T04:19:05.370Z\"}" + } + ] + }, + { + "name": "localhost:1337/api/posts-delete", + "request": { + "method": "DELETE", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Authorization", + "value": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjU2OTEzMGViLWVkZjItNDg1ZS1iMDNhLWZiZDlmYjhlZDNjZiIsInVzZXJOYW1lIjoiSm9obiBVc2VyIiwidXNlckVtYWlsIjoidXNlckBlbWFpbC5jb20iLCJ1c2VyUGFzcyI6IiQyYiQxMCR3RVNtMXNJb2ZrYmJsNnBrSG9XeW91VWpnaFhqekRRRU1sWTdxNXdVN0NITlU0ZXFLMlE3MiIsImNyZWF0ZWRBdCI6IjIwMTgtMDctMjNUMDI6Mzg6MDkuMzc0WiIsInVwZGF0ZWRBdCI6IjIwMTgtMDctMjNUMDI6Mzg6MDkuMzc0WiIsImlhdCI6MTUzMjMxMzUwMCwiZXhwIjoxNTM0OTA1NTAwfQ.SfEBe7MW46BnN2Gjo2pksb7cpnITs5UVnW5zlDCsajI" + } + ], + "body": { + "mode": "raw", + "raw": "" + }, + "url": { + "raw": "localhost:1337/api/posts/a-new-post-1532319414478", + "host": [ + "localhost" + ], + "port": "1337", + "path": [ + "api", + "posts", + "a-new-post-1532319414478" + ] + } + }, + "response": [ + { + "id": "2209906a-504e-4d59-a197-b59995ab436d", + "name": "localhost:1337/api/posts-delete", + "originalRequest": { + "method": "DELETE", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "disabled": false + }, + { + "key": "Authorization", + "value": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjU2OTEzMGViLWVkZjItNDg1ZS1iMDNhLWZiZDlmYjhlZDNjZiIsInVzZXJOYW1lIjoiSm9obiBVc2VyIiwidXNlckVtYWlsIjoidXNlckBlbWFpbC5jb20iLCJ1c2VyUGFzcyI6IiQyYiQxMCR3RVNtMXNJb2ZrYmJsNnBrSG9XeW91VWpnaFhqekRRRU1sWTdxNXdVN0NITlU0ZXFLMlE3MiIsImNyZWF0ZWRBdCI6IjIwMTgtMDctMjNUMDI6Mzg6MDkuMzc0WiIsInVwZGF0ZWRBdCI6IjIwMTgtMDctMjNUMDI6Mzg6MDkuMzc0WiIsImlhdCI6MTUzMjMxMzUwMCwiZXhwIjoxNTM0OTA1NTAwfQ.SfEBe7MW46BnN2Gjo2pksb7cpnITs5UVnW5zlDCsajI", + "disabled": false + } + ], + "body": { + "mode": "raw", + "raw": "" + }, + "url": { + "raw": "localhost:1337/api/posts/a-new-post-1532319414478", + "host": [ + "localhost" + ], + "port": "1337", + "path": [ + "api", + "posts", + "a-new-post-1532319414478" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Access-Control-Allow-Origin", + "value": "*", + "name": "Access-Control-Allow-Origin", + "description": "Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource." + }, + { + "key": "Connection", + "value": "keep-alive", + "name": "Connection", + "description": "Options that are desired for the connection" + }, + { + "key": "Content-Length", + "value": "40", + "name": "Content-Length", + "description": "The length of the response body in octets (8-bit bytes)" + }, + { + "key": "Content-Type", + "value": "application/json; charset=utf-8", + "name": "Content-Type", + "description": "The mime type of this content" + }, + { + "key": "Date", + "value": "Mon, 23 Jul 2018 04:20:24 GMT", + "name": "Date", + "description": "The date and time that the message was sent" + }, + { + "key": "ETag", + "value": "W/\"28-lhVHv+7L+msMz2SssxfwWOkXoP0\"", + "name": "ETag", + "description": "An identifier for a specific version of a resource, often a message digest" + }, + { + "key": "Strict-Transport-Security", + "value": "max-age=15552000; includeSubDomains", + "name": "Strict-Transport-Security", + "description": "A HSTS Policy informing the HTTP client how long to cache the HTTPS only policy and whether this applies to subdomains." + }, + { + "key": "Vary", + "value": "Accept-Encoding", + "name": "Vary", + "description": "Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server." + }, + { + "key": "X-Content-Type-Options", + "value": "nosniff", + "name": "X-Content-Type-Options", + "description": "The only defined value, \"nosniff\", prevents Internet Explorer from MIME-sniffing a response away from the declared content-type" + }, + { + "key": "X-DNS-Prefetch-Control", + "value": "off", + "name": "X-DNS-Prefetch-Control", + "description": "Custom header" + }, + { + "key": "X-Download-Options", + "value": "noopen", + "name": "X-Download-Options", + "description": "Custom header" + }, + { + "key": "X-Frame-Options", + "value": "SAMEORIGIN", + "name": "X-Frame-Options", + "description": "Clickjacking protection: \"deny\" - no rendering within a frame, \"sameorigin\" - no rendering if origin mismatch" + }, + { + "key": "X-XSS-Protection", + "value": "1; mode=block", + "name": "X-XSS-Protection", + "description": "Cross-site scripting (XSS) filter" + } + ], + "cookie": [], + "body": "{\"success\":\"Post successfully deleted.\"}" + } + ] + } + ] + } + ] +} \ No newline at end of file