Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/muthukumar89uk/go-restapi-beego
This repo contains the CRUD operation implemented by using the go with beego framework.
https://github.com/muthukumar89uk/go-restapi-beego
beego-framework crud-operation go golang-application postgresql-database restapis
Last synced: 19 days ago
JSON representation
This repo contains the CRUD operation implemented by using the go with beego framework.
- Host: GitHub
- URL: https://github.com/muthukumar89uk/go-restapi-beego
- Owner: muthukumar89uk
- Created: 2024-07-30T13:22:45.000Z (5 months ago)
- Default Branch: master
- Last Pushed: 2024-07-31T15:24:59.000Z (5 months ago)
- Last Synced: 2024-08-01T18:13:46.002Z (5 months ago)
- Topics: beego-framework, crud-operation, go, golang-application, postgresql-database, restapis
- Language: Go
- Homepage:
- Size: 13.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Go REST API with Beego
This repository contains a RESTful API built using the Beego framework.
## Features
- CRUD operations
- RESTful API structure
- Postgresql database integration## Requirements
- Go 1.15 or higher
- Go Beego Web Framework
- Postgresql## Getting Started
### Installation
1. Clone the repository:
```
git clone https://github.com/muthukumar89uk/go-restapi-beego.git
```
Click here to directly [download it](https://github.com/muthukumar89uk/go-restapi-beego/zipball/master).## Install dependencies:
go mod tidy
## Run the Application
1. Run the Server
```
go run .
```
2. The server will start on `http://localhost:9000`.## API Endpoints
- `POST /v1/api/create/employee` - Create a new employee details
- `GET /v1/api/get/employees` - Retrieve all employees details
- `GET /v1/api/getById/:id` - Retrieve an employee details by ID
- `PUT /v1/api/updateById/:id` - Update an existing employee details
- `DELETE /v1/api/deleteById/:id` - Delete an employee details## Refer
- [Beego Web Framework](https://github.com/beego/beego)
- [GORM](https://gorm.io/)