How manohar-leo99/bookmarks-rest-api-assessment works
This repository provides a Django REST API for authenticated, per-user bookmark management, plus a Python CLI client. The main workflow is to obtain an auth token, then create, list, filter, update, or delete bookmarks; the API validates requests and persists bookmark records. It also exposes a public health check and Django admin access. The sampled source supports the API and client relationships shown; tests are excluded, and database links reflect the configured SQLite backend.
Main entry points: views.py Bookmark Endpoints · models.py Bookmark Record · urls.py Bookmark Routes · client.py Python CLI
Components 11
API Routing
- REST API
config/urls.py - Token Login
config/urls.py - Bookmark Routes
bookmarks/urls.py
Bookmark Domain
- Bookmark Endpoints
bookmarks/views.py - Health Check
bookmarks/views.py - Validation and Serialization
bookmarks/serializers.py - Bookmark Record
bookmarks/models.py - SQLite Database
config/settings.py
Client and Admin
- Python CLI
client.py - Django Admin
bookmarks/admin.py
Other components
- API User
Connections 12
- API User → Python CLI: uses
client.py - Python CLI → Token Login: requests token
client.py - Python CLI → Bookmark Endpoints: sends CRUD requests
client.py - REST API → Token Login: routes login
config/urls.py - REST API → Bookmark Routes: includes routes
config/urls.py - Bookmark Routes → Bookmark Endpoints: routes requests
bookmarks/urls.py - Bookmark Routes → Health Check: routes health
bookmarks/urls.py - Bookmark Endpoints → Validation and Serialization: serializes requests
bookmarks/views.py - Bookmark Endpoints → Bookmark Record: queries and saves
bookmarks/views.py - Validation and Serialization → Bookmark Record: validates uniqueness
bookmarks/serializers.py - Bookmark Record → SQLite Database: persists records
- Django Admin → Bookmark Record: manages records
bookmarks/admin.py