Skip to content

Blob API documentation

Login

POST /api/auth/login

Params

NameTypeDescription
usernamestring
passwordstring

Example

js
fetch("http://localhost:4000/api/auth/login", {
 "credentials": "include",
  "headers": {
    "content-type": "application/json",
  },
  "body": "{\"username\":\"admin\",\"password\":\"admin\"}",
  "method": "POST",
});

DELETE /api/blob/[id]

AUTH NEEDED

Params

NameTypeDescription
idnumberblob id

Create a new Blob

POST /api/blob

AUTH NEEDED

Params

NameTypeDescription
namestringblob name
descriptionstringdo 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

NameTypeDescription
idnumbersource id

Add a new source

POST /api/source

Params

NameTypeDescription
URLstring

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]