Create a REST API using basic PHP with Token Authentication

所在平台: Udemy

课程主页: https://www.udemy.com/course/create-a-rest-api-using-basic-php-with-token-authentication/

课程评论:没有评论

第一个写评论        关注课程

课程简介

课程名称:使用基础 PHP 创建带有令牌身份验证的 REST API 课程概述:在本课程中,我将向您展示如何使用 PHP 创建 RESTful Web 服务,无需第三方框架或付费软件。我们将涵盖 REST 的基本概念,并使用纯 PHP 实现这些基本功能。课程结束时,您将能够创建一个基本的 RESTful Web 服务,供他人使用。课程将基于一个给定的场景,旨在实现一个可以记录任务列表的 Web 服务,基本上是一个待办事项列表。我们将逐步实现每个需求,然后添加一个功能,使该 API 成为多用户服务,以便每个用户都可以安全地拥有自己的任务列表。 为此,我们将实现一种名为基于令牌的身份验证的身份验证概念,并在课程中进一步探讨。基于令牌的身份验证比基本的密码身份验证更安全,目前已成为行业最佳实践。我们将从基础开始,逐步构建,您只需掌握 PHP 的基本知识,例如变量、条件语句、循环、数组以及一些基本的面向对象编程概念,就能顺利完成课程。 我们还将使用 MySQL 数据库来存储任务,并在过程中构建和修改数据库。您不需要精通 MySQL,只需了解基本概念,如基本的选择、更新、删除 SQL 语句,以及主键和外键等概念。 额外内容:课程还新增了补充部分 - CORS(跨域资源共享),允许您调整 API 在与前端应用程序不同的域或子域上运行。另一个补充部分是教您如何上传图像/文件与任务关联,我们将逐步介绍需要对 API 进行的更改,以允许将图像上传到任务,并能够关联图像属性,如标题和文件名,以及下载和删除图像的功能。

课程评论(0条)

课程详情

In this course I will be showing you how to create RESTful web services with PHP, no third party frameworks or paid software is needed.We will be covering the basics of what REST is and how to implement the basics using pure vanilla PHP, at the end of this course you should be able to create a basic RESTful web service that you can allow other people to use.The course will follow a scenario that we have been given and that is to implement a web service which can record a list of tasks, basically a to-do list. We will be implementing each requirement one at a time and then we will add on the ability for this API to become a multi user service. So each user can securely have their own task list. To do this we will be implementing an authentication concept called Token based authentication and we will be exploring this further within the course, Token based authentication is a lot more secure than just basic password authentication and is now a best practice among the industry.We will be starting at the beginning and building as we go, as long as you know the basics of PHP, such as variables, if statements, loops, arrays and some basic object orientated programming concepts you should be able to follow this course to the end. We will also be using MySQL for the database to store the tasks and we will be building and changing the database as we go, and again you don't need to be an expert on MySQL but just need to know the fundamentals such as basic select, update, delete SQL statements and concepts such as primary keys and foreign keys.BONUS SECTION ADDED - for CORS (Cross-Origin Resource Sharing) which will allow you to adjust this API to run on a different domain/subdomain than your front end application.BONUS SECTION ADDED - for teaching you how to upload images/files against a task, we will go through the changes we need to make to the API to allow uploading of images to a task. We will then allow you to associate image attributes such as title and filename against the image as well as being able to download the image and delete the image.

课程标签

0人关注该课程

主题相关的课程