From 18c20e37a52023744381f2526ecf24dc04a5f6c8 Mon Sep 17 00:00:00 2001 From: John Crepezzi Date: Thu, 12 Jun 2014 11:02:17 -0700 Subject: [PATCH] Updated POST api (markdown) --- POST-api.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/POST-api.md b/POST-api.md index 3d2e60d..1bd847a 100644 --- a/POST-api.md +++ b/POST-api.md @@ -1,15 +1,15 @@ -## What do I send? +### What do I send? There are two ways to send data up to become a paste on a haste-server: -### Raw: +#### Raw: __POST__: /documents __Content-type__: text/plain __Request body__: contents of paste __Response__: _See below_ -### Form Data: +#### Form Data: __POST__: /documents __Content-type__: multipart/form-data @@ -19,7 +19,7 @@ __Response__: _See below_ For more detail on the how multipart form bodies should be structured, see: http://www.w3.org/TR/html401/interact/forms.html#h-17.13.4 -## What do I get back? +### What do I get back? A JSON document (content-type: `application/json`) containing a single Key-Value, ex: