Django for APIs: Build web APIs with Python and Django / Django для API: Создавайте веб-API с помощью Python и Django Год издания: 2022 Автор: Vincent William / Винсент Уильям Издательство: Leanpub ISBN: Нет Язык: Английский Формат: PDF, EPUB Качество: Издательский макет или текст (eBook) Интерактивное оглавление: Да Количество страниц: 200 Описание: Django for APIs is a project-based guide to building modern web APIs with Django & Django REST Framework. It is suitable for beginners who have never built an API before as well as professional programmers looking for a fast-paced introduction to Django fundamentals and best practices. Over the course of 200+ pages you'll learn how to set up a new project properly, how web APIs work under the hood, and advanced testing and deployment techniques. Three separate projects are built from scratch with progressively more advanced features including a Library API, Todo API, and Blog API. User authentication, permissions, documentation, viewsets, and routers are all covered thoroughly. Django for APIs is a best-practices guide to building powerful Python-based web APIs with a minimal amount of code. Django for APIs - это основанное на проекте руководство по созданию современных веб-API с использованием Django & Django REST Framework. Он подходит для начинающих, которые никогда раньше не создавали API, а также для профессиональных программистов, ищущих быстрое знакомство с основами Django и лучшими практиками. На более чем 200 страницах вы узнаете, как правильно настроить новый проект, как работают веб-API "под капотом", а также о передовых методах тестирования и развертывания. Три отдельных проекта создаются с нуля с постепенно расширяющимися функциями, включая библиотечный API, Todo API и Blog API. Аутентификация пользователя, разрешения, документация, наборы представлений и маршрутизаторы - все это подробно описано. Django for APIs - это руководство по созданию мощных веб-API на основе Python с минимальным объемом кода.
Примеры страниц
Оглавление
Introduction 1 Why APIs 1 Django REST Framework 2 Prerequisites 3 Why this book 3 Conclusion 4 Chapter 1: Initial Set Up 5 The Command Line 5 Shell Commands 7 Install Python 3 on Windows 10 Install Python 3 on Mac 11 Python Interactive Mode 12 Virtual Environments 13 Install Django and Django REST Framework 15 Text Editors 17 Install Git 18 Conclusion 20 Chapter 2: Web APIs 21 World Wide Web 21 URLs 22 Internet Protocol Suite 23 HTTP Verbs 24 Endpoints 24 HTTP 25 Status Codes 27 Statelessness 28 REST 28 Conclusion 29 Chapter 3: Library Website 30 Traditional Django 30 First app 33 Models 35 Admin 36 Views 39 URLs 40 Templates 41 Tests 43 Git 45 Conclusion 46 Chapter 4: Library API 47 Django REST Framework 47 URLs 49 Views 50 Serializers 51 Browsable API 52 Tests 54 Deployment 56 Static Files 58 Deployment Checklist 60 GitHub 62 Heroku 62 Conclusion 64 Chapter 5: Todo API 66 Single Page Apps (SPAs) 66 Initial Set Up 67 .gitignore 68 Models 69 Tests 72 Django REST Framework 74 URLs 75 Serializers 76 Views 78 Browsable API 79 API Tests 80 CORS 82 CSRF 84 Back-End API Deployment 84 Conclusion 89 Chapter 6: Blog API 90 Initial Set Up 90 .gitignore 92 Custom User Model 92 Posts App 97 Post Model 98 Tests 102 Django REST Framework 103 URLs 104 Serializers 106 Views 107 Browsable API 108 CORS 112 Conclusion 114 Chapter 7: Permissions 115 Project-Level Permissions 115 Create New Users 117 Add Log In and Log Out 121 View-Level Permissions 123 Custom Permissions 125 Conclusion 130 Chapter 8: User Authentication 131 Basic Authentication 131 Session Authentication 133 Token Authentication 134 Default Authentication 136 Implementing token authentication 137 Endpoints 140 dj-rest-auth 140 User Registration 146 Tokens 149 Conclusion 155 Chapter 9: Viewsets and Routers 156 User endpoints 156 Viewsets 161 Routers 162 Permissions 164 Conclusion 166 Chapter 10: Schemas and Documentation 168 Schema 169 Dynamic Schema 171 Documentation 172 Conclusion 175 Chapter 11: Production Deployment 177 Environment Variables 177 DEBUG & SECRET_KEY 179 ALLOWED HOSTS 181 DATABASES 182 Static Files 183 Pyscopg and Gunicorn 184 requirements.txt 185 Procfile and runtime.txt 186 Deployment Checklist 187 Heroku Deployment 187 Conclusion 191 Advanced Topics 191 Next Steps 192 Giving Thanks 192
Vincent William / Винсент Уильям - Django for APIs: Build web APIs with Python and Django / Django для API: Создавайте веб-API с помощью Python и Django [2022, PDF, EPUB, ENG] download torrent for free and without registration
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum