Skip to content

Servizio FastAPi che aggrega più fonti RSS

Notifications You must be signed in to change notification settings

TheSaintSimon/rss-aggregator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Avvio:

pip install -r requirements.txt python app.py

API di test:

http://127.0.0.1:8000/docs

Endpoint disponibili:

/sources

GET /sources

curl -X 'GET'
'http://127.0.0.1:8000/sources'
-H 'accept: application/json' Restituisce la lista di tutte le sorgenti RSS configurate.

POST /sources

curl -X 'POST'
'http://127.0.0.1:8000/sources?url=https%3A%2F%2Fmedium.redturtle.it%2Ffeed&name=Red%20Turtle'
-H 'accept: application/json'
-d '' Aggiunge o aggiorna il nome di una sorgente (identificata dall'URL)

DELETE /sources

curl -X 'DELETE'
'http://127.0.0.1:8000/sources?url=Red%20Turtle'
-H 'accept: application/json' Rimuove una sorgente in base al suo URL.

/items

GET /items

curl -X 'GET'
'http://127.0.0.1:8000/items?limit=20&page=0'
-H 'accept: application/json' Restituisce tutti gli elementi raccolti da TUTTE le sorgenti, ordinati per data e con possibilità di paginazione. limit -> numero di articoli per pagina (default 20) page -> numero della pagina (default 1)

GET /items/source

curl -X 'GET'
'http://127.0.0.1:8000/items/source?name=Red%20Turtle&per_source_limit=20'
-H 'accept: application/json' oppure curl -X 'GET'
'http://127.0.0.1:8000/items/source?url=https%3A%2F%2Fmedium.redturtle.it%2Ffeed&per_source_limit=20'
-H 'accept: application/json' Restituisce tutti gli elementi di una singola sorgente RSS identificata da name o URL

About

Servizio FastAPi che aggrega più fonti RSS

Topics

Resources

Stars

Watchers

Forks

Languages