Go (Golang) API REST with Gin FrameworkGo (Golang) API REST with Gin Framework

Overview

go-rest-api-aml-service

Go (Golang) API REST with Gin Framework

1. Project Description

  1. Build REST APIs to support AML service with the support of external third party.
  2. Setup github actions to run testcases
  3. Support microservices
  4. JWT authentication
  5. Secret Manager

2. Run with Docker

  1. Build
make build
docker build . -t api-rest
  1. Run
docker-compose up 
or 
docker run -p 3000:3000 api-rest
  1. Test
go test -v ./test/...

3. Generate Docs

# Get swag go 1.16 or newer
go install github.com/swaggo/swag/cmd/[email protected]
# Get swag go bellow 1.16
go get -u github.com/swaggo/swag/cmd/swag
# Generate docs
swag init --dir cmd/api --parseDependency --output docs
or Make sure to import the generated docs/docs.go so that your specific configuration gets init'ed. If your General API annotations do not live in main.go, you can let swag know with -g flag.
swag init -g http/api.go 

3. Docs and References

  1. Swaggo official docs https://github.com/swaggo/swag
  2. Run and go to http://localhost:3000/docs/index.html
You might also like...
A restful api's with Gin Framework with a structured project that defaults to PostgreSQL database
A restful api's with Gin Framework with a structured project that defaults to PostgreSQL database

Welcome to Golang Gin boilerplate v2 The fastest way to deploy a restful api's with Gin Framework with a structured project that defaults to PostgreSQ

A fully functional Ecommerce API in GO GIN Framework and mongoDB  with JWT Authentication
A fully functional Ecommerce API in GO GIN Framework and mongoDB with JWT Authentication

Fully functional ECOMMERCE API USING GIN FRAMEWORK AND MONGODB -----Initial Release v2.30 โš ๏ธ Not tested the efficiency project structure Ecommerce ๐Ÿ“

Restful API example with using go and gin framework

simple device api Simple Device API is really simple and concise to show how easy to implement a Restful Service with using Golang. It uses gin framew

Example golang using gin framework everything you need, i create this tutorial special for beginner.

Golang Gin Framework Fundamental Example golang using gin framework everything you need, i create this tutorial special for beginner. Feature Containe

Simple control panel for Golang based on Gin framework and MongoDB
Simple control panel for Golang based on Gin framework and MongoDB

Summer panel Simple control panel for Golang based on Gin framework and MongoDB How To Install go install github.com/night-codes/summer/[email protected]

Golang Gin Framework Fundamental

Golang Gin Framework Fundamental Example golang using gin framework everything you need, i create this tutorial special for beginner. Feature Containe

Using golang framework (Gin) to create a web-application

News feeder Using golang framework (Gin) to create a web-application. This simpl

Backend developer with gin framework (Golang)

Backend developer with golang Install Packages : $ go get -u github.com/gin-gonic/gin $ Building from source Install a Go compiler. Install Goland ide

Clean Architecture using Golang with Gin framework

Clean Architecture using Golang with Gin framework Template Structure Gin is a web framework written in Go (Golang). It features a martini-like API wi

Owner
Tony Aizize
Senior Software Engineer in ASpire ,EX Thunes, EX DocDoc.
Tony Aizize
Gin-boilerplate - This repository contains boilerplate code of a REST service using Gin (golang) framework.

Boilerplate REST service using Gin web framework (golang) Introduction This repository contains a boilerplate REST API service using Gin web framework

null 6 Apr 28, 2022
Go-gin-ddd-cqrs - Clean api rest with Go, Gin and GORM

GOLANG API REST Clean api rest with Go, Gin and GORM. Clean Architecture with DD

Juan Cantรณn Rodrรญguez 16 Sep 11, 2022
Gin-boilerplate - Gin boilerplate preconfigured with basic rest api features

Gin Boilerplate Build apis with gin faster with this template Features Validatio

Mohan barman 4 Jun 24, 2022
Dating-server - Go (Golang) API REST Template/Boilerplate with Gin Framework

go-rest-template Go (Golang) API REST Template/Boilerplate with Gin Framework 1.

null 1 Apr 3, 2022
REST API for a shoe store using Go and Gin Web Framework

REST API for a shoe store using Go and Gin Web Framework This API uses a local PostgreSQL database that's set through the /gopostgres/driverConfig.go

Nalbert Wattam 0 Dec 26, 2021
GoCondor is a golang web framework with an MVC like architecture, it's based on Gin framework

GoCondor is a golang web framework with an MVC like architecture, it's based on Gin framework, it features a simple organized directory structure for your next project with a pleasant development experience, made for developing modern APIs and microservices.

Go Condor 37 Sep 12, 2022
Go-gin-mongo-api - A backend RESTful API built using golang, gin and mongoDB

go-gin-mongo-API This is a RESTful backend API which is developed using the gola

Humbe Jeffrey 6 Jul 19, 2022
Gin-easy-todo - golang ์˜ RESTful API ํ”„๋ ˆ์ž„์›Œํฌ gin ์„ ํ™œ์šฉํ•ด ์•„์ฃผ ๊ฐ„๋‹จํ•œ Todo ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜์„ ๋งŒ๋“ค์–ด๋ณด์ž.

๋ชฉ์ฐจ 1. ์š”์•ฝ 2. ๋ชฉํ‘œ 3. API ๋ชฉ๋ก 4. ํ”„๋กœ์ ํŠธ ๊ตฌ์กฐ 5. ํŒจํ‚ค์ง€ ๋ณ„ ๊ธฐ๋Šฅ๊ณผ ๊ด€๊ณ„ 6. ์‚ฌ์ „ ์ž‘์—… 6.1. DB, Table ์ƒ์„ฑ 6.2. ๋ชจ๋“ˆ ์ƒ์„ฑ 6.3. ํŒจํ‚ค์ง€ ๋‹ค์šด๋กœ๋“œ 7. Gin ์ž‘์„ฑ 7.1. ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค ์„ค์ • 7.2. ํ…Œ์ด๋ธ”, ์Šคํ‚ค๋งˆ ์ •์˜ 7.3.

jongbae_park 0 Jan 2, 2022
Go-service-gin - Simple Web api application developed in Golang and Gin

Simple Web api application developed in Golang and Gin Initial Tutorial URL http

Nurul Huda Robin 0 Jan 4, 2022
GinGoExample - Implement rest api using gin and go and mongodb

GinGoExample Implement rest api using gin and go and mongodb Optimizations using Singlton pattern to avoid repetetive commiunication with mongodb . Fe

Mehdi 0 Mar 25, 2022