Custom Rest API - Part 2

In the previous part-1 of this series we talked about the Rest API and how can we define the Rest API Plugin type in your system. In the previous example we have defined the REST Plugin in your custom module, add some get()/Post() methods for reading and writing operations. 

Now in this series of Rest API or Rest API part-2, we will discuss more about REST API and we will show how to define REST API using a custom controller class.
Now the question arises here why do we need this custom Rest API controller class over the REST API plugins?

Custom Rest API - Part I

Rest API: (Representational State Transfer)

In this series of the blog we will discuss custom rest APIs and how can we define it in Drupal 8. I have divided this series into 2 parts. In our first part we will discuss core rest APIs and "How can we extend Rest module to define our custom API in Drupal 8" and In our 2nd part we will discuss, "How can we define Rest Api using controller".

Update user profile programmatically - Drupal 8

Drupal 8: I was afraid of it but when I start working in it, it's really a cool CMS than the previous version aka Drupal 7. Most of the things are depends on libraries means you need to include required library files in your controller or .module file or etc. and do your work. So I was working on a project in which the client wants to update user data with profile picture programmatically. So here are the steps which I have followed:

CMI: The new backbone of Drupal 8

This is my first blog for Drupal 8. I didn’t work on Drupal 8 before joined my new company and they have given me first chance to start work on Drupal 8. I had join a session on CMI in Nov 2016 (at Aquia office CP), which is given by Neetu morwani, and that was my first time when i heard about CMI. Now this time i have given my first session on CMI (Configuration management system) and start writing my first blog on it.

CMI: Configuration management system

Ajax Based Live Data Availability check

Data availability using ajax: I was going for an interview where I had clear my first round and in the second round they had given me a form in this which lots of functionality with ajax validation of data in the database. So had stat my coding test and stuck at a point where I have to do this so I had searched about this and find the best solution.

Tabular data with Pager, Sorting and Filters

There lots of solution available in Drupal to create tabular data with form but the best solution is to use "theme() function" for this. When I was a beginner in Drupal I have created a table using "form API" in which I have included "for loop" and "field type" etc. to achieve this task. That time I don't care of coding standard but my main aim was to finish the task by hook or by crook.

An Auto Complete form - Ajax Magic in Drupal 7

An Autocomplete form: We all know we are lazy by nature and we want everything on their hand without any efforts or hard-work. This lead to thinking peoples to search for new technologies. So an auto-complete thing works the same in which people just put some data in a textfield and all the things will be done automatically (depends on input data). It's an Ajax thing which is used to exchange data from the server at the client site.