Skip to content

lscortesc/go-api-rest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Simple API Rest with Go, Mux, Gorm & MySql

This api is based on this post

How to use?

  1. Clone repo
  2. Create project database
  3. Create .env file based on .env-example
  4. Configure .env file
  5. Run go run main.go
  6. Listen on localhost:4000

Endpoints

Endpoint Method Params Description
/people GET none Get all People
/people/{id} GET id Get Person with ID
/people POST Firstname, Lastname Create a person
/people/{id} DELETE id Delete a person
/people/list POST none Create 1000 records

Smart commits with Jira

[x] Example of smart commits [x] Example of smart commit with time

About

Simple API Rest created with Go

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages