{"swagger":"2.0","info":{"description":"The module provides access to the employees to put their resignation and check the status of the requested relieving application.","version":"1.0.0","title":"1Talent Resignation Portal"},"tags":[{"name":"ReportingManager","description":"Access to Reporting Manager's Portal"},{"name":"HumanResource","description":"Access to Human Resource Manager's Portal"}],"schemes":["https","http"],"paths":{"/RM/{Id}/Resignation":{"get":{"tags":["ReportingManager"],"summary":"Get All the resignation requests raised by him/her in past or current.","description":"Logged in person will see all the previous/current Resignation request/s.if there is no previous resignation data then  a message of 'Apply for Resignation' along with 'Apply Now' link will get display. Page will be displayed if request of 'Back' raised from Resigning Employee List page.","parameters":[{"in":"path","name":"Id","required":true,"type":"integer"}],"produces":["application/json"],"responses":{"200":{"description":"Data found"},"404":{"description":"Data not found"}}}},"/RM/{Id}/ResigningEmployeeList":{"get":{"tags":["ReportingManager"],"summary":"Get All the resignation requests raised by Employees under him/her.","description":"Display all the requests of employees who are under reporting manager","produces":["application/json"],"parameters":[{"in":"path","name":"Id","required":true,"type":"integer"}],"responses":{"200":{"description":"Data Found"},"404":{"description":"Data not found"}}}},"/RM/{Id}/Resignation/{employeeId}":{"get":{"tags":["ReportingManager"],"summary":"Get Information of selected Employee.","description":"All the information of selected employee will be shown.","produces":["application/json"],"parameters":[{"in":"path","name":"Id","required":true,"type":"integer","format":"int32"},{"in":"path","name":"employeeId","required":true,"type":"integer","format":"int32"}],"responses":{"200":{"description":"Data Found"},"404":{"description":"Data not found"}}}},"/RM/{Id}/Resignation/{employeeId}/Accept":{"post":{"tags":["ReportingManager"],"summary":"Add Remarks and Fit to be Hired status","description":"Remarks and status of 'Fit to be rehired' will be sent to the system. HR will be notified and status will get changed to 'Approved by RM'","consumes":["application/form-data"],"parameters":[{"name":"Id","in":"path","description":"","required":true,"type":"integer","format":"int32"},{"name":"body","in":"body","schema":{"$ref":"#/definitions/ReportingManager"}},{"name":"employeeId","in":"path","description":"","required":true,"type":"integer","format":"int32"}],"responses":{"200":{"description":"ok"},"404":{"description":"Invalid Data."}}}},"/RM/{Id}/Resignation/{employeeId}/Reject":{"post":{"tags":["ReportingManager"],"summary":"Add Reason/Remark","description":"Reason to reject must be provided and will get saved to system. Employee and HR will be notified","parameters":[{"name":"Id","in":"path","description":"","required":true,"type":"integer","format":"int32"},{"name":"employeeId","in":"path","description":"","required":true,"type":"integer","format":"int32"},{"name":"body","in":"body","schema":{"$ref":"#/definitions/ReportingManager"}}],"responses":{"200":{"description":"ok","schema":{"$ref":"#/definitions/ReportingManager"}},"404":{"description":"Invalid Data."}}}},"/HR/{Id}/Resignation":{"get":{"tags":["HumanResource"],"summary":"Get All the resignation requests raised by him/her in past or current.","description":"HR will be able to see all the previous/current Resignation request/s raised by him/her. If there is no previous/current resignation data found than page will be empty and will show a message of 'Apply for Resignation' along with 'Apply Now' link. Page will be displayed if request of 'Back' raised from Resigning Employee List page.","parameters":[{"name":"Id","in":"path","description":"","required":true,"type":"integer","format":"int32"}],"produces":["application/json"],"responses":{"200":{"description":"Data found"},"404":{"description":"Data not found"}}}},"/HR/{Id}/Resignation/ResigningEmployeesList":{"get":{"tags":["HumanResource"],"summary":"Get All the resignation requests raised by Employees.","description":"HR will see all the requests made by the employees of Oraganization.","produces":["application/json"],"parameters":[{"in":"path","name":"Id","required":true,"type":"integer"}],"responses":{"200":{"description":"Data Found"},"404":{"description":"Data not found"}}}},"/HR/{Id}/Resignation/{employeeId}":{"get":{"tags":["HumanResource"],"summary":"Get Information of selected Employee.","description":"All the information of selected employee will be displayed.","produces":["application/json"],"parameters":[{"in":"path","name":"Id","required":true,"type":"integer","format":"int32"},{"in":"path","name":"employeeId","required":true,"type":"integer","format":"int32"}],"responses":{"200":{"description":"Data Found"},"404":{"description":"Data not found"}}},"put":{"tags":["HumanResource"],"summary":"Edit information of approved Employee.","description":"Allows to edit details of selected employee from the ResingingEmployeesList to change Approved Relieving date and Exit interview date","consumes":["int"],"produces":["application/json"],"parameters":[{"in":"path","name":"Id","required":true,"type":"integer","format":"int32"},{"name":"body","in":"body","schema":{"$ref":"#/definitions/HumanResource"}},{"in":"path","name":"employeeId","required":true,"type":"integer","format":"int32"}],"responses":{"200":{"description":"Data Found"},"404":{"description":"Data not found"}}}},"/HR/{Id}/Resignation/{employeeId}/Accept":{"post":{"tags":["HumanResource"],"summary":"Add Remarks, Fit to be Hired status and Approved relieving Date.","description":"Remarks and status of fit to be rehired will be sent to the system. RM and Employee will be notified and status will get changed to 'Approved by HR' and ","consumes":["application/form-data"],"parameters":[{"name":"Id","in":"path","description":"","required":true,"type":"integer","format":"int32"},{"name":"employeeId","in":"path","description":"","required":true,"type":"integer","format":"int32"},{"name":"body","in":"body","schema":{"$ref":"#/definitions/HumanResource"}}],"responses":{"200":{"description":"ok"},"404":{"description":"Invalid Data."}}}},"/HR/{Id}/Resignation/{employeeId}/Reject":{"post":{"tags":["HumanResource"],"summary":"Add Remarks/Reason.","description":"Remarks sent to the system. RM and Employee will be notified.'","consumes":["application/form-data"],"parameters":[{"name":"Id","in":"path","description":"","required":true,"type":"integer","format":"int32"},{"name":"body","in":"body","schema":{"$ref":"#/definitions/HumanResource"}},{"name":"employeeId","in":"path","description":"","required":true,"type":"integer","format":"int32"}],"responses":{"200":{"description":"ok"},"404":{"description":"Invalid Data."}}}}},"definitions":{"ReportingManager":{"type":"object","properties":{"EmployeeId":{"type":"integer","format":"int32"},"ApprovalStatus":{"type":"string"},"RejectStatus":{"type":"string"},"CurrentDate":{"type":"string"}}},"HumanResource":{"type":"object","properties":{"EmployeeId":{"type":"integer","format":"int32"},"ApprovalStatus":{"type":"string"},"RejectStatus":{"type":"string"},"CurrentDate":{"type":"string"}}}},"host":"virtserver.swaggerhub.com","basePath":"/NileshAvasthi2233/1TalentResignation/1.0.0"}