Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteEmployee ¶
func DeleteEmployee(c *fiber.Ctx) error
DeleteEmployee deletes an employee by ID. swagger:route DELETE /employee/{id} employees deleteEmployee
Responses:
default: genericError 200: employeeResponse
func GetEmployee ¶
func GetEmployee(c *fiber.Ctx) error
GetEmployee gets an employee by ID. swagger:route GET /employee/{id} employees getEmployee
Responses:
default: genericError 200: employeeResponse
func GetEmployees ¶
func GetEmployees(c *fiber.Ctx) error
GetEmployees gets all employees. swagger:route GET /employee employees getEmployees
Responses:
default: genericError 200: employeesResponse
func NewEmployee ¶
func NewEmployee(c *fiber.Ctx) error
NewEmployee creates a new employee. swagger:route POST /employee employees newEmployee
Responses:
default: genericError 200: employeeResponse
func UpdateEmployee ¶
func UpdateEmployee(c *fiber.Ctx) error
UpdateEmployee updates an employee by ID. swagger:route PUT /employee/{id} employees updateEmployee
Responses:
default: genericError 200: employeeResponse
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.