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

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/swag@latest
# 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
Owner
Tony Aizize
Senior Software Engineer in ASpire ,EX Thunes, EX DocDoc.
Tony Aizize
Similar Resources

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

Oct 15, 2021

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 πŸ“

Dec 11, 2022

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

Nov 18, 2021

Echo-mongo-api - Simple Golang REST application with Echo Framework & MongoDB

Echo-mongo-api - Simple Golang REST application with Echo Framework & MongoDB

Feb 14, 2022

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

Dec 16, 2022

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/summerGen@late

Dec 16, 2022

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

Nov 9, 2022

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

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

Aug 22, 2022

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

Nov 21, 2022
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

Apr 28, 2022
Go-gin-ddd-cqrs - Clean api rest with Go, Gin and GORM
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

Oct 21, 2022
Gin-boilerplate - Gin boilerplate preconfigured with basic rest api features

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

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.

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

Dec 26, 2021
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

Jul 19, 2022
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

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.

Dec 29, 2022
Gin-easy-todo - golang 의 RESTful API ν”„λ ˆμž„μ›Œν¬ gin 을 ν™œμš©ν•΄ μ•„μ£Ό κ°„λ‹¨ν•œ Todo μ• ν”Œλ¦¬μΌ€μ΄μ…˜μ„ λ§Œλ“€μ–΄λ³΄μž.
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.

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

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

Mar 25, 2022