{"info":{"_postman_id":"d53d940c-1580-43a2-a891-cf7a32c60fb2","name":"File System","description":"<html><head></head><body><h3 id=\"base_url--httpsnodejs-filesystem-qn62onrendercom\">BASE_URL : <a href=\"https://nodejs-filesystem-qn62.onrender.com\">https://nodejs-filesystem-qn62.onrender.com</a></h3>\n<h2 id=\"introduction\">Introduction</h2>\n<p>This collection returns the current date and time to the specific folder where the file is created. And this collection is a simple file management.</p>\n<h4 id=\"key-features-\">Key Features :</h4>\n<p>It includes two main Api Endpoints.</p>\n<ol>\n<li><p>{{BASE_URL}}/create - Create a new file with current date and time.</p>\n</li>\n<li><p>{{BASE_URL}}/list - Recover all files in a specific folder.</p>\n</li>\n</ol>\n<h4 id=\"used-packages-\">Used Packages :</h4>\n<ul>\n<li><p>express</p>\n</li>\n<li><p>fs</p>\n</li>\n<li><p>nodemon</p>\n</li>\n<li><p>path</p>\n</li>\n<li><p>moment</p>\n</li>\n<li><p>fileURLToPath</p>\n</li>\n</ul>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"35371272","collectionId":"d53d940c-1580-43a2-a891-cf7a32c60fb2","publishedId":"2sA3rwLYyv","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-08-02T13:32:01.000Z"},"item":[{"name":"Node_Current date & time creation","event":[{"listen":"test","script":{"id":"ad71602d-026c-4e67-970e-fad30320dde1","exec":[""],"type":"text/javascript","packages":{}}}],"id":"f18f9679-c861-4eaa-b2aa-d095bbad87be","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"https://nodejs-filesystem-qn62.onrender.com/create","description":"<p>This is a Post request and it is used to \"create a text file\" inside the default folder. In this folder configured with backend by getting the current date and time in a .txt extension.</p>\n<p>Example response:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-antlr4\">{\n    \"status\": 200,\n    \"content-type\": \"text/html\",\n    \"message\": \"File created successfully\"\n}\n\n</code></pre>\n","urlObject":{"protocol":"https","path":["create"],"host":["nodejs-filesystem-qn62","onrender","com"],"query":[],"variable":[]}},"response":[{"id":"7fb0984e-ada4-4fc7-bccb-f4a89119ea2d","name":"Node_Current date creation","originalRequest":{"method":"POST","header":[],"url":"https://nodejs-filesystem-qn62.onrender.com/create"},"status":"OK","code":200,"_postman_previewlanguage":"html","header":[{"key":"Date","value":"Fri, 02 Aug 2024 12:14:32 GMT"},{"key":"Content-Type","value":"text/html; charset=utf-8"},{"key":"Content-Length","value":"29"},{"key":"Connection","value":"keep-alive"},{"key":"CF-Ray","value":"8acdfc359f9f7e75-MAA"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Content-Encoding","value":"br"},{"key":"ETag","value":"W/\"19-OkhtSk+CiBvd1bc0OpfqawXsfNc\""},{"key":"Vary","value":"Accept-Encoding"},{"key":"rndr-id","value":"6b6b09c9-0d73-4174"},{"key":"x-powered-by","value":"Express"},{"key":"x-render-origin-server","value":"Render"},{"key":"Server","value":"cloudflare"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"File created successfully"}],"_postman_id":"f18f9679-c861-4eaa-b2aa-d095bbad87be"},{"name":"Node_list of all date & time files","id":"005d8639-0415-484b-8850-3121c70a541a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://nodejs-filesystem-qn62.onrender.com/list","description":"<p>This is a GET request and is is used to \"get all the files\" from the default folder created in backend.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">[\"\"]\n\n</code></pre>\n","urlObject":{"protocol":"https","path":["list"],"host":["nodejs-filesystem-qn62","onrender","com"],"query":[],"variable":[]}},"response":[{"id":"8f4591c4-4bce-45e9-aa13-8bd00100384e","name":"Node_list of all date files","originalRequest":{"method":"GET","header":[],"url":"https://nodejs-filesystem-qn62.onrender.com/list"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 02 Aug 2024 12:16:10 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"70"},{"key":"Connection","value":"keep-alive"},{"key":"CF-Ray","value":"8acdff5d79fd7e75-MAA"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Content-Encoding","value":"br"},{"key":"ETag","value":"W/\"9c-akfFVvYSt+f2OdCiZ1l8+TV3hLc\""},{"key":"Vary","value":"Accept-Encoding"},{"key":"rndr-id","value":"9bbe5b9c-ce13-4471"},{"key":"x-powered-by","value":"Express"},{"key":"x-render-origin-server","value":"Render"},{"key":"Server","value":"cloudflare"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"[\n    \"Aug-01 2024__01-02-06 pm.txt\",\n    \"Aug-01 2024__01-05-55 pm.txt\",\n    \"Aug-01 2024__12-58-43 pm.txt\",\n    \"Aug-01-2024__12-58-32 pm.txt\",\n    \"Aug-02 2024__12-14-32 pm.txt\"\n]"}],"_postman_id":"005d8639-0415-484b-8850-3121c70a541a"}]}