Permalink
Browse files

add comments about type=json

clean up url for get in markdown as it is not consistently formatted
  • Loading branch information...
1 parent 4f9887e commit e5f6b308d3d2324b970eba9ffc9016cf1b8f1977 @omphalos committed Aug 28, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 README.md
View
@@ -29,7 +29,7 @@ Supported operations
**GET** returns a file's contents with the correct mime type, or else the contents of a directory as html.
-**GET** http://localhost?dir=json returns directories as json instead of html.
+**GET** http://localhost?type=json formats content as json instead of the default type. This works for directories and files.
**HEAD** is the same as a GET, omitting the body.
@@ -39,9 +39,9 @@ Supported operations
**POST** supports two operations, rename and create directory.
-**POST** http://localhost/newDir**?create=directory** would create a directory named newDir.
+**POST** http://localhost/newDir?create=directory would create a directory named newDir.
-**POST** http://localhost/abc.html**?rename=def.html** would rename abc.html to def.html.
+**POST** http://localhost/abc.html?rename=def.html would rename abc.html to def.html.
Run the Example
===============

0 comments on commit e5f6b30

Please sign in to comment.