Category: API

API stands for application program interface. An API is a set of subroutine definitions, communication protocols, and tools for building software in computer programming. In general terms, it is a set of clearly defined methods of communication among various components.

Fetch API – Creating REST API in Laravel(Part VI)

Fetch Api is an api end point for fetcing records from the database. We are using article as our entity so it will be article fetch api. We will create separate api for fetching single article and all articles. In previous article, we have created an update api to update record in database. We have ...

Update API – Creating REST API in Laravel(Part V)

Update Api is an api end point for updating records in the database. We are using article as our entity so it will be article update api. In previous article, we have created an store api to store records in database. We have already created database structure, eloquent model, routes, controller functions as well. Now, ...

Store API – Creating REST API in Laravel(Part IV)

Store Api is an api end point for storing data to database. We are using article as our entity so it will be article store api. In previous article, we have added request validation. We have already created database structure, eloquent model, routes, controller functions. Now, we will add all necessary logic to store function ...

Request Validation – Creating REST API in Laravel (Part III)

Request validation includes validation of the request at server sent from client end. In previous article, we discuss about necessary database structure, eloquent model, resource routes and resource controller for api in laravel. In this article, we will discuss request validation for the store and update of the article. We will create a request class ...

Creating REST API in Laravel Part II (database, routes, controller, model)

In the previous article, we discuss about api and structure of response based on processing of client request. In this article, we will create database structure, model, resource routes and controller. As we have previously mentioned, we will use article as our entity for all of these processes. Database Structure We will create a migration ...

Creating REST API in Laravel – Part I(Introduction)

API stands for application program interface and REST stands for Representational state transfer. In any web development, if we want to make separate front end and back end development, Then we can use restful api for transfer of data from front end to back end and vice versa. According to wikipedia, “Representational State Transfer (REST) ...