{"info":{"_postman_id":"24239b24-efd1-4a36-8b2e-d4b387d84960","name":"CronIQ","description":"<html><head></head><body><p>CronIQ is a powerful and reliable Node.js API designed to build a job scheduling system that excels in executing, managing, and monitoring various tasks.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"7984450","collectionId":"24239b24-efd1-4a36-8b2e-d4b387d84960","publishedId":"2s9XxySZBe","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2023-08-06T17:48:32.000Z"},"item":[{"name":"One Time Job","item":[{"name":"Create new","id":"6b337339-31b5-48b6-88e1-4b078d718dc3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \n    \"timeoutMilliSeconds\": -2000\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8080/api/one-time-job/","urlObject":{"protocol":"http","port":"8080","path":["api","one-time-job",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"2913e645-1bb5-47e3-bb29-02945322f2ae","name":"successful-creation","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"code\": \"ls -l\",\n    \"timeoutMilliSeconds\": 30000\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8080/api/one-time-job/"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"140"},{"key":"ETag","value":"W/\"8c-tWJTsByYa3QKjxo7oZDWzUl0zHE\""},{"key":"Date","value":"Sun, 06 Aug 2023 17:27:35 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"startTime\": \"2023-08-06T17:27:35.366Z\",\n    \"status\": \"submitted\",\n    \"isDeleted\": false,\n    \"id\": 3,\n    \"code\": \"ls -l\",\n    \"timeoutMilliSeconds\": 30000,\n    \"userId\": 2\n}"},{"id":"cd755c43-493d-4595-8ee1-1a0763685008","name":"invalid","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \n    \"timeoutMilliSeconds\": 30000\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8080/api/one-time-job/"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"71"},{"key":"ETag","value":"W/\"47-8++bucTitHcp6azeEYyKWJaqOX0\""},{"key":"Date","value":"Sun, 06 Aug 2023 17:28:35 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Invalid request body\",\n    \"details\": [\n        \"code is a required field\"\n    ]\n}"}],"_postman_id":"6b337339-31b5-48b6-88e1-4b078d718dc3"},{"name":"by id","id":"34063570-7bcf-4427-a607-4b0500318f69","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"{\n    \"code\": \"sleep 25\",\n    \"timeoutMilliSeconds\": 30000\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8080/api/one-time-job/8","urlObject":{"protocol":"http","port":"8080","path":["api","one-time-job","8"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"2f92fa26-6fc2-4711-83fb-b7b5fe03fe0a","name":"successful","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\n    \"code\": \"sleep 25\",\n    \"timeoutMilliSeconds\": 30000\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8080/api/one-time-job/3"},"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":"140"},{"key":"ETag","value":"W/\"8c-wbpJYznUkDyjuGYX4gackpDaFF4\""},{"key":"Date","value":"Sun, 06 Aug 2023 17:29:42 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 3,\n    \"code\": \"ls -l\",\n    \"timeoutMilliSeconds\": 30000,\n    \"startTime\": \"2023-08-06T17:27:35.366Z\",\n    \"status\": \"submitted\",\n    \"isDeleted\": false,\n    \"userId\": 2\n}"}],"_postman_id":"34063570-7bcf-4427-a607-4b0500318f69"},{"name":"all jobs","id":"8970214f-54d8-46f4-8cb0-ca4935eb7a7f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"{\n    \"code\": \"sleep 25\",\n    \"timeoutMilliSeconds\": 30000\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8080/api/one-time-job","urlObject":{"protocol":"http","port":"8080","path":["api","one-time-job"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"0f33758a-88c8-46c3-a0d2-4779ae458e0c","name":"successful","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\n    \"code\": \"sleep 25\",\n    \"timeoutMilliSeconds\": 30000\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8080/api/one-time-job"},"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":"279"},{"key":"ETag","value":"W/\"117-nZ0+KcsY/0VWD/l19KmAMKdc34g\""},{"key":"Date","value":"Sun, 06 Aug 2023 17:29:58 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 3,\n        \"code\": \"ls -l\",\n        \"timeoutMilliSeconds\": 30000,\n        \"startTime\": \"2023-08-06T17:27:35.366Z\",\n        \"status\": \"submitted\",\n        \"isDeleted\": false,\n        \"userId\": 2\n    },\n    {\n        \"id\": 4,\n        \"code\": \"1\",\n        \"timeoutMilliSeconds\": 30000,\n        \"startTime\": \"2023-08-06T17:28:17.507Z\",\n        \"status\": \"submitted\",\n        \"isDeleted\": false,\n        \"userId\": 2\n    }\n]"}],"_postman_id":"8970214f-54d8-46f4-8cb0-ca4935eb7a7f"},{"name":"job runs","id":"6a0fdec5-af78-4508-b89c-a991ef56be32","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"{\n    \"code\": \"sleep 25\",\n    \"timeoutMilliSeconds\": 30000\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8080/api/one-time-job/runs/8","urlObject":{"protocol":"http","port":"8080","path":["api","one-time-job","runs","8"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"1c3f0bf7-5532-4dc2-a2e0-332d1d56c86d","name":"Get job runs","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\n    \"code\": \"sleep 25\",\n    \"timeoutMilliSeconds\": 30000\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8080/api/one-time-job/runs/3"},"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":"887"},{"key":"ETag","value":"W/\"377-9duLJy9PxvisKkhGPDbhIb61NzE\""},{"key":"Date","value":"Sun, 06 Aug 2023 17:30:23 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 3,\n        \"jobId\": 3,\n        \"jobType\": \"OneTimeJob\",\n        \"code\": \"ls -l\",\n        \"pid\": 35437,\n        \"status\": \"success\",\n        \"startTime\": \"2023-08-06T17:27:35.511Z\",\n        \"endTime\": \"2023-08-06T17:27:35.584Z\",\n        \"stdOut\": \"total 200\\n-rw-r--r--   1 panda panda  28672 Aug  6 22:57 database.sqlite\\n-rw-rw-r--   1 panda panda   1071 Aug  5 20:35 index.js\\n-rw-rw-r--   1 panda panda   1097 Jul 27 17:00 install-rabbitmq-ubuntu.sh\\ndrwxrwxr-x 271 panda panda  12288 Aug  5 13:59 node_modules\\n-rw-rw-r--   1 panda panda   1035 Aug  5 13:59 package.json\\n-rw-rw-r--   1 panda panda 124929 Aug  5 13:59 package-lock.json\\ndrwxrwxr-x   2 panda panda   4096 Aug  6 22:53 readme-assets\\n-rw-rw-r--   1 panda panda   5177 Aug  6 22:54 README.md\\ndrwxrwxr-x  11 panda panda   4096 Aug  5 20:35 src\\n-rw-rw-r--   1 panda panda   1576 Aug  5 19:53 test-cron.js\\n-rw-rw-r--   1 panda panda    749 Aug  6 18:58 TODO.txt\\n\",\n        \"stdErr\": \"\",\n        \"exitCode\": 0\n    }\n]"}],"_postman_id":"6a0fdec5-af78-4508-b89c-a991ef56be32"},{"name":"task","id":"da6cb4fb-fcea-4612-b385-a4c1f590c24e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"DELETE","header":[],"url":"http://127.0.0.1:8080/api/one-time-job/8","urlObject":{"protocol":"http","port":"8080","path":["api","one-time-job","8"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"41ce4353-bcf1-4887-970e-2ae352d2d423","name":"successful","originalRequest":{"method":"DELETE","header":[],"url":"http://127.0.0.1:8080/api/one-time-job/3"},"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":"38"},{"key":"ETag","value":"W/\"26-jQsuEFTzs9zNSZBLz14vLAIoW8g\""},{"key":"Date","value":"Sun, 06 Aug 2023 17:30:52 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Job deleted successfully\"\n}"}],"_postman_id":"da6cb4fb-fcea-4612-b385-a4c1f590c24e"}],"id":"21358745-2b7f-402c-b10f-7da151c67029","_postman_id":"21358745-2b7f-402c-b10f-7da151c67029","description":""},{"name":"Cron Job","item":[{"name":"Make new","id":"d91d49c1-9193-471c-90b5-233c136a3e49","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"cron\" : \"*/10 * * * * *\",\n    \"code\": \"ls\",\n    \"endTime\":\"2023-08-09T03:00:00.000Z\",\n    \"timeoutMilliSeconds\": 3000\n\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8080/api/cron-job/","urlObject":{"protocol":"http","port":"8080","path":["api","cron-job",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"16018330-2fcd-443f-9585-bd6d4c5c69d4","name":"successful","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"cron\" : \"*/10 * * * * *\",\n    \"code\": \"sleep 30\",\n    \"endTime\":\"2023-08-09T03:00:00.000Z\",\n    \"timeoutMilliSeconds\": 34\n\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8080/api/cron-job/"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"156"},{"key":"ETag","value":"W/\"9c-CxVrBmUsJEmsWXtS0e4H8SmKzMs\""},{"key":"Date","value":"Sun, 06 Aug 2023 17:32:00 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"isDeleted\": false,\n    \"enabled\": true,\n    \"id\": 1,\n    \"code\": \"sleep 30\",\n    \"timeoutMilliSeconds\": 34,\n    \"cron\": \"*/10 * * * * *\",\n    \"endTime\": \"2023-08-09T03:00:00.000Z\",\n    \"userId\": 2\n}"},{"id":"f30b18c3-f0cc-4455-b387-accb26e12f00","name":"invalid request","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"cron\" : \"*/10 * * * * *\",\n    \"code\": \"sleep 30\",\n    \"endTime\":\"2023-sdfasdf08-09asdfasdf0Z\",\n    \"timeoutMilliSeconds\": 34\n\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8080/api/cron-job/"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"155"},{"key":"ETag","value":"W/\"9b-rOiJPWO9EaEhvZDXLy1cEk90MiA\""},{"key":"Date","value":"Sun, 06 Aug 2023 17:32:40 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Invalid request body\",\n    \"details\": [\n        \"endTime must be a `date` type, but the final value was: `Invalid Date` (cast from the value `Invalid Date`).\"\n    ]\n}"}],"_postman_id":"d91d49c1-9193-471c-90b5-233c136a3e49"},{"name":"by id","id":"282e7fbf-d46b-4fa4-8d9c-0dda4f6fca59","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"{\n    \"cron\" : \"*/10 * * * * *\",\n    \"code\": \"sleep 30\",\n    \"endTime\":\"2023-08-09T03:00:00.000Z\",\n    \"timeoutMilliSeconds\": 34\n\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8080/api/cron-job/4","urlObject":{"protocol":"http","port":"8080","path":["api","cron-job","4"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"44be804e-50b6-4dbe-8b8c-326ddb7b5332","name":"successful","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\n    \"cron\" : \"*/10 * * * * *\",\n    \"code\": \"sleep 30\",\n    \"endTime\":\"2023-08-09T03:00:00.000Z\",\n    \"timeoutMilliSeconds\": 34\n\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8080/api/cron-job/1"},"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":"156"},{"key":"ETag","value":"W/\"9c-WPd0yX4b/j5G0pr4IjIDUx+pqjU\""},{"key":"Date","value":"Sun, 06 Aug 2023 17:33:18 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 1,\n    \"code\": \"sleep 30\",\n    \"timeoutMilliSeconds\": 34,\n    \"cron\": \"*/10 * * * * *\",\n    \"endTime\": \"2023-08-09T03:00:00.000Z\",\n    \"isDeleted\": false,\n    \"enabled\": true,\n    \"userId\": 2\n}"}],"_postman_id":"282e7fbf-d46b-4fa4-8d9c-0dda4f6fca59"},{"name":"all jobs","id":"5e86dd7a-f9de-42fa-a275-fff1ecc21e8f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"{\n    \"cron\" : \"*/10 * * * * *\",\n    \"code\": \"sleep 30\",\n    \"endTime\":\"2023-08-09T03:00:00.000Z\",\n    \"timeoutMilliSeconds\": 34\n\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8080/api/cron-job/","urlObject":{"protocol":"http","port":"8080","path":["api","cron-job",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"eb73f0dc-2f09-46cc-8bbf-30ce4aeca960","name":"successful","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\n    \"cron\" : \"*/10 * * * * *\",\n    \"code\": \"sleep 30\",\n    \"endTime\":\"2023-08-09T03:00:00.000Z\",\n    \"timeoutMilliSeconds\": 34\n\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8080/api/cron-job/"},"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":"154"},{"key":"ETag","value":"W/\"9a-vkhCJJajFBbSP4Kx3Vpj3Wwr4mU\""},{"key":"Date","value":"Mon, 07 Aug 2023 16:35:55 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 5,\n        \"code\": \"ls\",\n        \"timeoutMilliSeconds\": 3000,\n        \"cron\": \"*/10 * * * * *\",\n        \"endTime\": \"2023-08-09T03:00:00.000Z\",\n        \"isDeleted\": false,\n        \"enabled\": true,\n        \"userId\": 2\n    }\n]"}],"_postman_id":"5e86dd7a-f9de-42fa-a275-fff1ecc21e8f"},{"name":"job runs","id":"066bacef-863f-4b7c-a4c3-7b0b642664d4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"{\n    \"cron\" : \"*/10 * * * * *\",\n    \"code\": \"sleep 30\",\n    \"endTime\":\"2023-08-09T03:00:00.000Z\",\n    \"timeoutMilliSeconds\": 34\n\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8080/api/cron-job/runs/5","urlObject":{"protocol":"http","port":"8080","path":["api","cron-job","runs","5"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"6cf3a7ae-0052-4cbe-a940-87594938cd6f","name":"successful","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\n    \"cron\" : \"*/10 * * * * *\",\n    \"code\": \"sleep 30\",\n    \"endTime\":\"2023-08-09T03:00:00.000Z\",\n    \"timeoutMilliSeconds\": 34\n\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8080/api/cron-job/runs/2"},"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":"5935"},{"key":"ETag","value":"W/\"172f-HALyxKJoR5CoGTlAsisILwjkDLo\""},{"key":"Date","value":"Sun, 06 Aug 2023 18:40:24 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 77,\n        \"jobId\": 2,\n        \"jobType\": \"CronJob\",\n        \"code\": \"ls\",\n        \"pid\": 9825,\n        \"status\": \"success\",\n        \"startTime\": \"2023-08-06T18:37:29.433Z\",\n        \"endTime\": \"2023-08-06T18:37:29.450Z\",\n        \"stdOut\": \"database.sqlite\\nDockerfile\\nindex.js\\ninstall-rabbitmq-ubuntu.sh\\nlogs\\nnode_modules\\npackage.json\\npackage-lock.json\\nreadme-assets\\nREADME.md\\nsrc\\ntest-cron.js\\nTODO.txt\\n\",\n        \"stdErr\": \"\",\n        \"exitCode\": 0\n    },\n    {\n        \"id\": 78,\n        \"jobId\": 2,\n        \"jobType\": \"CronJob\",\n        \"code\": \"ls\",\n        \"pid\": 9917,\n        \"status\": \"success\",\n        \"startTime\": \"2023-08-06T18:37:39.446Z\",\n        \"endTime\": \"2023-08-06T18:37:39.464Z\",\n        \"stdOut\": \"database.sqlite\\nDockerfile\\nindex.js\\ninstall-rabbitmq-ubuntu.sh\\nlogs\\nnode_modules\\npackage.json\\npackage-lock.json\\nreadme-assets\\nREADME.md\\nsrc\\ntest-cron.js\\nTODO.txt\\n\",\n        \"stdErr\": \"\",\n        \"exitCode\": 0\n    },\n    {\n        \"id\": 79,\n        \"jobId\": 2,\n        \"jobType\": \"CronJob\",\n        \"code\": \"ls\",\n        \"pid\": 10002,\n        \"status\": \"success\",\n        \"startTime\": \"2023-08-06T18:37:50.069Z\",\n        \"endTime\": \"2023-08-06T18:37:50.092Z\",\n        \"stdOut\": \"database.sqlite\\nDockerfile\\nindex.js\\ninstall-rabbitmq-ubuntu.sh\\nlogs\\nnode_modules\\npackage.json\\npackage-lock.json\\nreadme-assets\\nREADME.md\\nsrc\\ntest-cron.js\\nTODO.txt\\n\",\n        \"stdErr\": \"\",\n        \"exitCode\": 0\n    },\n    {\n        \"id\": 80,\n        \"jobId\": 2,\n        \"jobType\": \"CronJob\",\n        \"code\": \"ls\",\n        \"pid\": 10050,\n        \"status\": \"success\",\n        \"startTime\": \"2023-08-06T18:38:00.071Z\",\n        \"endTime\": \"2023-08-06T18:38:00.101Z\",\n        \"stdOut\": \"database.sqlite\\nDockerfile\\nindex.js\\ninstall-rabbitmq-ubuntu.sh\\nlogs\\nnode_modules\\npackage.json\\npackage-lock.json\\nreadme-assets\\nREADME.md\\nsrc\\ntest-cron.js\\nTODO.txt\\n\",\n        \"stdErr\": \"\",\n        \"exitCode\": 0\n    },\n    {\n        \"id\": 81,\n        \"jobId\": 2,\n        \"jobType\": \"CronJob\",\n        \"code\": \"ls\",\n        \"pid\": 10096,\n        \"status\": \"success\",\n        \"startTime\": \"2023-08-06T18:38:10.059Z\",\n        \"endTime\": \"2023-08-06T18:38:10.097Z\",\n        \"stdOut\": \"database.sqlite\\nDockerfile\\nindex.js\\ninstall-rabbitmq-ubuntu.sh\\nlogs\\nnode_modules\\npackage.json\\npackage-lock.json\\nreadme-assets\\nREADME.md\\nsrc\\ntest-cron.js\\nTODO.txt\\n\",\n        \"stdErr\": \"\",\n        \"exitCode\": 0\n    },\n    {\n        \"id\": 82,\n        \"jobId\": 2,\n        \"jobType\": \"CronJob\",\n        \"code\": \"ls\",\n        \"pid\": 10144,\n        \"status\": \"success\",\n        \"startTime\": \"2023-08-06T18:38:20.104Z\",\n        \"endTime\": \"2023-08-06T18:38:20.124Z\",\n        \"stdOut\": \"database.sqlite\\nDockerfile\\nindex.js\\ninstall-rabbitmq-ubuntu.sh\\nlogs\\nnode_modules\\npackage.json\\npackage-lock.json\\nreadme-assets\\nREADME.md\\nsrc\\ntest-cron.js\\nTODO.txt\\n\",\n        \"stdErr\": \"\",\n        \"exitCode\": 0\n    },\n    {\n        \"id\": 83,\n        \"jobId\": 2,\n        \"jobType\": \"CronJob\",\n        \"code\": \"ls\",\n        \"pid\": 10190,\n        \"status\": \"success\",\n        \"startTime\": \"2023-08-06T18:38:30.111Z\",\n        \"endTime\": \"2023-08-06T18:38:30.140Z\",\n        \"stdOut\": \"database.sqlite\\nDockerfile\\nindex.js\\ninstall-rabbitmq-ubuntu.sh\\nlogs\\nnode_modules\\npackage.json\\npackage-lock.json\\nreadme-assets\\nREADME.md\\nsrc\\ntest-cron.js\\nTODO.txt\\n\",\n        \"stdErr\": \"\",\n        \"exitCode\": 0\n    },\n    {\n        \"id\": 84,\n        \"jobId\": 2,\n        \"jobType\": \"CronJob\",\n        \"code\": \"ls\",\n        \"pid\": 10337,\n        \"status\": \"success\",\n        \"startTime\": \"2023-08-06T18:38:50.101Z\",\n        \"endTime\": \"2023-08-06T18:38:50.127Z\",\n        \"stdOut\": \"database.sqlite\\nDockerfile\\nindex.js\\ninstall-rabbitmq-ubuntu.sh\\nlogs\\nnode_modules\\npackage.json\\npackage-lock.json\\nreadme-assets\\nREADME.md\\nsrc\\ntest-cron.js\\nTODO.txt\\n\",\n        \"stdErr\": \"\",\n        \"exitCode\": 0\n    },\n    {\n        \"id\": 85,\n        \"jobId\": 2,\n        \"jobType\": \"CronJob\",\n        \"code\": \"ls\",\n        \"pid\": 10362,\n        \"status\": \"success\",\n        \"startTime\": \"2023-08-06T18:39:00.120Z\",\n        \"endTime\": \"2023-08-06T18:39:00.149Z\",\n        \"stdOut\": \"database.sqlite\\nDockerfile\\nindex.js\\ninstall-rabbitmq-ubuntu.sh\\nlogs\\nnode_modules\\npackage.json\\npackage-lock.json\\nreadme-assets\\nREADME.md\\nsrc\\ntest-cron.js\\nTODO.txt\\n\",\n        \"stdErr\": \"\",\n        \"exitCode\": 0\n    },\n    {\n        \"id\": 86,\n        \"jobId\": 2,\n        \"jobType\": \"CronJob\",\n        \"code\": \"ls\",\n        \"pid\": 10411,\n        \"status\": \"success\",\n        \"startTime\": \"2023-08-06T18:39:10.108Z\",\n        \"endTime\": \"2023-08-06T18:39:10.127Z\",\n        \"stdOut\": \"database.sqlite\\nDockerfile\\nindex.js\\ninstall-rabbitmq-ubuntu.sh\\nlogs\\nnode_modules\\npackage.json\\npackage-lock.json\\nreadme-assets\\nREADME.md\\nsrc\\ntest-cron.js\\nTODO.txt\\n\",\n        \"stdErr\": \"\",\n        \"exitCode\": 0\n    },\n    {\n        \"id\": 87,\n        \"jobId\": 2,\n        \"jobType\": \"CronJob\",\n        \"code\": \"ls\",\n        \"pid\": 10458,\n        \"status\": \"success\",\n        \"startTime\": \"2023-08-06T18:39:20.126Z\",\n        \"endTime\": \"2023-08-06T18:39:20.170Z\",\n        \"stdOut\": \"database.sqlite\\nDockerfile\\nindex.js\\ninstall-rabbitmq-ubuntu.sh\\nlogs\\nnode_modules\\npackage.json\\npackage-lock.json\\nreadme-assets\\nREADME.md\\nsrc\\ntest-cron.js\\nTODO.txt\\n\",\n        \"stdErr\": \"\",\n        \"exitCode\": 0\n    },\n    {\n        \"id\": 88,\n        \"jobId\": 2,\n        \"jobType\": \"CronJob\",\n        \"code\": \"ls\",\n        \"pid\": 10511,\n        \"status\": \"success\",\n        \"startTime\": \"2023-08-06T18:39:30.121Z\",\n        \"endTime\": \"2023-08-06T18:39:30.148Z\",\n        \"stdOut\": \"database.sqlite\\nDockerfile\\nindex.js\\ninstall-rabbitmq-ubuntu.sh\\nlogs\\nnode_modules\\npackage.json\\npackage-lock.json\\nreadme-assets\\nREADME.md\\nsrc\\ntest-cron.js\\nTODO.txt\\n\",\n        \"stdErr\": \"\",\n        \"exitCode\": 0\n    },\n    {\n        \"id\": 89,\n        \"jobId\": 2,\n        \"jobType\": \"CronJob\",\n        \"code\": \"ls\",\n        \"pid\": 10816,\n        \"status\": \"success\",\n        \"startTime\": \"2023-08-06T18:39:50.093Z\",\n        \"endTime\": \"2023-08-06T18:39:50.125Z\",\n        \"stdOut\": \"database.sqlite\\nDockerfile\\nindex.js\\ninstall-rabbitmq-ubuntu.sh\\nlogs\\nnode_modules\\npackage.json\\npackage-lock.json\\nreadme-assets\\nREADME.md\\nsrc\\ntest-cron.js\\nTODO.txt\\n\",\n        \"stdErr\": \"\",\n        \"exitCode\": 0\n    },\n    {\n        \"id\": 90,\n        \"jobId\": 2,\n        \"jobType\": \"CronJob\",\n        \"code\": \"ls\",\n        \"pid\": 10854,\n        \"status\": \"success\",\n        \"startTime\": \"2023-08-06T18:40:00.091Z\",\n        \"endTime\": \"2023-08-06T18:40:00.126Z\",\n        \"stdOut\": \"database.sqlite\\nDockerfile\\nindex.js\\ninstall-rabbitmq-ubuntu.sh\\nlogs\\nnode_modules\\npackage.json\\npackage-lock.json\\nreadme-assets\\nREADME.md\\nsrc\\ntest-cron.js\\nTODO.txt\\n\",\n        \"stdErr\": \"\",\n        \"exitCode\": 0\n    },\n    {\n        \"id\": 91,\n        \"jobId\": 2,\n        \"jobType\": \"CronJob\",\n        \"code\": \"ls\",\n        \"pid\": 10902,\n        \"status\": \"success\",\n        \"startTime\": \"2023-08-06T18:40:10.096Z\",\n        \"endTime\": \"2023-08-06T18:40:10.123Z\",\n        \"stdOut\": \"database.sqlite\\nDockerfile\\nindex.js\\ninstall-rabbitmq-ubuntu.sh\\nlogs\\nnode_modules\\npackage.json\\npackage-lock.json\\nreadme-assets\\nREADME.md\\nsrc\\ntest-cron.js\\nTODO.txt\\n\",\n        \"stdErr\": \"\",\n        \"exitCode\": 0\n    },\n    {\n        \"id\": 92,\n        \"jobId\": 2,\n        \"jobType\": \"CronJob\",\n        \"code\": \"ls\",\n        \"pid\": 10953,\n        \"status\": \"success\",\n        \"startTime\": \"2023-08-06T18:40:20.022Z\",\n        \"endTime\": \"2023-08-06T18:40:20.047Z\",\n        \"stdOut\": \"database.sqlite\\nDockerfile\\nindex.js\\ninstall-rabbitmq-ubuntu.sh\\nlogs\\nnode_modules\\npackage.json\\npackage-lock.json\\nreadme-assets\\nREADME.md\\nsrc\\ntest-cron.js\\nTODO.txt\\n\",\n        \"stdErr\": \"\",\n        \"exitCode\": 0\n    }\n]"}],"_postman_id":"066bacef-863f-4b7c-a4c3-7b0b642664d4"},{"name":"job by id","id":"198563d6-097e-4ff0-8a8a-1979764850b1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"DELETE","header":[],"body":{"mode":"raw","raw":""},"url":"http://127.0.0.1:8080/api/cron-job/4","urlObject":{"protocol":"http","port":"8080","path":["api","cron-job","4"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"74e1270c-da8a-4517-99f3-ffcfa75c69e8","name":"successful","originalRequest":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":""},"url":"http://127.0.0.1:8080/api/cron-job/1"},"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":"38"},{"key":"ETag","value":"W/\"26-jQsuEFTzs9zNSZBLz14vLAIoW8g\""},{"key":"Date","value":"Sun, 06 Aug 2023 17:34:52 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Job deleted successfully\"\n}"}],"_postman_id":"198563d6-097e-4ff0-8a8a-1979764850b1"},{"name":"job by id","id":"c9e08fc6-ddf4-430f-8d4a-58772ac32ea6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"cron\" : \"*/15 * * * * *\",\n    \"code\": \"cat index.js\"\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8080/api/cron-job/4","urlObject":{"protocol":"http","port":"8080","path":["api","cron-job","4"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"4e66d5fd-7e53-41a2-a713-6ff56204ff54","name":"successful","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"cron\" : \"*/15 * * * * *\",\n    \"code\": \"ls -l\"\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8080/api/cron-job/1"},"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":"153"},{"key":"ETag","value":"W/\"99-4LyHwx4IcsKDt87AHq1gofnDO+Y\""},{"key":"Date","value":"Sun, 06 Aug 2023 17:34:09 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 1,\n    \"code\": \"ls -l\",\n    \"timeoutMilliSeconds\": 34,\n    \"cron\": \"*/15 * * * * *\",\n    \"endTime\": \"2023-08-09T03:00:00.000Z\",\n    \"isDeleted\": false,\n    \"enabled\": true,\n    \"userId\": 2\n}"},{"id":"3f47cc99-05a5-4f2f-9ee7-b776e2ac8cf7","name":"invalid","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"cron\" : \"invalid *\",\n    \"code\": \"ls -l\"\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8080/api/cron-job/1"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"66"},{"key":"ETag","value":"W/\"42-ElZv+Q5pQ5y3exSXsCOYR2hLUP8\""},{"key":"Date","value":"Sun, 06 Aug 2023 17:34:34 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Invalid request body\",\n    \"details\": [\n        \"Invalid cron string\"\n    ]\n}"}],"_postman_id":"c9e08fc6-ddf4-430f-8d4a-58772ac32ea6"}],"id":"ef14dec2-8f4e-483a-abb6-afe308cfe98c","_postman_id":"ef14dec2-8f4e-483a-abb6-afe308cfe98c","description":""},{"name":"Auth","item":[{"name":"register","id":"a7ef6516-face-468b-9069-8f354caaa45b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"username\": \"ashutosh\",\n    \"password\": \"hard-to-guess-password\"\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8080/api/auth/register/","urlObject":{"protocol":"http","port":"8080","path":["api","auth","register",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"21b09b05-7e08-429c-9e70-b3591755d209","name":"successful registration","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"username\": \"ashutosh\",\n    \"password\": \"hard-to-guess-password\"\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8080/api/auth/register/"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"30"},{"key":"ETag","value":"W/\"1e-htrzMzefTCjNnpf61201SYS7KuA\""},{"key":"Date","value":"Sun, 06 Aug 2023 13:32:14 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 2,\n    \"username\": \"ashutosh\"\n}"}],"_postman_id":"a7ef6516-face-468b-9069-8f354caaa45b"},{"name":"login","id":"13a2ccc0-f257-4096-8a9a-b9e2b7406970","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"username\": \"ashutosh\",\n    \"password\": \"hard-to-guess-password\"\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8080/api/auth/login/","urlObject":{"protocol":"http","port":"8080","path":["api","auth","login",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"8a152b09-fdf9-4cc8-bdc8-547808af1d85","name":"successful-login","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"username\": \"ashutosh\",\n    \"password\": \"hard-to-guess-password\"\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8080/api/auth/login/"},"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":"178"},{"key":"ETag","value":"W/\"b2-2sCPaZleCVdb9oa9fIplhsLrNtw\""},{"key":"Date","value":"Sun, 06 Aug 2023 13:34:00 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 2,\n    \"username\": \"ashutosh\",\n    \"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MiwiaWF0IjoxNjkxMzI4ODQwLCJleHAiOjE2OTE0MTUyNDB9.qvUhiek_A2XeHcvdeJvPqawV7Yq1ERWXRyaenyaAgGo\"\n}"}],"_postman_id":"13a2ccc0-f257-4096-8a9a-b9e2b7406970"}],"id":"20ee9357-d4b4-4a3a-99f1-05b6e6584d67","_postman_id":"20ee9357-d4b4-4a3a-99f1-05b6e6584d67","description":""}]}