Categorygithub.com/DevBeast3800/GolangAPI
modulepackage
0.0.0-20221221161611-a147a0293ee4
Repository: https://github.com/devbeast3800/golangapi.git
Documentation: pkg.go.dev

# README

GolangAPI

First you need to Install Go

then run this command to run a postgres container which maps port 5432 to localhost:5432

go run .

this will make available the following endpoints:

GET=> http://localhost:8080/home

returns a JSON object with: a greeting message

GET => http://localhost:8080/healthcheck

returns a JSON object with: a healthcheck status message and timestamp

POST => http://localhost:8080/users

returns a JSON object with: a confirmation message and status code

GET => http://localhost:8080/users

returns a JSON array with: user objects

GET => http://localhost:8080/users/:id

returns a JSON object with: user properties

PUT => http://localhost:8080/users/:id

returns a JSON object with: a confirmation message and status code

DELETE => http://localhost:8080/users/:id

returns a JSON object with: a confirmation message and status code

# 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
No description provided by the author
No description provided by the author