Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add more errors in the examples

  • Loading branch information...
commit ee601b5a6825e046e98432ef7292fe824350ec9d 1 parent 9ca6419
@qzio qzio authored
Showing with 13 additions and 0 deletions.
  1. +13 −0 content/api/resources/flattrs.md
View
13 content/api/resources/flattrs.md
@@ -19,6 +19,11 @@ GET <%= @config[:api_url]%>/users/:username/flattrs
<%= headers(200) %>
<%= json(:flattr) {|t| [t]} %>
+If the response header is `200 OK` but the response is empty there is two possible reasons. One is that the user have choosen to hide what he/she flattrs. The other is because that user haven't flattred anything yet.
+##### Errors
+
+* `not_found` (404 Not Found) - The requested user could not be found
+
#### List the authenticated users flattrs
##### Parameters
@@ -36,6 +41,10 @@ GET <%= @config[:api_url]%>/user/flattrs
<%= headers(200) %>
<%= json(:flattr) {|t| [t]} %>
+##### Errors
+
+* `unauthorized ` (401 Unauthorized) - You are unauthorized to access the resource (no token?)
+
#### List a things flattrs
##### Parameters
@@ -53,6 +62,10 @@ GET <%= @config[:api_url]%>/things/:id/flattrs
<%= headers(200) %>
<%= json(:flattr) {|t| [t]} %>
+##### Errors
+
+* `unauthorized ` (401 Unauthorized) - You are unauthorized to access the resource (no token?)
+
#### Flattr a thing
**Scope required**: flattr
Please sign in to comment.
Something went wrong with that request. Please try again.