From 54df3f3b7fd37c50f873ee5455de9b2d6e2e584d Mon Sep 17 00:00:00 2001 From: Nicolas Favre-Felix Date: Mon, 25 Mar 2013 17:36:35 +0000 Subject: [PATCH] Add docs for PUT in the command format section --- README.markdown | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.markdown b/README.markdown index 9121325..c91b205 100644 --- a/README.markdown +++ b/README.markdown @@ -20,7 +20,7 @@ curl -d "GET/hello" http://127.0.0.1:7379/ # Features -* GET and POST are supported, as well as `PUT` for file uploads. +* `GET` and `POST` are supported, as well as `PUT` for file uploads. * JSON output by default, optional JSONP parameter (`?jsonp=myFunction` or `?callback=myFunction`). * Raw Redis 2.0 protocol output with `.raw` suffix * MessagePack output with `.msg` suffix @@ -67,10 +67,11 @@ curl -d "GET/hello" http://127.0.0.1:7379/ * Unauthorized command (disabled in config file): 403 Forbidden. # Command format -The URI `/COMMAND/arg0/arg1/.../argN.ext` executes the command on Redis and returns the response to the client. GET and POST are supported: +The URI `/COMMAND/arg0/arg1/.../argN.ext` executes the command on Redis and returns the response to the client. GET, POST, and PUT are supported: * `GET /COMMAND/arg0/.../argN.ext` * `POST /` with `COMMAND/arg0/.../argN` in the HTTP body. +* `PUT /COMMAND/arg0.../argN-1` with `argN` in the HTTP body (see section on [file uploads](#file-upload).) `.ext` is an optional extension; it is not read as part of the last argument but only represents the output format. Several formats are available (see below). @@ -317,4 +318,4 @@ Publish messages to redis to see output similar to the following: {"SUBSCRIBE":["subscribe","hello",1]} {"SUBSCRIBE":["message","hello","some message"]} {"SUBSCRIBE":["message","hello","some other message"]} - \ No newline at end of file +