{"id":29864953,"url":"https://github.com/eksha/leave-application-manager","last_synced_at":"2025-09-14T06:38:32.348Z","repository":{"id":307241800,"uuid":"95312225","full_name":"eksha/leave-application-manager","owner":"eksha","description":"nodejs app to handle leave application submission and approval","archived":false,"fork":false,"pushed_at":"2017-06-25T19:06:30.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-07-30T08:07:40.496Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/eksha.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,"zenodo":null}},"created_at":"2017-06-24T17:22:39.000Z","updated_at":"2017-06-24T17:24:49.000Z","dependencies_parsed_at":"2025-07-30T08:07:42.732Z","dependency_job_id":"a92c8aae-6268-49bc-9c67-c548b7c5a9bd","html_url":"https://github.com/eksha/leave-application-manager","commit_stats":null,"previous_names":["eksha/leave-application-manager"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/eksha/leave-application-manager","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eksha%2Fleave-application-manager","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eksha%2Fleave-application-manager/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eksha%2Fleave-application-manager/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eksha%2Fleave-application-manager/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eksha","download_url":"https://codeload.github.com/eksha/leave-application-manager/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eksha%2Fleave-application-manager/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267843005,"owners_count":24153135,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-30T02:00:09.044Z","response_time":70,"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":[],"created_at":"2025-07-30T09:08:28.740Z","updated_at":"2025-07-30T09:08:29.299Z","avatar_url":"https://github.com/eksha.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# leave-application-manager\nNodeJS app to handle **leave application submission and approval**.\n\nThe App involves APIs for two roles of users : _Employee_ and _Manager_.\n\n## Start the app\nRun `node start` or `node server.js` \n\n## Employee API\n### 1. Get details of previous applications\n\nhttp://localhost:8092/username  \nThis returns json array of all the leave applications previously submitted. _username_ is the username field from _User_ collection. \n\n### 2. Submit new leave application \n**POST request URL**  \nhttp://localhost:8092/username  \nThe request body must contain leave schema as:\n```\n{\n  startdate: String,\n  enddate:String,\n  leavetype:{type: String, enum :['Earned Leave','Sick Leave','Casual Leave','Maternity Leave']},\n  reason:{type:String, default:\"Not Specified\"},\n}\n```\n\n  \n## Manager API\n### 1. Review all the leave applications  \n**GET request URL**  \nhttp://localhost:8092/username   \nThis  request returns all the leave applications in the system.   \n\n### 2. Approve a leave application\n\n**PUT request URL**  \nhttp://localhost:8092/username/leaveId\n\nThis request will change the _approvalStatus_ of leave application with _\\_id_ as _leaveId_  to true. The default _approvalStatus_ is false. \n\n\n#### Authentication \nThe api endpoints check for the role of the _username_ to allow access.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feksha%2Fleave-application-manager","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feksha%2Fleave-application-manager","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feksha%2Fleave-application-manager/lists"}