Various useful APIs

Various useful APIs for api2app.ru.

screenshot #1 screenshot #2

  • API for monitoring changes in prices for products.
  • Logging - testing webhooks.
  • Downloading videos from YouTube (pytube).
  • Microsoft Text-to-Speech (edge-tts)
  • Password generator

Create superuser:

python manage.py createsuperuser

Migrations:

python manage.py makemigrations
python manage.py migrate

Copy all files from static folders into the STATIC_ROOT directory:

python manage.py collectstatic

Generate API schema:

python manage.py spectacular --color --file schema.yml

API schema URLs:

/api/schema/swagger-ui/
/api/schema/redoc/

Deploy:

sudo nano /etc/systemd/system/price-monitoring.service
sudo nano /etc/systemd/system/price-monitoring.socket

Enable and start the socket (it will autostart at boot too):

sudo systemctl start price-monitoring.socket
sudo systemctl enable price-monitoring.socket