{"info":{"_postman_id":"1bd3032c-9306-40d0-9af9-11a298f6b4e3","name":"Node-Task-1","description":"<html><head></head><body><p>Created the Api with end point which creates the following :</p>\n<p>1)Genderal welcome message.</p>\n<p>2)Create the file with current time stamp and also the file name is curent data-time.</p>\n<p>3)Show the files inside the folder.</p>\n<p>4)Delete the files inside the folder.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"24927116","collectionId":"1bd3032c-9306-40d0-9af9-11a298f6b4e3","publishedId":"2s8ZDSckEn","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2023-01-14T14:40:55.000Z"},"item":[{"name":"Welcome","id":"2d6a1053-5e9d-49bb-98a8-a593f848ace3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:5000","description":"<p>This is Api will give some welcome message.</p>\n","urlObject":{"protocol":"http","port":"5000","host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"123fdca7-105e-4701-a6cf-666166905a33","name":"Welcome message","originalRequest":{"method":"GET","header":[],"url":"http://localhost:5000"},"status":"OK","code":200,"_postman_previewlanguage":"html","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"text/html; charset=utf-8"},{"key":"Content-Length","value":"39"},{"key":"ETag","value":"W/\"27-K0KhHRyFP22AgrySY8IvY8lJ2EM\""},{"key":"Date","value":"Sat, 14 Jan 2023 13:43:13 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"Welcome 🙋‍♂️, 🌏 🎊✨🤩"}],"_postman_id":"2d6a1053-5e9d-49bb-98a8-a593f848ace3"},{"name":"Create File","id":"61d2edff-db0b-4232-b14f-19fe2bfce807","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:5000/create","description":"<p>This Api allows you to create the file file inside the folder.</p>\n<p>on Everytime you access this api it create current data-time as file name and inside the file name is create the time stamp.</p>\n","urlObject":{"protocol":"http","port":"5000","path":["create"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"1ed35768-454d-4546-b3a9-98e873a94ebe","name":"File is created","originalRequest":{"method":"GET","header":[],"url":"http://localhost:5000/create"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"42"},{"key":"ETag","value":"W/\"2a-brFzrxXdeSOdu2Vz8YCHlUYmfjc\""},{"key":"Date","value":"Sat, 14 Jan 2023 13:43:30 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"File is created successfully\"\n}"}],"_postman_id":"61d2edff-db0b-4232-b14f-19fe2bfce807"},{"name":"Show File","id":"270ad1f2-e9c8-4861-be51-423d0f138acb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:5000/show","description":"<p>This is api is used to show the all files inside the folder.</p>\n<p>This data's are shown in object format.</p>\n<p>If there is no data inside the folder it throw not found status and also it show the message related to folder is empty.</p>\n","urlObject":{"protocol":"http","port":"5000","path":["show"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"c2f7ee72-e0b4-49ae-9710-51dc2d841c7d","name":"Data inside folder","originalRequest":{"method":"GET","header":[],"url":"http://localhost:5000/show"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"193"},{"key":"ETag","value":"W/\"c1-Wz9++faal+7womRTi9G6HNpItys\""},{"key":"Date","value":"Sat, 14 Jan 2023 14:37:56 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"Date_14_ 1_2023_Time_19_13_30.txt\": \"Sat Jan 14 2023 19:13:30 GMT+0530 (India Standard Time)\"\n    },\n    {\n        \"Date_14_ 1_2023_Time_19_20_41.txt\": \"Sat Jan 14 2023 19:20:41 GMT+0530 (India Standard Time)\"\n    }\n]"},{"id":"2d4a8d75-2ae3-4946-8bb3-c3899374a82b","name":"No data found","originalRequest":{"method":"GET","header":[],"url":"http://localhost:5000/show"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"27"},{"key":"ETag","value":"W/\"1b-zYyd0jSAPR93ADjE/JT/hrHv1nY\""},{"key":"Date","value":"Sat, 14 Jan 2023 13:43:22 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"no data found\"\n}"}],"_postman_id":"270ad1f2-e9c8-4861-be51-423d0f138acb"},{"name":"Delete Files","id":"05bbf307-fb47-4ba5-805d-5eff08d05878","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:5000/delete","description":"<p>This api allows you to delete the file from the folder.</p>\n","urlObject":{"protocol":"http","port":"5000","path":["delete"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"308705ff-fa2b-4f1b-a515-dd4b97e47c42","name":"if delete","originalRequest":{"method":"GET","header":[],"url":"http://localhost:5000/delete"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"49"},{"key":"ETag","value":"W/\"31-UFwjlip7zF0S1bXwXpi3gYbsQmw\""},{"key":"Date","value":"Sat, 14 Jan 2023 13:42:55 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Deleted 2 files from the Direcotry.\"\n}"},{"id":"8128c95d-12af-4a7c-885c-ef7cb85a32d3","name":"if folder is empty","originalRequest":{"method":"GET","header":[],"url":"http://localhost:5000/delete"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"67"},{"key":"ETag","value":"W/\"43-ZqIRG0xmQk9EpRQImRyiiZGAoZs\""},{"key":"Date","value":"Sat, 14 Jan 2023 14:39:03 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Folder is Empty. Create first and then try to delete.\"\n}"}],"_postman_id":"05bbf307-fb47-4ba5-805d-5eff08d05878"}]}