Create a REST API using basic PHP with Token Authentication

  • Course provided by Udemy
  • Study type: Online
  • Starts: Anytime
  • Price: See latest price on Udemy
Udemy

Course Description

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 - APRIL 2020 - 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 - JULY 2020 - 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.

Who this course is for:

  • PHP developers who would like to build Web Service APIs using only core PHP (no frameworks)
  • PHP developers interested in adding Token Based Authentication to their APIs
  • PHP developers interested in how you upload files using APIs

Instructor

Mobile systems developer and all round full stack engineer
  • 4.3 Instructor Rating
  • 471 Reviews
  • 2,316 Students
  • 1 Course

I have been programming for over 13 years using PHP, SWIFT, HTML, CSS and Javascript and have all round experience of Web Systems and system architecture.

Programming is not just part of my job but it is a hobby too, and I am interested in the full stack, from the infrastructure, to the security, to the user experience.

Expected Outcomes

  1. How to build a REST web services (API) with plain PHP (no frameworks required) What Token Based Authentication is and why it is better than Basic Authentication Fundamental Principles of REST API Testing using Postman App How to upload and delete files using a REST API Curated for the Udemy Business collection Course content 13 sections • 45 lectures • 16h 49m total length Expand all sections Introduction 3 lectures • 4min Introduction Preview 01:35 Course Contents Preview 02:19 Project Scenario Preview 00:28 REST 1 lecture • 8min What is REST? 08:19 Set up 1 lecture • 6min Software Set Up 06:09 API Requirements 2 lectures • 6min Tasks API Requirements 03:34 Authentication API Requirements 02:23 Demo 1 lecture • 24min Demo of Completed API - What we are going to build 24:13 Tasks API Set Up 5 lectures • 1hr 52min Tasks Database and Tasks Table Creation 12:33 Set Up API Folder Structure 04:35 Create the Response Model 38:58 Set Up the Database Connection 22:52 Create the Task Model 32:55 Tasks API Endpoint Implementation 7 lectures • 3hr 56min GET - Get a Single Task 44:41 DELETE - Delete a Single Task 09:27 GET - Get All Complete and Incomplete Tasks 22:22 GET - Get All Tasks 17:47 GET - Get All Tasks - With Pagination 37:02 POST - Create a Task 49:19 PATCH - Update a Task 55:22 Mid Course Review 1 lecture • 1min Review What We Have Done So Far 01:18 Token Based Authentication 7 lectures • 3hr 47min Introduction to Token Based Authentication 11:22 Users Table Creation Preview 05:35 POST - Create a User (Sign up user API) 43:00 Sessions Table Creation 07:41 POST - Create a Session (Log user in API) 01:22:23 DELETE - Delete a Session (Log user out API) 25:25 PATCH - Refresh a Session (Get new access token API) 51:20 Refactor Tasks API to Include Authentication 2 lectures • 51min Update Tasks Table - Add User Assignment 04:07 Add Authentication to Tasks API 47:17 3 more sections Requirements Fundamentals of PHP (including Object Oriented Programming concepts) Fundamentals of Basic SQL Queries Fundamentals of MySQL Database Fundamentals of JSON (basic structure) Description 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 - APRIL 2020 - 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 - JULY 2020 - 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. Who this course is for: PHP developers who would like to build Web Service APIs using only core PHP (no frameworks) PHP developers interested in adding Token Based Authentication to their APIs PHP developers interested in how you upload files using APIs Show more Show less Featured review Tim Lui 28 courses 5 reviews Rating: 5.0 out of 5 7 months ago This is a great course to learn the implementation of RESTful principles in a real world project. The content structure is clear and above all the course leaves you with a great template and basic understanding of REST APIs for your own projects. Show more Show less Instructor Michael Spinks Mobile systems developer and all round full stack engineer 4.3 Instructor Rating 471 Reviews 2,316 Students 1 Course I have been programming for over 13 years using PHP, SWIFT, HTML, CSS and Javascript and have all round experience of Web Systems and system architecture. Programming is not just part of my job but it is a hobby too, and I am interested in the full stack, from the infrastructure, to the security, to the user experience. Show more Show less Udemy Business Teach on Udemy Get the app About us Contact us Careers Blog Help and Support Affiliate Impressum Kontakt Terms Privacy policy Cookie settings Sitemap © 2021 Udemy, Inc. window.handleCSSToggleButtonClick = function (event) { var target = event.currentTarget; var cssToggleId = target && target.dataset && target.dataset.cssToggleId; var input = cssToggleId && document.getElementById(cssToggleId); if (input) { if (input.dataset.type === 'checkbox') { input.dataset.checked = input.dataset.checked ? '' : 'checked'; } else { input.dataset.checked = input.dataset.allowToggle && input.dataset.checked ? '' : 'checked'; var radios = document.querySelectorAll('[name="' + input.dataset.name + '"]'); for (var i = 0; i (function(){window['__CF$cv$params']={r:'6777965f894c4238',m:'ce3584ea8c3772ae41494533778b90541cfb98ef-1627742485-1800-AbSfcTxjwE6qeyUdlu+c7p6zfZxpts4ij/oO0LkZPygrSdvWHSCf+yV8cq68S8CEcJ5/fY8DUh148jRhZwSva5ZGgGcdyz1CV2zDl/fYbq9GARYv5aIhNx/HzpcbYnaTYAnK78ueO5OlIpZRuVeQuSUJQgijGnlTG6imVxz8Un8eBvaPVZVa10VhlOTMYeEPEt4nsU+RCzzz4iomemmHbjM=',s:[0x8bd643b39c,0xf084f7124a],}})();
  2. What Token Based Authentication is and why it is better than Basic Authentication Fundamental Principles of REST API Testing using Postman App How to upload and delete files using a REST API Curated for the Udemy Business collection Course content 13 sections • 45 lectures • 16h 49m total length Expand all sections Introduction 3 lectures • 4min Introduction Preview 01:35 Course Contents Preview 02:19 Project Scenario Preview 00:28 REST 1 lecture • 8min What is REST? 08:19 Set up 1 lecture • 6min Software Set Up 06:09 API Requirements 2 lectures • 6min Tasks API Requirements 03:34 Authentication API Requirements 02:23 Demo 1 lecture • 24min Demo of Completed API - What we are going to build 24:13 Tasks API Set Up 5 lectures • 1hr 52min Tasks Database and Tasks Table Creation 12:33 Set Up API Folder Structure 04:35 Create the Response Model 38:58 Set Up the Database Connection 22:52 Create the Task Model 32:55 Tasks API Endpoint Implementation 7 lectures • 3hr 56min GET - Get a Single Task 44:41 DELETE - Delete a Single Task 09:27 GET - Get All Complete and Incomplete Tasks 22:22 GET - Get All Tasks 17:47 GET - Get All Tasks - With Pagination 37:02 POST - Create a Task 49:19 PATCH - Update a Task 55:22 Mid Course Review 1 lecture • 1min Review What We Have Done So Far 01:18 Token Based Authentication 7 lectures • 3hr 47min Introduction to Token Based Authentication 11:22 Users Table Creation Preview 05:35 POST - Create a User (Sign up user API) 43:00 Sessions Table Creation 07:41 POST - Create a Session (Log user in API) 01:22:23 DELETE - Delete a Session (Log user out API) 25:25 PATCH - Refresh a Session (Get new access token API) 51:20 Refactor Tasks API to Include Authentication 2 lectures • 51min Update Tasks Table - Add User Assignment 04:07 Add Authentication to Tasks API 47:17 3 more sections Requirements Fundamentals of PHP (including Object Oriented Programming concepts) Fundamentals of Basic SQL Queries Fundamentals of MySQL Database Fundamentals of JSON (basic structure) Description 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 - APRIL 2020 - 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 - JULY 2020 - 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. Who this course is for: PHP developers who would like to build Web Service APIs using only core PHP (no frameworks) PHP developers interested in adding Token Based Authentication to their APIs PHP developers interested in how you upload files using APIs Show more Show less Featured review Tim Lui 28 courses 5 reviews Rating: 5.0 out of 5 7 months ago This is a great course to learn the implementation of RESTful principles in a real world project. The content structure is clear and above all the course leaves you with a great template and basic understanding of REST APIs for your own projects. Show more Show less Instructor Michael Spinks Mobile systems developer and all round full stack engineer 4.3 Instructor Rating 471 Reviews 2,316 Students 1 Course I have been programming for over 13 years using PHP, SWIFT, HTML, CSS and Javascript and have all round experience of Web Systems and system architecture. Programming is not just part of my job but it is a hobby too, and I am interested in the full stack, from the infrastructure, to the security, to the user experience. Show more Show less Udemy Business Teach on Udemy Get the app About us Contact us Careers Blog Help and Support Affiliate Impressum Kontakt Terms Privacy policy Cookie settings Sitemap © 2021 Udemy, Inc. window.handleCSSToggleButtonClick = function (event) { var target = event.currentTarget; var cssToggleId = target && target.dataset && target.dataset.cssToggleId; var input = cssToggleId && document.getElementById(cssToggleId); if (input) { if (input.dataset.type === 'checkbox') { input.dataset.checked = input.dataset.checked ? '' : 'checked'; } else { input.dataset.checked = input.dataset.allowToggle && input.dataset.checked ? '' : 'checked'; var radios = document.querySelectorAll('[name="' + input.dataset.name + '"]'); for (var i = 0; i (function(){window['__CF$cv$params']={r:'6777965f894c4238',m:'ce3584ea8c3772ae41494533778b90541cfb98ef-1627742485-1800-AbSfcTxjwE6qeyUdlu+c7p6zfZxpts4ij/oO0LkZPygrSdvWHSCf+yV8cq68S8CEcJ5/fY8DUh148jRhZwSva5ZGgGcdyz1CV2zDl/fYbq9GARYv5aIhNx/HzpcbYnaTYAnK78ueO5OlIpZRuVeQuSUJQgijGnlTG6imVxz8Un8eBvaPVZVa10VhlOTMYeEPEt4nsU+RCzzz4iomemmHbjM=',s:[0x8bd643b39c,0xf084f7124a],}})();
  3. Fundamental Principles of REST API Testing using Postman App How to upload and delete files using a REST API Curated for the Udemy Business collection Course content 13 sections • 45 lectures • 16h 49m total length Expand all sections Introduction 3 lectures • 4min Introduction Preview 01:35 Course Contents Preview 02:19 Project Scenario Preview 00:28 REST 1 lecture • 8min What is REST? 08:19 Set up 1 lecture • 6min Software Set Up 06:09 API Requirements 2 lectures • 6min Tasks API Requirements 03:34 Authentication API Requirements 02:23 Demo 1 lecture • 24min Demo of Completed API - What we are going to build 24:13 Tasks API Set Up 5 lectures • 1hr 52min Tasks Database and Tasks Table Creation 12:33 Set Up API Folder Structure 04:35 Create the Response Model 38:58 Set Up the Database Connection 22:52 Create the Task Model 32:55 Tasks API Endpoint Implementation 7 lectures • 3hr 56min GET - Get a Single Task 44:41 DELETE - Delete a Single Task 09:27 GET - Get All Complete and Incomplete Tasks 22:22 GET - Get All Tasks 17:47 GET - Get All Tasks - With Pagination 37:02 POST - Create a Task 49:19 PATCH - Update a Task 55:22 Mid Course Review 1 lecture • 1min Review What We Have Done So Far 01:18 Token Based Authentication 7 lectures • 3hr 47min Introduction to Token Based Authentication 11:22 Users Table Creation Preview 05:35 POST - Create a User (Sign up user API) 43:00 Sessions Table Creation 07:41 POST - Create a Session (Log user in API) 01:22:23 DELETE - Delete a Session (Log user out API) 25:25 PATCH - Refresh a Session (Get new access token API) 51:20 Refactor Tasks API to Include Authentication 2 lectures • 51min Update Tasks Table - Add User Assignment 04:07 Add Authentication to Tasks API 47:17 3 more sections Requirements Fundamentals of PHP (including Object Oriented Programming concepts) Fundamentals of Basic SQL Queries Fundamentals of MySQL Database Fundamentals of JSON (basic structure) Description 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 - APRIL 2020 - 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 - JULY 2020 - 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. Who this course is for: PHP developers who would like to build Web Service APIs using only core PHP (no frameworks) PHP developers interested in adding Token Based Authentication to their APIs PHP developers interested in how you upload files using APIs Show more Show less Featured review Tim Lui 28 courses 5 reviews Rating: 5.0 out of 5 7 months ago This is a great course to learn the implementation of RESTful principles in a real world project. The content structure is clear and above all the course leaves you with a great template and basic understanding of REST APIs for your own projects. Show more Show less Instructor Michael Spinks Mobile systems developer and all round full stack engineer 4.3 Instructor Rating 471 Reviews 2,316 Students 1 Course I have been programming for over 13 years using PHP, SWIFT, HTML, CSS and Javascript and have all round experience of Web Systems and system architecture. Programming is not just part of my job but it is a hobby too, and I am interested in the full stack, from the infrastructure, to the security, to the user experience. Show more Show less Udemy Business Teach on Udemy Get the app About us Contact us Careers Blog Help and Support Affiliate Impressum Kontakt Terms Privacy policy Cookie settings Sitemap © 2021 Udemy, Inc. window.handleCSSToggleButtonClick = function (event) { var target = event.currentTarget; var cssToggleId = target && target.dataset && target.dataset.cssToggleId; var input = cssToggleId && document.getElementById(cssToggleId); if (input) { if (input.dataset.type === 'checkbox') { input.dataset.checked = input.dataset.checked ? '' : 'checked'; } else { input.dataset.checked = input.dataset.allowToggle && input.dataset.checked ? '' : 'checked'; var radios = document.querySelectorAll('[name="' + input.dataset.name + '"]'); for (var i = 0; i (function(){window['__CF$cv$params']={r:'6777965f894c4238',m:'ce3584ea8c3772ae41494533778b90541cfb98ef-1627742485-1800-AbSfcTxjwE6qeyUdlu+c7p6zfZxpts4ij/oO0LkZPygrSdvWHSCf+yV8cq68S8CEcJ5/fY8DUh148jRhZwSva5ZGgGcdyz1CV2zDl/fYbq9GARYv5aIhNx/HzpcbYnaTYAnK78ueO5OlIpZRuVeQuSUJQgijGnlTG6imVxz8Un8eBvaPVZVa10VhlOTMYeEPEt4nsU+RCzzz4iomemmHbjM=',s:[0x8bd643b39c,0xf084f7124a],}})();
  4. API Testing using Postman App How to upload and delete files using a REST API Curated for the Udemy Business collection Course content 13 sections • 45 lectures • 16h 49m total length Expand all sections Introduction 3 lectures • 4min Introduction Preview 01:35 Course Contents Preview 02:19 Project Scenario Preview 00:28 REST 1 lecture • 8min What is REST? 08:19 Set up 1 lecture • 6min Software Set Up 06:09 API Requirements 2 lectures • 6min Tasks API Requirements 03:34 Authentication API Requirements 02:23 Demo 1 lecture • 24min Demo of Completed API - What we are going to build 24:13 Tasks API Set Up 5 lectures • 1hr 52min Tasks Database and Tasks Table Creation 12:33 Set Up API Folder Structure 04:35 Create the Response Model 38:58 Set Up the Database Connection 22:52 Create the Task Model 32:55 Tasks API Endpoint Implementation 7 lectures • 3hr 56min GET - Get a Single Task 44:41 DELETE - Delete a Single Task 09:27 GET - Get All Complete and Incomplete Tasks 22:22 GET - Get All Tasks 17:47 GET - Get All Tasks - With Pagination 37:02 POST - Create a Task 49:19 PATCH - Update a Task 55:22 Mid Course Review 1 lecture • 1min Review What We Have Done So Far 01:18 Token Based Authentication 7 lectures • 3hr 47min Introduction to Token Based Authentication 11:22 Users Table Creation Preview 05:35 POST - Create a User (Sign up user API) 43:00 Sessions Table Creation 07:41 POST - Create a Session (Log user in API) 01:22:23 DELETE - Delete a Session (Log user out API) 25:25 PATCH - Refresh a Session (Get new access token API) 51:20 Refactor Tasks API to Include Authentication 2 lectures • 51min Update Tasks Table - Add User Assignment 04:07 Add Authentication to Tasks API 47:17 3 more sections Requirements Fundamentals of PHP (including Object Oriented Programming concepts) Fundamentals of Basic SQL Queries Fundamentals of MySQL Database Fundamentals of JSON (basic structure) Description 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 - APRIL 2020 - 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 - JULY 2020 - 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. Who this course is for: PHP developers who would like to build Web Service APIs using only core PHP (no frameworks) PHP developers interested in adding Token Based Authentication to their APIs PHP developers interested in how you upload files using APIs Show more Show less Featured review Tim Lui 28 courses 5 reviews Rating: 5.0 out of 5 7 months ago This is a great course to learn the implementation of RESTful principles in a real world project. The content structure is clear and above all the course leaves you with a great template and basic understanding of REST APIs for your own projects. Show more Show less Instructor Michael Spinks Mobile systems developer and all round full stack engineer 4.3 Instructor Rating 471 Reviews 2,316 Students 1 Course I have been programming for over 13 years using PHP, SWIFT, HTML, CSS and Javascript and have all round experience of Web Systems and system architecture. Programming is not just part of my job but it is a hobby too, and I am interested in the full stack, from the infrastructure, to the security, to the user experience. Show more Show less Udemy Business Teach on Udemy Get the app About us Contact us Careers Blog Help and Support Affiliate Impressum Kontakt Terms Privacy policy Cookie settings Sitemap © 2021 Udemy, Inc. window.handleCSSToggleButtonClick = function (event) { var target = event.currentTarget; var cssToggleId = target && target.dataset && target.dataset.cssToggleId; var input = cssToggleId && document.getElementById(cssToggleId); if (input) { if (input.dataset.type === 'checkbox') { input.dataset.checked = input.dataset.checked ? '' : 'checked'; } else { input.dataset.checked = input.dataset.allowToggle && input.dataset.checked ? '' : 'checked'; var radios = document.querySelectorAll('[name="' + input.dataset.name + '"]'); for (var i = 0; i (function(){window['__CF$cv$params']={r:'6777965f894c4238',m:'ce3584ea8c3772ae41494533778b90541cfb98ef-1627742485-1800-AbSfcTxjwE6qeyUdlu+c7p6zfZxpts4ij/oO0LkZPygrSdvWHSCf+yV8cq68S8CEcJ5/fY8DUh148jRhZwSva5ZGgGcdyz1CV2zDl/fYbq9GARYv5aIhNx/HzpcbYnaTYAnK78ueO5OlIpZRuVeQuSUJQgijGnlTG6imVxz8Un8eBvaPVZVa10VhlOTMYeEPEt4nsU+RCzzz4iomemmHbjM=',s:[0x8bd643b39c,0xf084f7124a],}})();
  5. How to upload and delete files using a REST API Curated for the Udemy Business collection Course content 13 sections • 45 lectures • 16h 49m total length Expand all sections Introduction 3 lectures • 4min Introduction Preview 01:35 Course Contents Preview 02:19 Project Scenario Preview 00:28 REST 1 lecture • 8min What is REST? 08:19 Set up 1 lecture • 6min Software Set Up 06:09 API Requirements 2 lectures • 6min Tasks API Requirements 03:34 Authentication API Requirements 02:23 Demo 1 lecture • 24min Demo of Completed API - What we are going to build 24:13 Tasks API Set Up 5 lectures • 1hr 52min Tasks Database and Tasks Table Creation 12:33 Set Up API Folder Structure 04:35 Create the Response Model 38:58 Set Up the Database Connection 22:52 Create the Task Model 32:55 Tasks API Endpoint Implementation 7 lectures • 3hr 56min GET - Get a Single Task 44:41 DELETE - Delete a Single Task 09:27 GET - Get All Complete and Incomplete Tasks 22:22 GET - Get All Tasks 17:47 GET - Get All Tasks - With Pagination 37:02 POST - Create a Task 49:19 PATCH - Update a Task 55:22 Mid Course Review 1 lecture • 1min Review What We Have Done So Far 01:18 Token Based Authentication 7 lectures • 3hr 47min Introduction to Token Based Authentication 11:22 Users Table Creation Preview 05:35 POST - Create a User (Sign up user API) 43:00 Sessions Table Creation 07:41 POST - Create a Session (Log user in API) 01:22:23 DELETE - Delete a Session (Log user out API) 25:25 PATCH - Refresh a Session (Get new access token API) 51:20 Refactor Tasks API to Include Authentication 2 lectures • 51min Update Tasks Table - Add User Assignment 04:07 Add Authentication to Tasks API 47:17 3 more sections Requirements Fundamentals of PHP (including Object Oriented Programming concepts) Fundamentals of Basic SQL Queries Fundamentals of MySQL Database Fundamentals of JSON (basic structure) Description 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 - APRIL 2020 - 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 - JULY 2020 - 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. Who this course is for: PHP developers who would like to build Web Service APIs using only core PHP (no frameworks) PHP developers interested in adding Token Based Authentication to their APIs PHP developers interested in how you upload files using APIs Show more Show less Featured review Tim Lui 28 courses 5 reviews Rating: 5.0 out of 5 7 months ago This is a great course to learn the implementation of RESTful principles in a real world project. The content structure is clear and above all the course leaves you with a great template and basic understanding of REST APIs for your own projects. Show more Show less Instructor Michael Spinks Mobile systems developer and all round full stack engineer 4.3 Instructor Rating 471 Reviews 2,316 Students 1 Course I have been programming for over 13 years using PHP, SWIFT, HTML, CSS and Javascript and have all round experience of Web Systems and system architecture. Programming is not just part of my job but it is a hobby too, and I am interested in the full stack, from the infrastructure, to the security, to the user experience. Show more Show less Udemy Business Teach on Udemy Get the app About us Contact us Careers Blog Help and Support Affiliate Impressum Kontakt Terms Privacy policy Cookie settings Sitemap © 2021 Udemy, Inc. window.handleCSSToggleButtonClick = function (event) { var target = event.currentTarget; var cssToggleId = target && target.dataset && target.dataset.cssToggleId; var input = cssToggleId && document.getElementById(cssToggleId); if (input) { if (input.dataset.type === 'checkbox') { input.dataset.checked = input.dataset.checked ? '' : 'checked'; } else { input.dataset.checked = input.dataset.allowToggle && input.dataset.checked ? '' : 'checked'; var radios = document.querySelectorAll('[name="' + input.dataset.name + '"]'); for (var i = 0; i (function(){window['__CF$cv$params']={r:'6777965f894c4238',m:'ce3584ea8c3772ae41494533778b90541cfb98ef-1627742485-1800-AbSfcTxjwE6qeyUdlu+c7p6zfZxpts4ij/oO0LkZPygrSdvWHSCf+yV8cq68S8CEcJ5/fY8DUh148jRhZwSva5ZGgGcdyz1CV2zDl/fYbq9GARYv5aIhNx/HzpcbYnaTYAnK78ueO5OlIpZRuVeQuSUJQgijGnlTG6imVxz8Un8eBvaPVZVa10VhlOTMYeEPEt4nsU+RCzzz4iomemmHbjM=',s:[0x8bd643b39c,0xf084f7124a],}})();