zikazama / crud_gin_gorm

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Example API Gin Go With Gorm

Route

  • GET /student
  • GET /student/:studentId
  • POST /student (json data with student_id, student_name, student_age, student_address and student_phone_no attribute)
  • PUT /student/:studentId (json data with student_name, student_age, student_address and student_phone_no attribute)
  • DELETE /student/:studentId

How to run

  1. Copy .example.env to .env
  2. Setup db config in .env
  3. go run main.go

About


Languages

Language:Go 96.5%Language:Shell 3.5%