From 9997e1f7b1bf6d46d351bd15197dc8e7abd7d587 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Mon, 29 Jul 2013 22:33:01 -0400 Subject: [PATCH] Update API and write documentation (official website) --- README.markdown | 4 ++++ jsonrpc.php | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/README.markdown b/README.markdown index c49cfd1..2fd2e24 100644 --- a/README.markdown +++ b/README.markdown @@ -237,6 +237,10 @@ Available variables: For more details, have a look to the class `vendor/PicoFeed/Filter.php`. +### Where is the API documentation? + + + ### How to create a theme for Miniflux? It's very easy to write a custom theme for Miniflux. diff --git a/jsonrpc.php b/jsonrpc.php index debb787..642d778 100644 --- a/jsonrpc.php +++ b/jsonrpc.php @@ -74,7 +74,7 @@ $server->register('item.bookmark.create', function ($item_id) { }); // Remove a bookmark -$server->register('item.bookmark.remove', function ($item_id) { +$server->register('item.bookmark.delete', function ($item_id) { return Model\set_bookmark_value($item_id, 0); }); @@ -122,7 +122,7 @@ $server->register('item.mark_as_read', function($item_id) { }); // Mark item as unread -$server->register('item.mark_as_read', function($item_id) { +$server->register('item.mark_as_unread', function($item_id) { return Model\set_item_unread($item_id); });