{"id":25456627,"url":"https://github.com/swapnilwakchaure/octet_design_studio_backend_assignment","last_synced_at":"2026-04-12T03:35:12.835Z","repository":{"id":185484040,"uuid":"673609928","full_name":"swapnilwakchaure/octet_design_studio_backend_assignment","owner":"swapnilwakchaure","description":"Design the data structure and build a RESTful API which provides the job related data and able to do crud operation on it.","archived":false,"fork":false,"pushed_at":"2023-08-03T11:55:17.000Z","size":49,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-28T01:02:32.306Z","etag":null,"topics":["cors","expressjs","mongodb","mongoose","nodejs"],"latest_commit_sha":null,"homepage":"https://octet-design-studio-backend-assignment.vercel.app","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/swapnilwakchaure.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-08-02T03:01:44.000Z","updated_at":"2023-08-02T17:21:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"35ec0f8f-2723-4ef2-833f-8fb709695c98","html_url":"https://github.com/swapnilwakchaure/octet_design_studio_backend_assignment","commit_stats":null,"previous_names":["swapnilwakchaure/octet_design_studio_backend_assignment"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/swapnilwakchaure/octet_design_studio_backend_assignment","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swapnilwakchaure%2Foctet_design_studio_backend_assignment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swapnilwakchaure%2Foctet_design_studio_backend_assignment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swapnilwakchaure%2Foctet_design_studio_backend_assignment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swapnilwakchaure%2Foctet_design_studio_backend_assignment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/swapnilwakchaure","download_url":"https://codeload.github.com/swapnilwakchaure/octet_design_studio_backend_assignment/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swapnilwakchaure%2Foctet_design_studio_backend_assignment/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31703501,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-11T21:17:31.016Z","status":"online","status_checked_at":"2026-04-12T02:00:06.763Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cors","expressjs","mongodb","mongoose","nodejs"],"created_at":"2025-02-18T01:50:36.628Z","updated_at":"2026-04-12T03:35:12.802Z","avatar_url":"https://github.com/swapnilwakchaure.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Octet_Design_Studio_Backend_Assignment\n\nDesign the data structure and build a RESTful API which provides the job related data and able to do crud operation on it.\n\n\n## Deployed url of backend API below\n`https://octet-design-studio-backend-api-url.vercel.app`\n\n\n\n\n### Authentication Routes (register / login)\n\n1. For REGISTRATION URL\n\n`/auth/register`    route accepts \n                                   `name`     (String)\n                                   `email`    (String)\n                                   `password` (String)\n\nand hash the password into a long string and provided a success message to the user\n\n\n\n2. For LOGIN URL\n\n`/auth/login`       route accepts\n                                   `email`    (String)\n                                   `password` (String)\n\nand provided the token to the login user\n\n\n\n\n## PRODUCT Routes\n\n\n## Below sample data when you fetch get request to the API\n\n```js\n    {\n        \"name\": \"Specialist\",         ( String )\n        \"location\": \"Colmbo, India\",  ( String )\n        \"posted\": \"23rd May\",         ( String )\n        \"status\": \"Published\",        ( String )\n        \"applied\": 40,                ( Number )\n        \"jobViews\": 100,              ( Number )\n        \"daysLeft\": 7,                ( Number )\n        \"premium\": false,             ( Boolean )\n        \"dateFormat\": \"2023-05-23\"    ( String )\n    }\n```\n\n\n\n\n### to fetch the requests to API\n\n1. GET Route\n\n`/jobs`\n\nby fetch will get the data\n\n\n\n2. POST Route\n\n`/jobs/addjobs`\n\nwe need to provide all the detailed related data and it takes care about the required fields\n\n\n```js\nlet example,\n\nconst payload = { name, location, posted, status, applied, jobViews, daysLeft, premium, dateFormat };\n\nfetch(`api-url`, payload)\n    .then((res) =\u003e {\n        console.log('res: ',res);\n    })\n    .catch((error) =\u003e {\n        console.log('error: ',error);\n    })\n\n```\n\n\n\n3. PATCH Route\n\n`/jobs/update/:id`\n\nfor update the data we need to provide an id as a params and data as a body.\n\n\n\n4. DELETE Route\n\n`/jobs/delete/:id`\n\nfor delete a unique element from the database, so need to provide an id as query params and it will automatically handled by backend code.\n\n\n\n\n## Thank you for reading.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswapnilwakchaure%2Foctet_design_studio_backend_assignment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fswapnilwakchaure%2Foctet_design_studio_backend_assignment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswapnilwakchaure%2Foctet_design_studio_backend_assignment/lists"}