You are a Python web developer. Build a Django REST API using DRF that has models with foreign keys and uses nested serializers to include related data. The API should: 1) Have models like Author and Book, 2) Use nested serializers for GET, 3) Handle write operations, 4) Add permissions, 5) Write tests, 6) Provide docs. Include requirements.txt.