diff --git a/media/css/reader.css b/media/css/reader.css
index 4cde40485..96f5216d6 100644
--- a/media/css/reader.css
+++ b/media/css/reader.css
@@ -5084,9 +5084,6 @@ background: transparent;
margin-top: 36px;
font-size: 24px;
}
-.NB-static h3:first-child {
- margin-top: 24px;
-}
.NB-static h4 {
font-size: 16px;
margin: 24px 0 12px;
@@ -5220,12 +5217,17 @@ background: transparent;
.NB-static-api .NB-anchor {
position:relative;
- top: -60px;
+ top: -120px;
display: block;
}
.NB-static-api h3 {
margin-top: 64px;
}
+.NB-static-api .NB-api-endpoint {
+/* margin-left: 12px;*/
+ padding-left: 18px;
+ border-left: 6px solid #EDCE24;
+}
.NB-static-api .optional,
.NB-static-api .required {
padding: 2px 4px;
diff --git a/media/js/newsblur/assetmodel.js b/media/js/newsblur/assetmodel.js
index 3493c6ed4..9f0df1b17 100644
--- a/media/js/newsblur/assetmodel.js
+++ b/media/js/newsblur/assetmodel.js
@@ -533,14 +533,6 @@ NEWSBLUR.AssetModel.Reader.prototype = {
return null;
},
- process_opml_import: function(data, callback) {
- if (NEWSBLUR.Globals.is_authenticated) {
- this.make_request('/import/process', data, callback);
- } else {
- if ($.isFunction(callback)) callback();
- }
- },
-
save_classifier_story: function(story_id, data, callback) {
if (NEWSBLUR.Globals.is_authenticated) {
this.make_request('/classifier/save/story/', data, callback);
diff --git a/templates/static/api.xhtml b/templates/static/api.xhtml
index dffec008f..e33a78f32 100644
--- a/templates/static/api.xhtml
+++ b/templates/static/api.xhtml
@@ -16,38 +16,55 @@
-
-
GET /reader/feeds
-
+
+
GET /reader/feeds
+
-
- - Retrieve a user's list of feeds. Includes the 3 unread counts (positive, neutral,
- negative), as well as optional favicons.
-
+
+ - Retrieve a user's list of feeds. Includes the 3 unread counts (positive, neutral,
+ negative), as well as optional favicons.
+
-
-
- Parameter |
- Description |
- Default |
- Example |
-
-
- include_favicons |
- Optional Include
- favicons inline. Since they can be time consuming to download, you can optionally
- turn them off. Use /api/v1/feeds/favicons/ to retrieve the favicons in a
- separate request. |
- true |
- true/false |
-
-
- flat |
- Optional Returns a flat folder structure instead of nested folders. Useful when displaying all folders in a single depth without recursive descent. |
- false |
- true/false |
-
-
+
+
+ Parameter |
+ Description |
+ Default |
+ Example |
+
+
+ include_favicons |
+ Optional Include
+ favicons inline. Since they can be time consuming to download, you can optionally
+ turn them off. Use /api/v1/feeds/favicons/ to retrieve the favicons in a
+ separate request. |
+ true |
+ true/false |
+
+
+ flat |
+ Optional Returns a flat folder structure instead of nested folders. Useful when displaying all folders in a single depth without recursive descent. |
+ false |
+ true/false |
+
+
-
Example Response
+
Example Response
-
+
+ {
+ 'feeds': []
+ }
+
+
+ Tips
+
+
+ - Use
/reader/refresh_feeds
to get updated unread counts.
+ - Turn off
include_favicons
if you can either cache favicons or can
+ wait to fetch them.
+
+
+
+
+
+
GET /reader/favicons
+
+
+
+ - Retrieve a list of favicons for a list of feeds. Used when combined with
+ /reader/feeds and include_favicons=false, so the
+ feeds request contains far less data. Useful for mobile devices, but requires a
+ second request.
+
+
+
+
+ Parameter |
+ Description |
+ Default |
+ Example |
+
+
+ feeds |
+ OPTIONAL Array of feed ids. Leave empty to retrieve all active (enabled) feeds. |
+ |
+ [1, 2, 3] |
+
+
+
+
Example Response
+
+
+ {
+ 'feeds': []
+ }
+
+
+
Tips
+
+
+
+
+
+
+
GET /reader/page/:id
+
+
+
+ - Retrieve the original page from a single feed.
+
+
+
Example Response
+
+
+ {# #}
+ {# #}
+ {# #}
+ {# Proxied Page #}
+ {# #}
+ {# #}
+ {# This is a proxied page. This is straight HTML.
#}
+ {# #}
+ {# #}
+
+
+
+
+
+
GET /reader/refresh_feeds
+
+
+
+ - Up-to-the-second unread counts for each active feed.
+ - Poll for these counts no more than once a minute.
+
+
+
Example Response
+
+
{
'feeds': []
}
-
-
-
Tips
-
-
- - Use
/reader/refresh_feeds
to get updated unread counts.
- - Turn off
include_favicons
if you can either cache favicons or can
- wait to fetch them.
-
-
-
-
-
GET /reader/favicons
-
-
-
- - Retrieve a list of favicons for a list of feeds. Used when combined with
- /reader/feeds and include_favicons=false, so the
- feeds request contains far less data. Useful for mobile devices, but requires a
- second request.
-
-
-
-
- Parameter |
- Description |
- Default |
- Example |
-
-
- feeds |
- OPTIONAL Array of feed ids. Leave empty to retrieve all active (enabled) feeds. |
- |
- [1, 2, 3] |
-
-
-
-
Example Response
-
-
-{
- 'feeds': []
-}
-
-
-
Tips
-
-
-
-
-
GET /reader/page/:id
-
-
-
- - Retrieve the original page from a single feed.
-
-
-
Example Response
-
-
-{# #}
-{# #}
-{# #}
-{# Proxied Page #}
-{# #}
-{# #}
-{# This is a proxied page. This is straight HTML.
#}
-{# #}
-{# #}
-
+
+
@@ -185,106 +225,110 @@