Categorygithub.com/guilhermeSenna/golang-api-test
modulepackage
0.0.0-20221122010841-9a979ba42944
Repository: https://github.com/guilhermesenna/golang-api-test.git
Documentation: pkg.go.dev

# README

golang-api-test

Crud performed using the Go language with Gin (WEB framework) and Gorm (ORM) in PostgreSQL database.


How to run?

docker-compose up --build

Which ports will be used?

  • 5432 for PostgreSQL database.
  • For the server it can be defined dynamically in the .env with the API_PORT variable

Used routes:

  • (GET) /customers - Get the first 50 customers
  • (GET) /customers/:id - Get a customer's information by ID
  • (POST) /customers - Create a new customer
    • firstName (string)
    • lastName (string)
    • email (string)
    • password (string)
  • (PUT) /customers/:id - Edit a customer

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author