gocrud

command module
v0.0.0-...-db393c7 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2021 License: MIT Imports: 7 Imported by: 0

README

Go API

CRUD operations with GORM

  • Create (POST)
  • Read (GET)
  • Update (PUT)
  • Delete (DELETE)

API calls:

  • /
  • /users -> GET (All Users)
  • /user/{name}" -> "DELETE
  • /user/{name}/{lastname}/{city}/{email} -> PUT
  • /user/{name}/{lastname}/{city}/{email} -> POST

Run the app

    go run *.go

Examples

  • Create
    • starting from scratch:

- creating john johnson, from newyork, john@email.com:

- creating annya solov, from moscow, annya@mail.com:

  • Read

    • current data:

  • Update

    • annya moved to barcelona, lets update that info:

- current data:

  • Delete

    • john moved to mars, lets delete him:

  • result

References:

License:

  • MIT

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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