Appearance
Blob API documentation
Login
POST /api/auth/login
Params
| Name | Type | Description |
|---|---|---|
| username | string | |
| password | string |
Example
js
fetch("http://localhost:4000/api/auth/login", {
"credentials": "include",
"headers": {
"content-type": "application/json",
},
"body": "{\"username\":\"admin\",\"password\":\"admin\"}",
"method": "POST",
});Delete a Blob (and related filters)
DELETE /api/blob/[id]
AUTH NEEDED
Params
| Name | Type | Description |
|---|---|---|
| id | number | blob id |
Create a new Blob
POST /api/blob
AUTH NEEDED
Params
| Name | Type | Description |
|---|---|---|
| name | string | blob name |
| description | string | do we have a description? |
Example
js
fetch('/api/blob', { method: 'POST', body: { name: 'A new blob' }})Delete a source
DELETE /api/source/[id]
AUTH NEEDED
Params
| Name | Type | Description |
|---|---|---|
| id | number | source id |
Add a new source
POST /api/source
Params
| Name | Type | Description |
|---|---|---|
| URL | string |
Returns an OPML with all sources
GET /api/source/opml
parse uploaded OPML adding each feed founded as a Source
POST /api/source/uploadOPML
Upload an default image for this source
POST /api/source/uploadImage/[id]