summaryrefslogtreecommitdiff
path: root/examples/updateable
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2017-03-15 14:53:25 -0700
committerSteve Manuel <nilslice@gmail.com>2017-03-15 14:53:25 -0700
commit709fdc6ce0184034dfe2df7c413772c19a4455f0 (patch)
tree5ae229e58f2e26df3c8a320e3354f037c1cf15d1 /examples/updateable
parentdc273a62f38da6962be1edd3d54df48245a6d088 (diff)
updating examples with deleteable
Diffstat (limited to 'examples/updateable')
-rw-r--r--examples/updateable/README.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/updateable/README.md b/examples/updateable/README.md
index 06f4188..280cc46 100644
--- a/examples/updateable/README.md
+++ b/examples/updateable/README.md
@@ -23,8 +23,8 @@ See the file `content/song.go` and read the comments to understand the various
methods needed to satisfy required interfaces for this kind of activity.
### Overview
-1. Implement `api.Updateable` with the `Update(http.ResponseWriter, *http.Request)` method to allow outside POST requests.
-2. Consistent with the createable example, authentication can be validated in `BeforeAPIUpdate(http.ResponseWriter, *http.Request)`
+1. Implement `api.Updateable` with the `Update(http.ResponseWriter, *http.Request) error` method to allow outside POST requests.
+2. Consistent with the createable example, authentication can be validated in `BeforeAPIUpdate(http.ResponseWriter, *http.Request) error`
There are various validation and request checks shown in this example as well.
Please feel free to modify and submit a PR for updates or bug fixes!