simple-db

module
v0.0.0-...-a1fa394 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2023 License: GPL-3.0

README

Simple DB

A Simple go application that demonstrates how to use a postgres db

API Documentation

User JSON Data
  • id: The unique identifier of the task.
  • name: The username.
  • createdAt The date where the user was created
  • updatedAt The date where the user was updated
  • GET /users
Returns all the users
  • GET /users/:id
Returns the associated user with that id
  • POST /users
Adds a user to the db

Params:

name: The username
  • PUT /users/:id
Updates the associated user

Params:

name: The username
  • DELETE /users/:id
Deletes the associated user

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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