RestFul Web Services in Drupal 8
Accessing Node with API Key
Sarada Prasad Prusty
https://www.drupal.org/u/saradaprasad17
@Twitter -
https://twitter.com/prasadprusty
A web service is a unit of managed code
that can be remotely invoked using
HTTP.
web services to exchange data over
computer networks like the Internet
.
What is Web Services?
Why Web Services ?
Web services allows you to expose the
functionality of your existing code over the
network .
It makes application platform and technology
independent.
RestFul WebServices
REpresentational State Transfer is an architectural style
i.e. a set of guidelines for building a web service .
RESTful web services are light weight, highly scalable and
maintainable and are very commonly used to createAPIs
for web-based applications .
How it Works ?
Rest Defines some methods
GET: to receive the resource representation
POST: to add some information
PUT: modify the resources
DELETE: delete the resources
Web Services in Drupal 8
In Drupal 8, Web Services are built into Core .
Modules in Drupal Core
View to Export Data With Rest
API
Custom Rest Method
Create API key in backend
Access Node with API key
How to Set API key ?
Create admin form for Setting API key
Routing and Permission
Creating routing to access the content and set
permission for API form
THANK YOU

RESTful Web services in Drupal 8

  • 1.
    RestFul Web Servicesin Drupal 8 Accessing Node with API Key Sarada Prasad Prusty https://www.drupal.org/u/saradaprasad17 @Twitter - https://twitter.com/prasadprusty
  • 2.
    A web serviceis a unit of managed code that can be remotely invoked using HTTP. web services to exchange data over computer networks like the Internet . What is Web Services?
  • 3.
    Why Web Services? Web services allows you to expose the functionality of your existing code over the network . It makes application platform and technology independent.
  • 4.
    RestFul WebServices REpresentational StateTransfer is an architectural style i.e. a set of guidelines for building a web service . RESTful web services are light weight, highly scalable and maintainable and are very commonly used to createAPIs for web-based applications .
  • 5.
  • 6.
    Rest Defines somemethods GET: to receive the resource representation POST: to add some information PUT: modify the resources DELETE: delete the resources
  • 7.
    Web Services inDrupal 8 In Drupal 8, Web Services are built into Core .
  • 8.
  • 9.
    View to ExportData With Rest API
  • 14.
    Custom Rest Method CreateAPI key in backend Access Node with API key
  • 15.
    How to SetAPI key ? Create admin form for Setting API key
  • 18.
    Routing and Permission Creatingrouting to access the content and set permission for API form
  • 23.