This repository contains a RESTful API built using the Beego framework.
- CRUD operations
- RESTful API structure
- Postgresql database integration
- Go 1.15 or higher
- Go Beego Web Framework
- Postgresql
-
Clone the repository:
git clone https://github.com/muthukumar89uk/go-restapi-beego.git
Click here to directly download it.
go mod tidy
-
Run the Server
go run .
-
The server will start on
http://localhost:9000
.
POST /v1/api/create/employee
- Create a new employee detailsGET /v1/api/get/employees
- Retrieve all employees detailsGET /v1/api/getById/:id
- Retrieve an employee details by IDPUT /v1/api/updateById/:id
- Update an existing employee detailsDELETE /v1/api/deleteById/:id
- Delete an employee details