From 09e9b0361dbca3881fb34964325d5b4656e861c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Guillot?= Date: Fri, 6 Oct 2023 19:39:20 -0700 Subject: [PATCH] Add Bruno Miniflux API collection Bruno is a lightweight alternative to Postman/Insomnia. - https://www.usebruno.com - https://github.com/usebruno/bruno --- .gitignore | 2 +- contrib/bruno/README.md | 6 +++ contrib/bruno/miniflux/Bookmark an entry.bru | 26 ++++++++++++ contrib/bruno/miniflux/Create a feed.bru | 22 ++++++++++ .../bruno/miniflux/Create a new category.bru | 22 ++++++++++ contrib/bruno/miniflux/Create a new user.bru | 23 +++++++++++ contrib/bruno/miniflux/Delete a category.bru | 26 ++++++++++++ contrib/bruno/miniflux/Delete a feed.bru | 26 ++++++++++++ contrib/bruno/miniflux/Delete a user.bru | 26 ++++++++++++ contrib/bruno/miniflux/Discover feeds.bru | 22 ++++++++++ .../miniflux/Fetch entry website content.bru | 26 ++++++++++++ contrib/bruno/miniflux/Flush history.bru | 22 ++++++++++ contrib/bruno/miniflux/Get a single entry.bru | 26 ++++++++++++ .../miniflux/Get a single feed entry.bru | 27 +++++++++++++ contrib/bruno/miniflux/Get a single feed.bru | 26 ++++++++++++ .../miniflux/Get a single user by ID.bru | 20 ++++++++++ .../Get a single user by username.bru | 20 ++++++++++ contrib/bruno/miniflux/Get all categories.bru | 16 ++++++++ contrib/bruno/miniflux/Get all entries.bru | 22 ++++++++++ contrib/bruno/miniflux/Get all feeds.bru | 22 ++++++++++ contrib/bruno/miniflux/Get all users.bru | 16 ++++++++ .../bruno/miniflux/Get category entries.bru | 26 ++++++++++++ contrib/bruno/miniflux/Get category entry.bru | 27 +++++++++++++ contrib/bruno/miniflux/Get category feeds.bru | 26 ++++++++++++ contrib/bruno/miniflux/Get current user.bru | 16 ++++++++ contrib/bruno/miniflux/Get feed counters.bru | 22 ++++++++++ contrib/bruno/miniflux/Get feed entries.bru | 26 ++++++++++++ .../miniflux/Get feed icon by feed ID.bru | 26 ++++++++++++ .../miniflux/Get feed icon by icon ID.bru | 26 ++++++++++++ .../Mark all category entries as read.bru | 26 ++++++++++++ .../Mark all user entries as read.bru | 26 ++++++++++++ contrib/bruno/miniflux/Mark feed as read.bru | 26 ++++++++++++ contrib/bruno/miniflux/OPML Export.bru | 26 ++++++++++++ contrib/bruno/miniflux/OPML Import.bru | 40 +++++++++++++++++++ .../bruno/miniflux/Refresh a single feed.bru | 26 ++++++++++++ contrib/bruno/miniflux/Refresh all feeds.bru | 22 ++++++++++ .../bruno/miniflux/Refresh category feeds.bru | 26 ++++++++++++ contrib/bruno/miniflux/Save an entry.bru | 26 ++++++++++++ contrib/bruno/miniflux/Update a category.bru | 26 ++++++++++++ contrib/bruno/miniflux/Update a feed.bru | 26 ++++++++++++ contrib/bruno/miniflux/Update a user.bru | 26 ++++++++++++ .../bruno/miniflux/Update entries status.bru | 23 +++++++++++ contrib/bruno/miniflux/bruno.json | 5 +++ contrib/bruno/miniflux/environments/Local.bru | 7 ++++ 44 files changed, 995 insertions(+), 1 deletion(-) create mode 100644 contrib/bruno/README.md create mode 100644 contrib/bruno/miniflux/Bookmark an entry.bru create mode 100644 contrib/bruno/miniflux/Create a feed.bru create mode 100644 contrib/bruno/miniflux/Create a new category.bru create mode 100644 contrib/bruno/miniflux/Create a new user.bru create mode 100644 contrib/bruno/miniflux/Delete a category.bru create mode 100644 contrib/bruno/miniflux/Delete a feed.bru create mode 100644 contrib/bruno/miniflux/Delete a user.bru create mode 100644 contrib/bruno/miniflux/Discover feeds.bru create mode 100644 contrib/bruno/miniflux/Fetch entry website content.bru create mode 100644 contrib/bruno/miniflux/Flush history.bru create mode 100644 contrib/bruno/miniflux/Get a single entry.bru create mode 100644 contrib/bruno/miniflux/Get a single feed entry.bru create mode 100644 contrib/bruno/miniflux/Get a single feed.bru create mode 100644 contrib/bruno/miniflux/Get a single user by ID.bru create mode 100644 contrib/bruno/miniflux/Get a single user by username.bru create mode 100644 contrib/bruno/miniflux/Get all categories.bru create mode 100644 contrib/bruno/miniflux/Get all entries.bru create mode 100644 contrib/bruno/miniflux/Get all feeds.bru create mode 100644 contrib/bruno/miniflux/Get all users.bru create mode 100644 contrib/bruno/miniflux/Get category entries.bru create mode 100644 contrib/bruno/miniflux/Get category entry.bru create mode 100644 contrib/bruno/miniflux/Get category feeds.bru create mode 100644 contrib/bruno/miniflux/Get current user.bru create mode 100644 contrib/bruno/miniflux/Get feed counters.bru create mode 100644 contrib/bruno/miniflux/Get feed entries.bru create mode 100644 contrib/bruno/miniflux/Get feed icon by feed ID.bru create mode 100644 contrib/bruno/miniflux/Get feed icon by icon ID.bru create mode 100644 contrib/bruno/miniflux/Mark all category entries as read.bru create mode 100644 contrib/bruno/miniflux/Mark all user entries as read.bru create mode 100644 contrib/bruno/miniflux/Mark feed as read.bru create mode 100644 contrib/bruno/miniflux/OPML Export.bru create mode 100644 contrib/bruno/miniflux/OPML Import.bru create mode 100644 contrib/bruno/miniflux/Refresh a single feed.bru create mode 100644 contrib/bruno/miniflux/Refresh all feeds.bru create mode 100644 contrib/bruno/miniflux/Refresh category feeds.bru create mode 100644 contrib/bruno/miniflux/Save an entry.bru create mode 100644 contrib/bruno/miniflux/Update a category.bru create mode 100644 contrib/bruno/miniflux/Update a feed.bru create mode 100644 contrib/bruno/miniflux/Update a user.bru create mode 100644 contrib/bruno/miniflux/Update entries status.bru create mode 100644 contrib/bruno/miniflux/bruno.json create mode 100644 contrib/bruno/miniflux/environments/Local.bru diff --git a/.gitignore b/.gitignore index f53dc253..13bac4e1 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,5 @@ miniflux-* -miniflux +./miniflux *.rpm *.deb .idea diff --git a/contrib/bruno/README.md b/contrib/bruno/README.md new file mode 100644 index 00000000..1f226e35 --- /dev/null +++ b/contrib/bruno/README.md @@ -0,0 +1,6 @@ +This folder contains Miniflux API collection for [Bruno](https://www.usebruno.com). + +Bruno is a lightweight alternative to Postman/Insomnia. + +- https://www.usebruno.com +- https://github.com/usebruno/bruno \ No newline at end of file diff --git a/contrib/bruno/miniflux/Bookmark an entry.bru b/contrib/bruno/miniflux/Bookmark an entry.bru new file mode 100644 index 00000000..a0a10502 --- /dev/null +++ b/contrib/bruno/miniflux/Bookmark an entry.bru @@ -0,0 +1,26 @@ +meta { + name: Bookmark an entry + type: http + seq: 37 +} + +put { + url: {{minifluxBaseURL}}/v1/entries/{{entryID}}/bookmark + body: none + auth: basic +} + +auth:basic { + username: {{minifluxUsername}} + password: {{minifluxPassword}} +} + +body:json { + { + "feed_url": "https://miniflux.app/feed.xml" + } +} + +vars:pre-request { + entryID: 1698 +} diff --git a/contrib/bruno/miniflux/Create a feed.bru b/contrib/bruno/miniflux/Create a feed.bru new file mode 100644 index 00000000..ceaa006f --- /dev/null +++ b/contrib/bruno/miniflux/Create a feed.bru @@ -0,0 +1,22 @@ +meta { + name: Create a feed + type: http + seq: 19 +} + +post { + url: {{minifluxBaseURL}}/v1/feeds + body: json + auth: basic +} + +auth:basic { + username: {{minifluxUsername}} + password: {{minifluxPassword}} +} + +body:json { + { + "feed_url": "https://miniflux.app/feed.xml" + } +} diff --git a/contrib/bruno/miniflux/Create a new category.bru b/contrib/bruno/miniflux/Create a new category.bru new file mode 100644 index 00000000..e6f5f8ff --- /dev/null +++ b/contrib/bruno/miniflux/Create a new category.bru @@ -0,0 +1,22 @@ +meta { + name: Create a new category + type: http + seq: 10 +} + +post { + url: {{minifluxBaseURL}}/v1/categories + body: json + auth: basic +} + +auth:basic { + username: {{minifluxUsername}} + password: {{minifluxPassword}} +} + +body:json { + { + "title": "Test" + } +} diff --git a/contrib/bruno/miniflux/Create a new user.bru b/contrib/bruno/miniflux/Create a new user.bru new file mode 100644 index 00000000..e1cf1e3b --- /dev/null +++ b/contrib/bruno/miniflux/Create a new user.bru @@ -0,0 +1,23 @@ +meta { + name: Create a new user + type: http + seq: 5 +} + +post { + url: {{minifluxBaseURL}}/v1/users + body: json + auth: basic +} + +auth:basic { + username: {{minifluxUsername}} + password: {{minifluxPassword}} +} + +body:json { + { + "username": "foobar", + "password": "secret123" + } +} diff --git a/contrib/bruno/miniflux/Delete a category.bru b/contrib/bruno/miniflux/Delete a category.bru new file mode 100644 index 00000000..d92988c1 --- /dev/null +++ b/contrib/bruno/miniflux/Delete a category.bru @@ -0,0 +1,26 @@ +meta { + name: Delete a category + type: http + seq: 12 +} + +delete { + url: {{minifluxBaseURL}}/v1/categories/{{categoryID}} + body: none + auth: basic +} + +auth:basic { + username: {{minifluxUsername}} + password: {{minifluxPassword}} +} + +body:json { + { + "title": "Test Update" + } +} + +vars:pre-request { + categoryID: 1 +} diff --git a/contrib/bruno/miniflux/Delete a feed.bru b/contrib/bruno/miniflux/Delete a feed.bru new file mode 100644 index 00000000..977f6d40 --- /dev/null +++ b/contrib/bruno/miniflux/Delete a feed.bru @@ -0,0 +1,26 @@ +meta { + name: Delete a feed + type: http + seq: 26 +} + +delete { + url: {{minifluxBaseURL}}/v1/feeds/{{feedID}} + body: none + auth: basic +} + +auth:basic { + username: {{minifluxUsername}} + password: {{minifluxPassword}} +} + +body:json { + { + "user_agent": "My user agent" + } +} + +vars:pre-request { + feedID: 18 +} diff --git a/contrib/bruno/miniflux/Delete a user.bru b/contrib/bruno/miniflux/Delete a user.bru new file mode 100644 index 00000000..97b8eeb2 --- /dev/null +++ b/contrib/bruno/miniflux/Delete a user.bru @@ -0,0 +1,26 @@ +meta { + name: Delete a user + type: http + seq: 7 +} + +delete { + url: {{minifluxBaseURL}}/v1/users/{{userID}} + body: none + auth: basic +} + +auth:basic { + username: {{minifluxUsername}} + password: {{minifluxPassword}} +} + +body:json { + { + "language": "fr_FR" + } +} + +vars:pre-request { + userID: 2 +} diff --git a/contrib/bruno/miniflux/Discover feeds.bru b/contrib/bruno/miniflux/Discover feeds.bru new file mode 100644 index 00000000..03c86bd0 --- /dev/null +++ b/contrib/bruno/miniflux/Discover feeds.bru @@ -0,0 +1,22 @@ +meta { + name: Discover feeds + type: http + seq: 18 +} + +post { + url: {{minifluxBaseURL}}/v1/discover + body: json + auth: basic +} + +auth:basic { + username: {{minifluxUsername}} + password: {{minifluxPassword}} +} + +body:json { + { + "url": "https://miniflux.app" + } +} diff --git a/contrib/bruno/miniflux/Fetch entry website content.bru b/contrib/bruno/miniflux/Fetch entry website content.bru new file mode 100644 index 00000000..87900389 --- /dev/null +++ b/contrib/bruno/miniflux/Fetch entry website content.bru @@ -0,0 +1,26 @@ +meta { + name: Fetch entry website content + type: http + seq: 39 +} + +get { + url: {{minifluxBaseURL}}/v1/entries/{{entryID}}/fetch-content + body: none + auth: basic +} + +auth:basic { + username: {{minifluxUsername}} + password: {{minifluxPassword}} +} + +body:json { + { + "feed_url": "https://miniflux.app/feed.xml" + } +} + +vars:pre-request { + entryID: 1698 +} diff --git a/contrib/bruno/miniflux/Flush history.bru b/contrib/bruno/miniflux/Flush history.bru new file mode 100644 index 00000000..6ca267f4 --- /dev/null +++ b/contrib/bruno/miniflux/Flush history.bru @@ -0,0 +1,22 @@ +meta { + name: Flush history + type: http + seq: 40 +} + +put { + url: {{minifluxBaseURL}}/v1/flush-history + body: none + auth: basic +} + +auth:basic { + username: {{minifluxUsername}} + password: {{minifluxPassword}} +} + +body:json { + { + "url": "https://miniflux.app" + } +} diff --git a/contrib/bruno/miniflux/Get a single entry.bru b/contrib/bruno/miniflux/Get a single entry.bru new file mode 100644 index 00000000..aefbebc8 --- /dev/null +++ b/contrib/bruno/miniflux/Get a single entry.bru @@ -0,0 +1,26 @@ +meta { + name: Get a single entry + type: http + seq: 36 +} + +get { + url: {{minifluxBaseURL}}/v1/entries/{{entryID}} + body: none + auth: basic +} + +auth:basic { + username: {{minifluxUsername}} + password: {{minifluxPassword}} +} + +body:json { + { + "feed_url": "https://miniflux.app/feed.xml" + } +} + +vars:pre-request { + entryID: 1698 +} diff --git a/contrib/bruno/miniflux/Get a single feed entry.bru b/contrib/bruno/miniflux/Get a single feed entry.bru new file mode 100644 index 00000000..5f703301 --- /dev/null +++ b/contrib/bruno/miniflux/Get a single feed entry.bru @@ -0,0 +1,27 @@ +meta { + name: Get a single feed entry + type: http + seq: 33 +} + +get { + url: {{minifluxBaseURL}}/v1/feeds/{{feedID}}/entries/{{entryID}} + body: none + auth: basic +} + +auth:basic { + username: {{minifluxUsername}} + password: {{minifluxPassword}} +} + +body:json { + { + "feed_url": "https://miniflux.app/feed.xml" + } +} + +vars:pre-request { + feedID: 19 + entryID: 1698 +} diff --git a/contrib/bruno/miniflux/Get a single feed.bru b/contrib/bruno/miniflux/Get a single feed.bru new file mode 100644 index 00000000..a593df63 --- /dev/null +++ b/contrib/bruno/miniflux/Get a single feed.bru @@ -0,0 +1,26 @@ +meta { + name: Get a single feed + type: http + seq: 24 +} + +get { + url: {{minifluxBaseURL}}/v1/feeds/{{feedID}} + body: none + auth: basic +} + +auth:basic { + username: {{minifluxUsername}} + password: {{minifluxPassword}} +} + +body:json { + { + "feed_url": "https://miniflux.app/feed.xml" + } +} + +vars:pre-request { + feedID: 18 +} diff --git a/contrib/bruno/miniflux/Get a single user by ID.bru b/contrib/bruno/miniflux/Get a single user by ID.bru new file mode 100644 index 00000000..e9debe20 --- /dev/null +++ b/contrib/bruno/miniflux/Get a single user by ID.bru @@ -0,0 +1,20 @@ +meta { + name: Get a single user by ID + type: http + seq: 3 +} + +get { + url: {{minifluxBaseURL}}/v1/users/{{userID}} + body: none + auth: basic +} + +auth:basic { + username: {{minifluxUsername}} + password: {{minifluxPassword}} +} + +vars:pre-request { + userID: 1 +} diff --git a/contrib/bruno/miniflux/Get a single user by username.bru b/contrib/bruno/miniflux/Get a single user by username.bru new file mode 100644 index 00000000..76cfe786 --- /dev/null +++ b/contrib/bruno/miniflux/Get a single user by username.bru @@ -0,0 +1,20 @@ +meta { + name: Get a single user by username + type: http + seq: 4 +} + +get { + url: {{minifluxBaseURL}}/v1/users/{{username}} + body: none + auth: basic +} + +auth:basic { + username: {{minifluxUsername}} + password: {{minifluxPassword}} +} + +vars:pre-request { + username: admin +} diff --git a/contrib/bruno/miniflux/Get all categories.bru b/contrib/bruno/miniflux/Get all categories.bru new file mode 100644 index 00000000..9ff0edd9 --- /dev/null +++ b/contrib/bruno/miniflux/Get all categories.bru @@ -0,0 +1,16 @@ +meta { + name: Get all categories + type: http + seq: 9 +} + +get { + url: {{minifluxBaseURL}}/v1/categories + body: none + auth: basic +} + +auth:basic { + username: {{minifluxUsername}} + password: {{minifluxPassword}} +} diff --git a/contrib/bruno/miniflux/Get all entries.bru b/contrib/bruno/miniflux/Get all entries.bru new file mode 100644 index 00000000..64442087 --- /dev/null +++ b/contrib/bruno/miniflux/Get all entries.bru @@ -0,0 +1,22 @@ +meta { + name: Get all entries + type: http + seq: 34 +} + +get { + url: {{minifluxBaseURL}}/v1/entries + body: none + auth: basic +} + +auth:basic { + username: {{minifluxUsername}} + password: {{minifluxPassword}} +} + +body:json { + { + "feed_url": "https://miniflux.app/feed.xml" + } +} diff --git a/contrib/bruno/miniflux/Get all feeds.bru b/contrib/bruno/miniflux/Get all feeds.bru new file mode 100644 index 00000000..ef774308 --- /dev/null +++ b/contrib/bruno/miniflux/Get all feeds.bru @@ -0,0 +1,22 @@ +meta { + name: Get all feeds + type: http + seq: 20 +} + +get { + url: {{minifluxBaseURL}}/v1/feeds + body: none + auth: basic +} + +auth:basic { + username: {{minifluxUsername}} + password: {{minifluxPassword}} +} + +body:json { + { + "feed_url": "https://miniflux.app/feed.xml" + } +} diff --git a/contrib/bruno/miniflux/Get all users.bru b/contrib/bruno/miniflux/Get all users.bru new file mode 100644 index 00000000..d4658d91 --- /dev/null +++ b/contrib/bruno/miniflux/Get all users.bru @@ -0,0 +1,16 @@ +meta { + name: Get all users + type: http + seq: 2 +} + +get { + url: {{minifluxBaseURL}}/v1/users + body: none + auth: basic +} + +auth:basic { + username: {{minifluxUsername}} + password: {{minifluxPassword}} +} diff --git a/contrib/bruno/miniflux/Get category entries.bru b/contrib/bruno/miniflux/Get category entries.bru new file mode 100644 index 00000000..6606dde9 --- /dev/null +++ b/contrib/bruno/miniflux/Get category entries.bru @@ -0,0 +1,26 @@ +meta { + name: Get category entries + type: http + seq: 16 +} + +get { + url: {{minifluxBaseURL}}/v1/categories/{{categoryID}}/entries + body: none + auth: basic +} + +auth:basic { + username: {{minifluxUsername}} + password: {{minifluxPassword}} +} + +body:json { + { + "title": "Test Update" + } +} + +vars:pre-request { + categoryID: 2 +} diff --git a/contrib/bruno/miniflux/Get category entry.bru b/contrib/bruno/miniflux/Get category entry.bru new file mode 100644 index 00000000..c2026031 --- /dev/null +++ b/contrib/bruno/miniflux/Get category entry.bru @@ -0,0 +1,27 @@ +meta { + name: Get category entry + type: http + seq: 17 +} + +get { + url: {{minifluxBaseURL}}/v1/categories/{{categoryID}}/entries/{{entryID}} + body: none + auth: basic +} + +auth:basic { + username: {{minifluxUsername}} + password: {{minifluxPassword}} +} + +body:json { + { + "title": "Test Update" + } +} + +vars:pre-request { + categoryID: 2 + entryID: 1 +} diff --git a/contrib/bruno/miniflux/Get category feeds.bru b/contrib/bruno/miniflux/Get category feeds.bru new file mode 100644 index 00000000..27dfb0ba --- /dev/null +++ b/contrib/bruno/miniflux/Get category feeds.bru @@ -0,0 +1,26 @@ +meta { + name: Get category feeds + type: http + seq: 14 +} + +get { + url: {{minifluxBaseURL}}/v1/categories/{{categoryID}}/feeds + body: none + auth: basic +} + +auth:basic { + username: {{minifluxUsername}} + password: {{minifluxPassword}} +} + +body:json { + { + "title": "Test Update" + } +} + +vars:pre-request { + categoryID: 2 +} diff --git a/contrib/bruno/miniflux/Get current user.bru b/contrib/bruno/miniflux/Get current user.bru new file mode 100644 index 00000000..2e4dd484 --- /dev/null +++ b/contrib/bruno/miniflux/Get current user.bru @@ -0,0 +1,16 @@ +meta { + name: Get current user + type: http + seq: 1 +} + +get { + url: {{minifluxBaseURL}}/v1/me + body: none + auth: basic +} + +auth:basic { + username: {{minifluxUsername}} + password: {{minifluxPassword}} +} diff --git a/contrib/bruno/miniflux/Get feed counters.bru b/contrib/bruno/miniflux/Get feed counters.bru new file mode 100644 index 00000000..9f8735ae --- /dev/null +++ b/contrib/bruno/miniflux/Get feed counters.bru @@ -0,0 +1,22 @@ +meta { + name: Get feed counters + type: http + seq: 21 +} + +get { + url: {{minifluxBaseURL}}/v1/feeds/counters + body: none + auth: basic +} + +auth:basic { + username: {{minifluxUsername}} + password: {{minifluxPassword}} +} + +body:json { + { + "feed_url": "https://miniflux.app/feed.xml" + } +} diff --git a/contrib/bruno/miniflux/Get feed entries.bru b/contrib/bruno/miniflux/Get feed entries.bru new file mode 100644 index 00000000..52b567de --- /dev/null +++ b/contrib/bruno/miniflux/Get feed entries.bru @@ -0,0 +1,26 @@ +meta { + name: Get feed entries + type: http + seq: 32 +} + +get { + url: {{minifluxBaseURL}}/v1/feeds/{{feedID}}/entries + body: none + auth: basic +} + +auth:basic { + username: {{minifluxUsername}} + password: {{minifluxPassword}} +} + +body:json { + { + "feed_url": "https://miniflux.app/feed.xml" + } +} + +vars:pre-request { + feedID: 19 +} diff --git a/contrib/bruno/miniflux/Get feed icon by feed ID.bru b/contrib/bruno/miniflux/Get feed icon by feed ID.bru new file mode 100644 index 00000000..f8e1be90 --- /dev/null +++ b/contrib/bruno/miniflux/Get feed icon by feed ID.bru @@ -0,0 +1,26 @@ +meta { + name: Get feed icon by feed ID + type: http + seq: 27 +} + +get { + url: {{minifluxBaseURL}}/v1/feeds/{{feedID}}/icon + body: none + auth: basic +} + +auth:basic { + username: {{minifluxUsername}} + password: {{minifluxPassword}} +} + +body:json { + { + "user_agent": "My user agent" + } +} + +vars:pre-request { + feedID: 19 +} diff --git a/contrib/bruno/miniflux/Get feed icon by icon ID.bru b/contrib/bruno/miniflux/Get feed icon by icon ID.bru new file mode 100644 index 00000000..f568bfbf --- /dev/null +++ b/contrib/bruno/miniflux/Get feed icon by icon ID.bru @@ -0,0 +1,26 @@ +meta { + name: Get feed icon by icon ID + type: http + seq: 28 +} + +get { + url: {{minifluxBaseURL}}/v1/icons/{{iconID}} + body: none + auth: basic +} + +auth:basic { + username: {{minifluxUsername}} + password: {{minifluxPassword}} +} + +body:json { + { + "user_agent": "My user agent" + } +} + +vars:pre-request { + iconID: 11 +} diff --git a/contrib/bruno/miniflux/Mark all category entries as read.bru b/contrib/bruno/miniflux/Mark all category entries as read.bru new file mode 100644 index 00000000..1baf74c1 --- /dev/null +++ b/contrib/bruno/miniflux/Mark all category entries as read.bru @@ -0,0 +1,26 @@ +meta { + name: Mark all category entries as read + type: http + seq: 13 +} + +put { + url: {{minifluxBaseURL}}/v1/categories/{{categoryID}}/mark-all-as-read + body: none + auth: basic +} + +auth:basic { + username: {{minifluxUsername}} + password: {{minifluxPassword}} +} + +body:json { + { + "title": "Test Update" + } +} + +vars:pre-request { + categoryID: 2 +} diff --git a/contrib/bruno/miniflux/Mark all user entries as read.bru b/contrib/bruno/miniflux/Mark all user entries as read.bru new file mode 100644 index 00000000..bff69881 --- /dev/null +++ b/contrib/bruno/miniflux/Mark all user entries as read.bru @@ -0,0 +1,26 @@ +meta { + name: Mark all user entries as read + type: http + seq: 8 +} + +put { + url: {{minifluxBaseURL}}/v1/users/{{userID}}/mark-all-as-read + body: none + auth: basic +} + +auth:basic { + username: {{minifluxUsername}} + password: {{minifluxPassword}} +} + +body:json { + { + "title": "Test Update" + } +} + +vars:pre-request { + userID: 1 +} diff --git a/contrib/bruno/miniflux/Mark feed as read.bru b/contrib/bruno/miniflux/Mark feed as read.bru new file mode 100644 index 00000000..68c82797 --- /dev/null +++ b/contrib/bruno/miniflux/Mark feed as read.bru @@ -0,0 +1,26 @@ +meta { + name: Mark feed as read + type: http + seq: 29 +} + +put { + url: {{minifluxBaseURL}}/v1/feeds/{{feedID}}/mark-all-as-read + body: none + auth: basic +} + +auth:basic { + username: {{minifluxUsername}} + password: {{minifluxPassword}} +} + +body:json { + { + "user_agent": "My user agent" + } +} + +vars:pre-request { + feedID: 19 +} diff --git a/contrib/bruno/miniflux/OPML Export.bru b/contrib/bruno/miniflux/OPML Export.bru new file mode 100644 index 00000000..5daf6897 --- /dev/null +++ b/contrib/bruno/miniflux/OPML Export.bru @@ -0,0 +1,26 @@ +meta { + name: OPML Export + type: http + seq: 30 +} + +get { + url: {{minifluxBaseURL}}/v1/export + body: none + auth: basic +} + +auth:basic { + username: {{minifluxUsername}} + password: {{minifluxPassword}} +} + +body:json { + { + "user_agent": "My user agent" + } +} + +vars:pre-request { + feedID: 19 +} diff --git a/contrib/bruno/miniflux/OPML Import.bru b/contrib/bruno/miniflux/OPML Import.bru new file mode 100644 index 00000000..33125dfc --- /dev/null +++ b/contrib/bruno/miniflux/OPML Import.bru @@ -0,0 +1,40 @@ +meta { + name: OPML Import + type: http + seq: 31 +} + +post { + url: {{minifluxBaseURL}}/v1/import + body: xml + auth: basic +} + +auth:basic { + username: {{minifluxUsername}} + password: {{minifluxPassword}} +} + +body:json { + { + "user_agent": "My user agent" + } +} + +body:xml { + + + + Miniflux + + + + + + + +} + +vars:pre-request { + feedID: 19 +} diff --git a/contrib/bruno/miniflux/Refresh a single feed.bru b/contrib/bruno/miniflux/Refresh a single feed.bru new file mode 100644 index 00000000..71bb5334 --- /dev/null +++ b/contrib/bruno/miniflux/Refresh a single feed.bru @@ -0,0 +1,26 @@ +meta { + name: Refresh a single feed + type: http + seq: 23 +} + +put { + url: {{minifluxBaseURL}}/v1/feeds/{{feedID}}/refresh + body: none + auth: basic +} + +auth:basic { + username: {{minifluxUsername}} + password: {{minifluxPassword}} +} + +body:json { + { + "feed_url": "https://miniflux.app/feed.xml" + } +} + +vars:pre-request { + feedID: 18 +} diff --git a/contrib/bruno/miniflux/Refresh all feeds.bru b/contrib/bruno/miniflux/Refresh all feeds.bru new file mode 100644 index 00000000..6988bd5c --- /dev/null +++ b/contrib/bruno/miniflux/Refresh all feeds.bru @@ -0,0 +1,22 @@ +meta { + name: Refresh all feeds + type: http + seq: 22 +} + +put { + url: {{minifluxBaseURL}}/v1/feeds/refresh + body: none + auth: basic +} + +auth:basic { + username: {{minifluxUsername}} + password: {{minifluxPassword}} +} + +body:json { + { + "feed_url": "https://miniflux.app/feed.xml" + } +} diff --git a/contrib/bruno/miniflux/Refresh category feeds.bru b/contrib/bruno/miniflux/Refresh category feeds.bru new file mode 100644 index 00000000..4081fb70 --- /dev/null +++ b/contrib/bruno/miniflux/Refresh category feeds.bru @@ -0,0 +1,26 @@ +meta { + name: Refresh category feeds + type: http + seq: 15 +} + +put { + url: {{minifluxBaseURL}}/v1/categories/{{categoryID}}/refresh + body: none + auth: basic +} + +auth:basic { + username: {{minifluxUsername}} + password: {{minifluxPassword}} +} + +body:json { + { + "title": "Test Update" + } +} + +vars:pre-request { + categoryID: 2 +} diff --git a/contrib/bruno/miniflux/Save an entry.bru b/contrib/bruno/miniflux/Save an entry.bru new file mode 100644 index 00000000..22654dc6 --- /dev/null +++ b/contrib/bruno/miniflux/Save an entry.bru @@ -0,0 +1,26 @@ +meta { + name: Save an entry + type: http + seq: 38 +} + +post { + url: {{minifluxBaseURL}}/v1/entries/{{entryID}}/save + body: none + auth: basic +} + +auth:basic { + username: {{minifluxUsername}} + password: {{minifluxPassword}} +} + +body:json { + { + "feed_url": "https://miniflux.app/feed.xml" + } +} + +vars:pre-request { + entryID: 1698 +} diff --git a/contrib/bruno/miniflux/Update a category.bru b/contrib/bruno/miniflux/Update a category.bru new file mode 100644 index 00000000..560adaa5 --- /dev/null +++ b/contrib/bruno/miniflux/Update a category.bru @@ -0,0 +1,26 @@ +meta { + name: Update a category + type: http + seq: 11 +} + +put { + url: {{minifluxBaseURL}}/v1/categories/{{categoryID}} + body: json + auth: basic +} + +auth:basic { + username: {{minifluxUsername}} + password: {{minifluxPassword}} +} + +body:json { + { + "title": "Test Update" + } +} + +vars:pre-request { + categoryID: 1 +} diff --git a/contrib/bruno/miniflux/Update a feed.bru b/contrib/bruno/miniflux/Update a feed.bru new file mode 100644 index 00000000..5b2a3190 --- /dev/null +++ b/contrib/bruno/miniflux/Update a feed.bru @@ -0,0 +1,26 @@ +meta { + name: Update a feed + type: http + seq: 25 +} + +put { + url: {{minifluxBaseURL}}/v1/feeds/{{feedID}} + body: json + auth: basic +} + +auth:basic { + username: {{minifluxUsername}} + password: {{minifluxPassword}} +} + +body:json { + { + "user_agent": "My user agent" + } +} + +vars:pre-request { + feedID: 18 +} diff --git a/contrib/bruno/miniflux/Update a user.bru b/contrib/bruno/miniflux/Update a user.bru new file mode 100644 index 00000000..641d6eb5 --- /dev/null +++ b/contrib/bruno/miniflux/Update a user.bru @@ -0,0 +1,26 @@ +meta { + name: Update a user + type: http + seq: 6 +} + +put { + url: {{minifluxBaseURL}}/v1/users/{{userID}} + body: json + auth: basic +} + +auth:basic { + username: {{minifluxUsername}} + password: {{minifluxPassword}} +} + +body:json { + { + "language": "fr_FR" + } +} + +vars:pre-request { + userID: 1 +} diff --git a/contrib/bruno/miniflux/Update entries status.bru b/contrib/bruno/miniflux/Update entries status.bru new file mode 100644 index 00000000..fedf4171 --- /dev/null +++ b/contrib/bruno/miniflux/Update entries status.bru @@ -0,0 +1,23 @@ +meta { + name: Update entries status + type: http + seq: 35 +} + +put { + url: {{minifluxBaseURL}}/v1/entries + body: json + auth: basic +} + +auth:basic { + username: {{minifluxUsername}} + password: {{minifluxPassword}} +} + +body:json { + { + "entry_ids": [1698, 1699], + "status": "read" + } +} diff --git a/contrib/bruno/miniflux/bruno.json b/contrib/bruno/miniflux/bruno.json new file mode 100644 index 00000000..783a76c7 --- /dev/null +++ b/contrib/bruno/miniflux/bruno.json @@ -0,0 +1,5 @@ +{ + "version": "1", + "name": "Miniflux", + "type": "collection" +} \ No newline at end of file diff --git a/contrib/bruno/miniflux/environments/Local.bru b/contrib/bruno/miniflux/environments/Local.bru new file mode 100644 index 00000000..535b951c --- /dev/null +++ b/contrib/bruno/miniflux/environments/Local.bru @@ -0,0 +1,7 @@ +vars { + minifluxBaseURL: http://127.0.0.1:8080 + minifluxUsername: admin +} +vars:secret [ + minifluxPassword +]