v1

package
v0.0.0-...-70cf5ae Latest Latest
Warning

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

Go to latest
Published: May 13, 2016 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func GetUserHandler

func GetUserHandler(w http.ResponseWriter, req *http.Request)

GET /users/:id:w

func GetUsersHandler

func GetUsersHandler(w http.ResponseWriter, req *http.Request)

func HomeHandler

func HomeHandler(w http.ResponseWriter, req *http.Request)

just a place holder for the root URL

func PatchUserHandler

func PatchUserHandler(w http.ResponseWriter, req *http.Request)

*

curl -H "Content-Type: application/json" \
     -X PATCH -d '{"subscribed": true}' \
	 http://localhost:3000/users/02b41766-2292-473b-bb7d-0bfd9f4f10f5

PATCH /users/:id

func PostUserHandler

func PostUserHandler(w http.ResponseWriter, req *http.Request)

POST /users

Types

type SignupForm

type SignupForm struct {
	Name     string `json:"name"`
	Email    string `json:"email"`
	Password string `json:"password"`
}

Jump to

Keyboard shortcuts

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