RestApi

Apache Camel: How to Expose Rest API

Reading Time: 3 minutes The Apache Camel DSL is a language that allows to configure the behaviour of the Camel Routing Engine. Apache Camel: Expose Rest API we have To use the Rest DSL in Java DSL then just do as with regular Camel routes by extending the RouteBuilder and define the routes in the configure method. A simple REST service can be defined as follows, where we use rest() to define the services as Continue Reading

HTTP Requests Using Axios Library

How to make HTTP Requests Using Axios Library

Reading Time: 3 minutes Introduction Axios is a Javascript library used to perform HTTP requests for Nodejs and browsers. It supports the Promise API and makes it easy to send requests asynchronously. In this article, we will learn, how to make GET/POST/PUT/DELETE HTTP requests using Axios. Features Make HTTP requests from node.js Supports the Promise API Intercept request and response Transform request and response data Cancel requests Automatic transforms Continue Reading

Knime: Accessing a REST API with dynamic query param

Reading Time: 3 minutes Nowadays Rest API is the most widely used way to share data, In which many API returns a subset of complete data in form of page. Sometimes we need to append multiple query param in the URL to get some specific and filtered data. In this blog, we will learn how to generate dynamic URLs by adding query param and get data. Knime platform supports Continue Reading

REST API Testing with Cypress

Reading Time: 2 minutes Hello, everyone! Welcome to my blog section, Here we will see how to to do REST API Testing with cypress. REST API Testing with Cypress: Cypress automated everything that runs on the browser and many times we have a use case where we need to validate our UI behavior against the browser network calls, here cypress comes in the picture. So as per the cypress Continue Reading

Integrate TestNG and Json-Server with Rest-Assured

Reading Time: 6 minutes Here, we’ll discuss about how can we automate our testing of RESTful webservices using REST ASSURED and Integrate it with one of the trending framework, “TestNG“ Rest-Assured REST Assured is a Java DSL for simplifying testing of REST based services built on top of HTTP Builder. It supports POST, GET, PUT, DELETE, OPTIONS, PATCH and HEAD requests and can be used to validate and verify the response of Continue Reading

How to handle URL Encoded Form Data in Spring REST?

Reading Time: 3 minutes Sometimes, our REST endpoint needs to consume data in the form of application/x-www-form-urlencoded or using multipart/form-data. The source of this data can probably be an HTML form. Now, the first question which should come to our mind is, what is exactly this application/x-www-form-urlencoded or using multipart/form-data and how can we let our spring application consume this. This blog will help you to find answers to Continue Reading

Rejection In The Akka HTTP: Let’s handle errors scenarios more properly

Reading Time: 4 minutes Hello folks, in this blog we will see Rejection in the Akka HTTP and how it helps in handling errors scenarios in our Application. Rejection concept in Akka HTTP helps to deal with errors scenarios more properly. When a filtering directive, like the get directive. It does not allow the request to pass through its inner route . As the filter condition is not satisfy, Continue Reading

Making HTTP calls just got easier in Java11!

Reading Time: 3 minutes Today, we will gonna discuss Http/2 client which actually came in Java9, but in Java9 it was part of incubator module. In Java11, a new module is assigned to this special functionality which is java.net.http. Now, developers don’t need to go for any third party library or API for async HTTP calls or for easy access callbacks method to get HTTP response after calls. In this discussion, Continue Reading

Solr With Scala: Rest End Points with AKKA HTTP

Reading Time: < 1 minute Hello Folks, Today we will discuss about Solr, Scala with Akka-HTTP. We will create rest-endpoints and try to connect with Solr server with them. The basic idea behind using Akka-HTTP for creating Rest end points is modules implement a full server and client-side HTTP stack on top of akka-actor and akka-stream. We can customize these routes according to our use case. We will talk step Continue Reading

Cassandra with Spark 2.0 : Building Rest API !

Reading Time: 3 minutes In this tutorial , we will be demonstrating how to make a REST service in Spark using Akka-http as a side-kick  😉  and Cassandra as the data store. We have seen the power of Spark earlier and when it is combined with Cassandra in a right way it becomes even more powerful. Earlier we have seen how to build Rest Api on Spark and Couchbase Continue Reading

Akka-http Logging: Logging the Response Time of the Rest API

Reading Time: 2 minutes Sometimes while developing REST API’s we want to log the response time of  our REST APi for the sake of better tuning. We are going to discuss the same case here and will see how to do that in Akka-http . So sometime before while I was working on akka-http while developing a spark-akka-http-couchbase Lightbend activator template , a weird use case came in-front of Continue Reading