SlideShare a Scribd company logo
RESTfulAPI Basics
using Laravel 5+
/me
● John Dave Decano aka Dave
● Juwai Team
● Doing freelance since 2009
● No Formal Education on CS or IT
● Self Taught Programmer
● http://github.com/johndavedecano
● http://odesk.com/odeskfreelancer
● http://johndavedecano.me
What is restfulAPI?
● REST - Representational State Transfer
● REST is an architecture style for designing networked applications.
● In many ways, the World Wide Web itself, based on HTTP, can be viewed as a REST-
based architecture.
● RESTful API uses versioning. e.g POST /V1/todos/
● RESTful API explicitly take advantage of HTTP methodologies defined by the RFC 2616
protocol. They simply use "PUT" to change the state of or update a resource, which can be
an object, file or block; "GET" to retrieve a resource; POST" to create that resource; and
"DELETE" to remove it.
● Restful API uses HTTP Headers add information about the request and the response.
● Restful API uses HTTP Status Codes Correctly.
● Restful API is stateless.
● Restful API commonly use JSON or XML as a form of response.
● Each API request returns a subsequent API response.
What is restfulAPI?
● REST - Representational State Transfer
● REST is an architecture style for designing networked applications.
● In many ways, the World Wide Web itself, based on HTTP, can be
viewed as a REST-based architecture.
● RESTful API uses HTTP for all four CRUD
(Create/Read/Update/Delete) operations.
● Each request returns a subsequent response.
● HTTP Verbs – POST, GET, UPDATE, PUT, PATCH, DELETE
● HTTP Headers – Content-Type, Content-Length etc.
● Commonly used by Mobile Applications and Single Paged Apps.
● Commonly use JSON or XML as a form of response.
A stateless protocol does not require the server to retain information or
status about each user for the duration of multiple requests.
Requests are made up of a verb (POST, in this example), headers that describe the
message, and a body (Hello World, in this example).
The request is a message that describes what you want the server to accomplish.
Likewise, the response consists of three pieces: a status code (200), headers
describing the response and the body itself.
HTTP Verbs describe the type of operation:
GET: Retrieve a resource
POST: Create a resource
PUT: Update a resource
DELETE: Delete a resource
On the Web, the most common verb is GET. This is because the main purpose of a
Web page's function is to request different resources that make up a page. In REST-
based APIs, we leverage these verbs to describe the types of operations we want.
Hello Laravel
● Taylor Otwell
● Open Source
● Well Documented
● Active Community
● Lots of Jobs
● Easy Grasp
How about the security?
● REST api can be exposed to the public. They usually call it as Public APIs
● You can use OAUTH, HTTP Basic or JWT.
● OAuth is an open standard for authorization, commonly used as a way for Internet
users to log in to third party websites using their Google, Facebook, Microsoft,
Twitter, One Network, etc. accounts without exposing their password.
● HTTP Basic - In the context of an HTTP transaction basic access authentication is a
method for an HTTP user agent to provide a user name and password when making
a request.
● JSON Web Tokens are an open, industry standard RFC 7519 method for
representing claims securely between two parties.
TALK IS CHEAP
SHOW ME THE CODE
You will learn how to:
● Install LARAVEL
● Create URL Routes
● Create Migrations
● Create Seeder
● Create Models
● Create Controllers
● Create Requests Classes
● Create Validate Data
Questions?

More Related Content

PPTX
REST APIs in Laravel 101
PDF
RESTful API development in Laravel 4 - Christopher Pecoraro
PDF
Building Awesome APIs with Lumen
PDF
Your rest api using laravel
ODP
Javascript laravel's friend
PDF
Bootstrat REST APIs with Laravel 5
PDF
Web services with laravel
PPT
Web service with Laravel
REST APIs in Laravel 101
RESTful API development in Laravel 4 - Christopher Pecoraro
Building Awesome APIs with Lumen
Your rest api using laravel
Javascript laravel's friend
Bootstrat REST APIs with Laravel 5
Web services with laravel
Web service with Laravel

What's hot (20)

PDF
Laravel 5 Annotations: RESTful API routing
PDF
Laravel Restful API and AngularJS
PDF
ACL in CodeIgniter
ODP
Creating REST Applications with the Slim Micro-Framework by Vikram Vaswani
PDF
JSON REST API for WordPress
PDF
Web develop in flask
PDF
Getting Started-with-Laravel
PDF
Consuming RESTful services in PHP
PPTX
REST API Best Practices & Implementing in Codeigniter
PPTX
40+ tips to use Postman more efficiently
PPTX
DEVNET-1001 Coding 101: How to Call REST APIs from a REST Client and Python
PPTX
PDF
Cwinters Intro To Rest And JerREST and Jersey Introductionsey
PPTX
Designing CakePHP plugins for consuming APIs
PDF
Understanding and testing restful web services
PDF
Connecting Content Silos: One CMS, Many Sites With The WordPress REST API
PDF
Your First Scala Web Application using Play 2.1
PDF
JWT - Sécurisez vos APIs
PDF
Laravel 5 In Depth
Laravel 5 Annotations: RESTful API routing
Laravel Restful API and AngularJS
ACL in CodeIgniter
Creating REST Applications with the Slim Micro-Framework by Vikram Vaswani
JSON REST API for WordPress
Web develop in flask
Getting Started-with-Laravel
Consuming RESTful services in PHP
REST API Best Practices & Implementing in Codeigniter
40+ tips to use Postman more efficiently
DEVNET-1001 Coding 101: How to Call REST APIs from a REST Client and Python
Cwinters Intro To Rest And JerREST and Jersey Introductionsey
Designing CakePHP plugins for consuming APIs
Understanding and testing restful web services
Connecting Content Silos: One CMS, Many Sites With The WordPress REST API
Your First Scala Web Application using Play 2.1
JWT - Sécurisez vos APIs
Laravel 5 In Depth
Ad

Similar to REST API Laravel (20)

PPTX
Restful api
PDF
Building restful apis with laravel
PDF
API Basics
PPTX
Rest WebAPI with OData
PDF
What are restful web services?
PDF
Introduction to REST - REST Basics - JSON
PDF
Why Laravel is the Best Choice for Developing RESTful APIs?
PDF
Rest api titouan benoit
PDF
Restful风格ž„web服务架构
PPT
Understanding REST
PDF
Rest API Interview Questions PDF By ScholarHat
PPTX
Api crash
PPTX
Api crash
PPTX
Api crash
PPTX
Api crash
PPTX
Api crash
PPTX
Api crash
PPTX
Api crash
PPTX
Understanding APIs.pptx
Restful api
Building restful apis with laravel
API Basics
Rest WebAPI with OData
What are restful web services?
Introduction to REST - REST Basics - JSON
Why Laravel is the Best Choice for Developing RESTful APIs?
Rest api titouan benoit
Restful风格ž„web服务架构
Understanding REST
Rest API Interview Questions PDF By ScholarHat
Api crash
Api crash
Api crash
Api crash
Api crash
Api crash
Api crash
Understanding APIs.pptx
Ad

Recently uploaded (20)

