|
所在平台: Udemy |
课程主页: https://www.udemy.com/course/build-a-rest-api-with-mariadb-python-django/
课程评论:没有评论
课程名称:使用MariaDB、Python和Django构建REST API 课程概述:API(应用程序编程接口)是一个软件中介,允许两个应用程序相互通信。换句话说,API是传递您请求的信使,并将响应返回给您。在构建API时,我们希望模型提供四种基本功能:创建(Create)、读取(Read)、更新(Update)和删除(Delete)资源。本课程将使用以下技术构建API:Python、Django、Django Rest Framework、MariaDB、mysqlclient适配器和django-cors-headers。 课程内容:您将学习以下内容: - 如何创建和激活虚拟环境 - 如何安装Django - 如何安装Django REST框架 - 如何创建新的Django项目 - 如何创建新的Django应用 - 如何在Django中注册应用程序 - 如何在Django中设置MySQL数据库 - 如何创建并运行迁移 - 如何创建Django模型 - 如何定义数据模型并迁移到MySQL - 如何创建并应用新的迁移 - 如何创建序列化类 - 如何创建视图 - 如何将视图映射到URL - 如何创建模型对象 - 如何测试API的CRUD操作 - 如何使用Django REST框架处理HTTP请求 - 如何使用Postman创建与API交互的CRUD操作 通过本课程,您将全面掌握如何构建和管理REST API的基础知识和实际操作技能。
API stands for Application Programming Interface.An API is a software intermediary that allows two applications to talk to each other. In other words, an API is the messenger that delivers your request to the provider that you're requesting it from and then delivers the response back to you.When we are building APIs, we want our models to provide four basic types of functionality. The model must be able to Create, Read, Update,and Delete resources. In this course, we are going to build an API using the following technology:Python Django Django Rest Framework MariaDBmysqlclient adapterdjango-cors-headers What You Will Learn:How to Create and activate a virtual environmentHow to install DjangoHow to install Django REST FrameworkHow to Create a new Django ProjectHow to Create a new Django AppHow to register applications with DjangoHow to setup MySQL Database with Django How to create and run MigrationsHow to Create a Django ModelHow to define Data Models and migrate it to MySQLHow to Create and apply a new migrationHow to Create a serializer classHow to Create viewsHow to Map views to URLsHow to Create Model ObjectsHow to test API with CRUD OperationsHow to use Django Rest Framework to process HTTP requestsHow to create CRUD operations interacting with API using Postman