golang-api-test

command module
v0.0.0-...-9a979ba Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 22, 2022 License: MIT Imports: 7 Imported by: 0

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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL