3.63 out of 5
3.63
8 reviews on Udemy

Yii2 Complete Restful API guide

Learn how to build professional RESTful APIs with Yii2, PHP, and Postman as a client
Instructor:
Femi Ibiwoye
38 students enrolled
English
Build stateful and stateless API
Build web services with Yii2
Work with JSON data

This course will teach you how to Build and design your own web project with Yii2 framework, to consume services and APIs online.

In this course, you will learn the step-by-step processes to get started with API development with Yii2 for general consumption. You will learn how to use HTTP protocol to consume the resources your web services is meant to provide.

Are you a frontend developer, do you have a mobile product idea, do you want to create your own startup or you just want to build a technology but you need an API? This is course for you.

What are you going to learn?

  • Understand API and how it works better

  • Learn, what is HTTP and how it works

  • You will learn how to use postman to test API

  • How to properly install Yii2 framework

  • How to correctly structure your API project

  • You will understand how and when Gii comes to play

  • How to properly configure your response for consumption

  • How to send request to API and how to consume it

  • How to authenticate access to your API using different options

  • How to version your API if your update is not backward compatible

  • And many more.

Don’t wait, and enroll today to take another step toward web services mastery!

Looking forward to having you in my course!

Introduction

1
Introduction
2
What is API
3
What makes a good API
4
What is Rest API
5
Summary

Setting up tools to develop restful API with Yii2

1
Setting up your local server - XAMPP
2
Setting up your composer
3
Setting up your IDE
4
Setting up postman

Setting up framework to local server

1
Download compressed yii2 framework
2
Install yii2 using composer
3
Accessing yii2 framework from local server

Understand yii2 architecture and file structures

1
Introduction to MVC
2
Understand yii2 structure
3
Controller
4
View
5
Model

Folders and router Restructuring

1
Enabling pretty URL
2
Setup .htaccess to enable proper routing

API Folders and Structures

1
Introduction and Creating basic API folders
2
Creating your API default files
3
Pointing your api to vendor and configuring your aliases
4
API Config file
5
Creating API module or version using Gii
6
Folders restructure to have two main directories
7
Removing web from browser address using .htccess
8
Setting project baseUrl

Routing with parameters

1
Customising original URL
2
Retrieving parameters from URL
3
Remove parameter title from URL
4
Restricting the data type

Input and Response Formatting

1
Disable Csrf validation
2
Enabling JSON input
3
Posting and retrieving json input
4
Modify response

Database

1
Creating database and connect app to database
2
Creating tables

Gii

1
Generating models
2
Generating controller
3
Moving generated files to API
4
Correcting namespaces

Working with controller - CRUD

1
Introduction
2
Create
3
Validating submission
4
Index - All
5
Read
6
Model scenario for input validation
7
Update
8
Assigned field comparison
9
Delete
10
Populate table using faker
11
Data pagination
12
More to pagination

ActiveController

1
Understanding Controller and ActiveController
2
HTTP Methods
3
Requests rules
4
Create
5
Index - All
6
Read
7
Update
8
Patch
9
Delete
10
Extending/Overriding actions

Behaviours

1
Introduction
2
Content negotiator
3
Negotiating actions response
4
Verb filter
5
CORS

Authentication

1
Introduction
2
Connect model to database
3
Setting active and inactive status rules
4
Find user identify by ID or token
5
Find by identity username or email
6
Merge identity search
7
Password and Authentication key
8
Get primary key and authentication key
9
Validate authentication key and password
10
Creating Signup model
11
Setting up rules
12
Signup function
13
Signing up
14
Login - Http Basic Auth
15
Understand stateful or stateless API
16
Go stateless
17
Login - Token setup
18
Token Bearer Auth
You can view and review the lecture materials indefinitely, like an on-demand channel.
Definitely! If you have an internet connection, courses on Udemy are available on any device at any time. If you don't have an internet connection, some instructors also let their students download course lectures. That's up to the instructor though, so make sure you get on their good side!
3.6
3.6 out of 5
8 Ratings

Detailed Rating

Stars 5
4
Stars 4
1
Stars 3
1
Stars 2
0
Stars 1
2
53ec963fa5e3b0c64fdd1902e88f1c68
30-Day Money-Back Guarantee

Includes

5 hours on-demand video
Full lifetime access
Access on mobile and TV
Certificate of Completion