PDF
Wondershare Filmora 15 Crack With Activation Key [2025
PDF
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
PDF
medical staffing services at VALiNTRY
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 41
PPTX
ai tools demonstartion for schools and inter college
PDF
Odoo Companies in India – Driving Business Transformation.pdf
PDF
How Creative Agencies Leverage Project Management Software.pdf
PPTX
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
PDF
Navsoft: AI-Powered Business Solutions & Custom Software Development
PDF
How to Migrate SBCGlobal Email to Yahoo Easily
PPT
Introduction Database Management System for Course Database
PPTX
Odoo POS Development Services by CandidRoot Solutions
PPTX
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
PDF
Digital Strategies for Manufacturing Companies
PDF
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
PPTX
L1 - Introduction to python Backend.pptx
PDF
top salesforce developer skills in 2025.pdf
PPTX
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
PDF
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
PDF
Understanding Forklifts - TECH EHS Solution
Wondershare Filmora 15 Crack With Activation Key [2025
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
medical staffing services at VALiNTRY
Internet Downloader Manager (IDM) Crack 6.42 Build 41
ai tools demonstartion for schools and inter college
Odoo Companies in India – Driving Business Transformation.pdf
How Creative Agencies Leverage Project Management Software.pdf
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
Navsoft: AI-Powered Business Solutions & Custom Software Development
How to Migrate SBCGlobal Email to Yahoo Easily
Introduction Database Management System for Course Database
Odoo POS Development Services by CandidRoot Solutions
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
Digital Strategies for Manufacturing Companies
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
L1 - Introduction to python Backend.pptx
top salesforce developer skills in 2025.pdf
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
Understanding Forklifts - TECH EHS Solution

REST API Laravel

  • 2. /me ● John Dave Decano aka Dave ● Juwai Team ● Doing freelance since 2009 ● No Formal Education on CS or IT ● Self Taught Programmer ● http://github.com/johndavedecano ● http://odesk.com/odeskfreelancer ● http://johndavedecano.me
  • 3. What is restfulAPI? ● REST - Representational State Transfer ● REST is an architecture style for designing networked applications. ● In many ways, the World Wide Web itself, based on HTTP, can be viewed as a REST- based architecture. ● RESTful API uses versioning. e.g POST /V1/todos/ ● RESTful API explicitly take advantage of HTTP methodologies defined by the RFC 2616 protocol. They simply use "PUT" to change the state of or update a resource, which can be an object, file or block; "GET" to retrieve a resource; POST" to create that resource; and "DELETE" to remove it. ● Restful API uses HTTP Headers add information about the request and the response. ● Restful API uses HTTP Status Codes Correctly. ● Restful API is stateless. ● Restful API commonly use JSON or XML as a form of response. ● Each API request returns a subsequent API response.
  • 4. What is restfulAPI? ● REST - Representational State Transfer ● REST is an architecture style for designing networked applications. ● In many ways, the World Wide Web itself, based on HTTP, can be viewed as a REST-based architecture. ● RESTful API uses HTTP for all four CRUD (Create/Read/Update/Delete) operations. ● Each request returns a subsequent response. ● HTTP Verbs – POST, GET, UPDATE, PUT, PATCH, DELETE ● HTTP Headers – Content-Type, Content-Length etc. ● Commonly used by Mobile Applications and Single Paged Apps. ● Commonly use JSON or XML as a form of response.
  • 5. A stateless protocol does not require the server to retain information or status about each user for the duration of multiple requests.
  • 6. Requests are made up of a verb (POST, in this example), headers that describe the message, and a body (Hello World, in this example). The request is a message that describes what you want the server to accomplish. Likewise, the response consists of three pieces: a status code (200), headers describing the response and the body itself. HTTP Verbs describe the type of operation: GET: Retrieve a resource POST: Create a resource PUT: Update a resource DELETE: Delete a resource On the Web, the most common verb is GET. This is because the main purpose of a Web page's function is to request different resources that make up a page. In REST- based APIs, we leverage these verbs to describe the types of operations we want.
  • 7. Hello Laravel ● Taylor Otwell ● Open Source ● Well Documented ● Active Community ● Lots of Jobs ● Easy Grasp
  • 8. How about the security? ● REST api can be exposed to the public. They usually call it as Public APIs ● You can use OAUTH, HTTP Basic or JWT. ● OAuth is an open standard for authorization, commonly used as a way for Internet users to log in to third party websites using their Google, Facebook, Microsoft, Twitter, One Network, etc. accounts without exposing their password. ● HTTP Basic - In the context of an HTTP transaction basic access authentication is a method for an HTTP user agent to provide a user name and password when making a request. ● JSON Web Tokens are an open, industry standard RFC 7519 method for representing claims securely between two parties.
  • 9. TALK IS CHEAP SHOW ME THE CODE
  • 10. You will learn how to: ● Install LARAVEL ● Create URL Routes ● Create Migrations ● Create Seeder ● Create Models ● Create Controllers ● Create Requests Classes ● Create Validate Data