An open API service indexing awesome lists of open source software.

https://github.com/muthukumar89uk/go-restapi-iris

It is simple CRUD operations created with go and iris web framework.
https://github.com/muthukumar89uk/go-restapi-iris

golang gorm-orm iris-golang postgresql-database rest-api

Last synced: about 2 months ago
JSON representation

It is simple CRUD operations created with go and iris web framework.

Awesome Lists containing this project

README

        

# Go REST API with Iris

This repository contains a RESTful API built using the Iris 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-iris.git
```
Click here to directly [download it](https://github.com/muthukumar89uk/go-restapi-iris/zipball/master).

## Install dependencies:

go mod tidy

## Run the Application
1. Run the Server

```
go run .
```
2. The server will start on `http://localhost:2001`.

## API Endpoints

- `GET /v1/api/get/employees` - Retrieve all employees details
- `POST /v1/api/create/employee` - Create a new employee 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
- [IRIS Web Framework](https://github.com/kataras/iris)
- [GORM](https://gorm.io/)