PUT vs POST vs PATCH

6

Nov

Difference between POST vs PUT vs PATCH

Confused whether to use PUT or PATCH or POST in your API? Don't worry you are not alone and this is a common confusion which happens to most of us or to all of us at some point while developing our API. Before we understand the difference between PUT vs PATCH vs POST, first we need to understand Idempotency.


What is REST API

2

Nov

What is REST API

Representational state transfer (REST) is a an architectural style designed to take advantage of existing protocols like HTTP/HTTPS. REST defines a set of constraints to be used for creating APIs. When an API is designed based on the principles which adheres to the Representational state transfer architectural style it is called a RESTful API. Unlike SOAP services, RESTful APIs are not constrained to one particular data type like XML. Instead, RESTful APIs can return any type of data format like JSON, YAML, XML, TEXT etc depending on the client request. Also the datatype is independent of the methods and resources.


URI Parameter and Query Parameter

17

Feb

Uri Parameter vs Query Parameter

Understanding the URI Parameter and Query Parameter How many times have you wondered whether to use query parameter or URI parameter when designing an API. Lets understand the difference. As an API developer, you would have designed an API to get a collection of resource, filter the resource or do some action on an instance resource. It is important to understand when to use a query parameter and uri parameter. They both serve different purpose.


RAML best practices

17

Feb

RAML Best Practices

It is challenging to design a RESTful API which follows the REST principles and attains the maximum level in Richardson maturity model for rest. Most of the enterprise APIs do not follow any of the REST standards or they implements the minimal principles and yet they are named REST API. Such a poorly designed API is an insult to be named as REST API. As a developer, please do not design such an API.


How to install Let's Encrypt certificate on Joomla website hosted on Amazon Lightsail

18

Jan

Enable Let’s Encrypt SSL Certificate on Joomla website

How to install Let's Encrypt certificate on Joomla website hosted on Amazon Lightsail and secure your website In my previous blog post, I wrote about setting up Host joomla on Amazon Lightsail Amazon offers an amazing platform to host your website on a Virtual Private Server (VPS) for a reasonable cost. I have been blogging since 2009 and I remember the cost of VPS would start at 30$ per month. Today, the cost is 10 times cheaper and the infrastructure is reliable and scalable.


Subscribe for more goodness!

Do you like what I'm writing? Sign up to receive new content straight into your mailbox!

This website uses cookies

We use cookies to improve user experience. By continuing to browse our website or by clicking accept, you agree to our use of cookies.

Read more about how we use cookies and how you can refuse them.