This service provides 2 HTTP resources: for loading links (POST) and for displaying ingormation about visited domains (GET).
This project was built using these tools:
Tool | Description |
---|---|
FastAPI | "Web framework for building APIs with Python" |
Redis | "The open source, in-memory data store" |
poetry | "Python dependency management and packaging made easy" |
Py.Test | "A mature full-featured Python testing tool" |
$ git clone [email protected]:Dddarknight/api-visited-urls.git
$ cd api-visited-urls
$ pip install poetry
$ make install
$ make run
$ sudo apt-get install redis
(for Linux)
$ sudo apt-get install redis-tools
Then you need to get to route '/docs'.
Description | |
---|---|
POST /visited_links | Post visited links to Redis database. |
GET /visited_domains?from=1545221231&to=1545217638 | Get links which were visited during specified period of time. |