|
所在平台: Udemy |
课程主页: https://www.udemy.com/course/build-an-api-with-python-django-postgresqlrest-framework/
课程评论:没有评论
课程名称:使用Python Django和PostgreSQL REST框架构建API 课程简介:API(应用程序接口)是允许两个应用程序相互通信的软件中介。简单来说,API是将请求从发送方传递到接收方的信使,并将响应返回给发送方。在构建API时,我们的模型需要提供四种基本功能:创建(Create)、读取(Read)、更新(Update)和删除(Delete)资源。本课程将使用以下技术构建一个API:Python、Django、Django REST框架、PostgreSQL、psycopg2以及django-cors-headers。 您将学习到: - 如何创建和激活虚拟环境 - 如何安装Django - 如何安装Django REST框架 - 如何创建新的Django项目 - 如何创建新的Django应用 - 如何在Django中注册应用 - 如何与Django设置PostgreSQL数据库 - 如何创建和运行迁移 - 如何创建Django模型 - 如何定义数据模型并迁移到PostgreSQL - 如何创建和应用新迁移 - 如何创建序列化类 - 如何创建视图 - 如何将视图映射到URL - 如何创建模型对象 - 如何测试API的CRUD操作 - 如何使用Django REST框架处理HTTP请求 - 如何使用Postman与API进行交互并创建CRUD操作 通过本课程的学习,您将掌握构建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 PostgreSQLpsycopg2 django-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 PostgreSQL Database with Django How to create and run MigrationsHow to Create a Django ModelHow to define Data Models and migrate it to PostgreSQLHow 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