handler

package
v0.0.0-...-b174aef Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 3, 2024 License: MIT Imports: 3 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL