Skip to content

Commit

Permalink
add comments about type=json
Browse files Browse the repository at this point in the history
clean up url for get in markdown as it is not consistently formatted
  • Loading branch information
omphalos committed Aug 28, 2012
1 parent 4f9887e commit e5f6b30
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -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.

Expand All @@ -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
===============
Expand Down

0 comments on commit e5f6b30

Please sign in to comment.