Better API

This commit is contained in:
Felix Geisendörfer 2013-03-17 11:50:32 +01:00
parent d4c0b10cb9
commit 23107c5a05
1 changed files with 6 additions and 3 deletions

View File

@ -58,7 +58,10 @@ Location: http://tus.example.com/files/123d3ebc995732b2
Content-Length: 0 Content-Length: 0
``` ```
### PUT /files/\<id\> The `Location` header returns the `<fileUrl>` to use for interacting with the
file upload.
### PUT \<fileUrl\>
**Request Example:** **Request Example:**
``` ```
@ -76,9 +79,9 @@ Content-Range: bytes 0-99/100
HTTP/1.1 200 Ok HTTP/1.1 200 Ok
``` ```
### HEAD /files/\<id\> ### HEAD \<fileUrl\>
### GET /files/\<id\> ### GET \<fileUrl\>
Used to download an uploaded file. Used to download an uploaded file.