|
所在平台: Udemy |
课程主页: https://www.udemy.com/course/create-an-api-with-python-django-mysql-rest-framework/
课程评论:没有评论
课程名称:使用Python Django MySQL REST框架创建API 课程概述:API(应用程序编程接口)是一种软件中介,允许两个应用程序相互通信。换句话说,API是传递请求给提供者,并将响应返回给用户的信使。在构建API时,我们希望模型能够实现四种基本功能:创建、读取、更新和删除资源。本课程将教你如何使用以下技术构建API:Python、Django、Django REST框架和MySQL(mysqlclient适配器和django-cors-headers)。 您将学习到的内容: - 如何创建和激活虚拟环境 - 如何安装Django - 如何安装Django REST框架 - 如何创建新的Django项目 - 如何创建新的Django应用 - 如何在Django中注册应用 - 如何使用Django设置MySQL数据库 - 如何创建和运行迁移 - 如何创建Django模型 - 如何定义数据模型并迁移到MySQL - 如何创建并应用新的迁移 - 如何创建序列化类 - 如何创建视图 - 如何将视图映射到URL - 如何创建模型对象 - 如何使用CRUD操作测试API - 如何使用Django REST框架处理HTTP请求 - 如何使用Postman与API交互创建CRUD操作 本课程旨在帮助学员掌握使用Python和Django创建功能全面的RESTful 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 MySQLmysqlclient 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