go-notes-apirest

command module
v0.0.0-...-32827d1 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2018 License: MIT Imports: 8 Imported by: 0

README

go-simple-api-rest

Simple API REST desarrollada en Go con PostgreSQL. Incluye CRUD de Notas y de Usuarios, aplica JWT.

Requiere

github.com/lib/pq github.com/gorilla/mux

Endpoints

login/ -> POST: name, password -> TOKEN

api/notes -> GET -> []Note

api/notes/{id} -> GET -> Note

api/notes -> POST: user_id, title, description

api/notes/{id} -> PUT: title, description

api/notes/{id} -> DELETE

api/users -> GET -> []User

api/users/{id} -> GET -> User

api/users -> POST: name, password, confirm_password

api/users/{id} -> PUT: name, password, confirm_password

api/users/{id} -> DELETE

Migrations

# Unix
./go-notes-apirest -migrate

# Windows
go-notes-apirest -migrate

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
middlewares

Jump to

Keyboard shortcuts

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