/** * @api {get} /leave/type 02.Get Leave Types * @apiName leaveTypes * @apiGroup Leave * @apiVersion 0.1.0 * @apiUse AdminDescription * * * @apiSuccess {String} type Leave type. * @apiSuccess {Number} id Leave type id. * * @apiSuccessExample Success-Response: * HTTP/1.1 200 OK * * { * "type": "Annual", * "id": "11" * } * * @apiError No-Records Found. * * @apiErrorExample Error-Response: * HTTP/1.1 404 Record Not Found * { * "error": ["No Leave Types Available"] * } */