Skip to content

Latest commit

 

History

History
35 lines (21 loc) · 851 Bytes

README.md

File metadata and controls

35 lines (21 loc) · 851 Bytes

SocialNetwork

Social network API

Development

To install pre-commit hook.

pre-commit install

Run project with docker-compose

docker compose -f compose.yml -f compose.local.yml build
docker compose -f compose.yml -f compose.local.yml up
docker compose -f compose.yml -f compose.local.yml run social-network-app python3 manage.py migrate

Access via browser to API docs

  1. /api/schema/swagger-ui/
  2. /api/schema/redoc/

It's also exported to Postman Collection

Nuances

API endpoints works for authenticated users apart from Login and Registration.

Authentication happened via JWT token.

JWT token possible to obtain via Registration or Login endpoints.