Skip to content

Commit

Permalink
Add Bruno Miniflux API collection
Browse files Browse the repository at this point in the history
Bruno is a lightweight alternative to Postman/Insomnia.

- https://www.usebruno.com
- https://github.com/usebruno/bruno
  • Loading branch information
fguillot committed Oct 7, 2023
1 parent d0377d5 commit 09e9b03
Show file tree
Hide file tree
Showing 44 changed files with 995 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
miniflux-*
miniflux
./miniflux
*.rpm
*.deb
.idea
Expand Down
6 changes: 6 additions & 0 deletions contrib/bruno/README.md
Original file line number Diff line number Diff line change
@@ -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
26 changes: 26 additions & 0 deletions contrib/bruno/miniflux/Bookmark an entry.bru
Original file line number Diff line number Diff line change
@@ -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
}
22 changes: 22 additions & 0 deletions contrib/bruno/miniflux/Create a feed.bru
Original file line number Diff line number Diff line change
@@ -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"
}
}
22 changes: 22 additions & 0 deletions contrib/bruno/miniflux/Create a new category.bru
Original file line number Diff line number Diff line change
@@ -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"
}
}
23 changes: 23 additions & 0 deletions contrib/bruno/miniflux/Create a new user.bru
Original file line number Diff line number Diff line change
@@ -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"
}
}
26 changes: 26 additions & 0 deletions contrib/bruno/miniflux/Delete a category.bru
Original file line number Diff line number Diff line change
@@ -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
}
26 changes: 26 additions & 0 deletions contrib/bruno/miniflux/Delete a feed.bru
Original file line number Diff line number Diff line change
@@ -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
}
26 changes: 26 additions & 0 deletions contrib/bruno/miniflux/Delete a user.bru
Original file line number Diff line number Diff line change
@@ -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
}
22 changes: 22 additions & 0 deletions contrib/bruno/miniflux/Discover feeds.bru
Original file line number Diff line number Diff line change
@@ -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"
}
}
26 changes: 26 additions & 0 deletions contrib/bruno/miniflux/Fetch entry website content.bru
Original file line number Diff line number Diff line change
@@ -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
}
22 changes: 22 additions & 0 deletions contrib/bruno/miniflux/Flush history.bru
Original file line number Diff line number Diff line change
@@ -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"
}
}
26 changes: 26 additions & 0 deletions contrib/bruno/miniflux/Get a single entry.bru
Original file line number Diff line number Diff line change
@@ -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
}
27 changes: 27 additions & 0 deletions contrib/bruno/miniflux/Get a single feed entry.bru
Original file line number Diff line number Diff line change
@@ -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
}
26 changes: 26 additions & 0 deletions contrib/bruno/miniflux/Get a single feed.bru
Original file line number Diff line number Diff line change
@@ -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
}
20 changes: 20 additions & 0 deletions contrib/bruno/miniflux/Get a single user by ID.bru
Original file line number Diff line number Diff line change
@@ -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
}
20 changes: 20 additions & 0 deletions contrib/bruno/miniflux/Get a single user by username.bru
Original file line number Diff line number Diff line change
@@ -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
}
Loading

0 comments on commit 09e9b03

Please sign in to comment.