Tag Archives: REST

Solr With Scala: Rest End Points with AKKA HTTP


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 … Continue reading

Posted in akka-http, Scala | Tagged , , , , , , | 2 Comments

Handling HTTPS requests with Akka-HTTPS Server


Hi guys, In my last blogs I explained how one can create a self-signed certificate and KeyStore in PKCS12. You can go through the previous blog, as we’ll be needing certificate and keystore  for handling HTTPS requests. https://blog.knoldus.com/2016/10/18/create-a-self-signed-ssl-certificate-using-openssl/ https://blog.knoldus.com/2016/10/26/how-to-create-a-keystore-in-pkcs12-format/ Akka-HTTP provides both Server-Side and … Continue reading

Posted in Akka, akka-http, Scala, Security, Security Audit, Security Checklist, Security Controls, Security Guidelines | Tagged , , , , , , , , , , , , , , , , , , , | 4 Comments

Cassandra with Spark 2.0 : Building Rest API !


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 … Continue reading

Posted in Akka, akka-http, apache spark, Cassandra, Scala, scalatest, Spark | Tagged , , , , , , , , , , , , , | 2 Comments

Multipart/form-data submit through javascript in Play Framework


Normally when we submit any multi-part form in Play Framework that time in the controller have to mention redirection action which  refresh the whole page and it gives an extra load on the network. It is possible to submit that … Continue reading

Posted in AJAX, JavaScript, MultipartFormData, Play Framework, Scala | Tagged , , , | 2 Comments

Spark with Spray Starter Kit


Over the last few months, Spark has gained a lot of momentum in Big Data world. It has won a lot competitions & surveys, like Daytona Gray Sort 100TB competition or becoming top level Apache Project and many more. Irrespective of whether it is a … Continue reading

Posted in Scala, Spark, Web, Web Services | Tagged , , , , , | 10 Comments

Swagger With Play2


What is Swagger : Swagger is very powerful tool for REST API description and API documentation.Swagger API gives a Swagger GUI for humans to learn and test your API.It’s 100% open source.The goal of Swagger is to enable client and … Continue reading

Posted in Play Framework, Scala, Swagger | Tagged , , , , , | 6 Comments

Play 2.4.X : Microservice Architecture using Play and Scala


Playing-Microservices This blog describes a basic Microservice architecture design using Play 2.4.X and Scala. The big idea behind microservices is to architect large, complex and long-lived applications as a set of cohesive services that evolve over time. The term microservices … Continue reading

Posted in Architecture, Microservices, Multi-Project Builds, Play 2.4.X, Play Framework, Scala, Web, Web Services | Tagged , , , , , , , , , , , , , | 5 Comments

How To Implement logRequestResponse in Spray


Spray has the feature to log request and response of every route through logRequestResponse. We needn’t to add log in each route because it could be done from a single place. This also helps to maintain clean code. Please see … Continue reading

Posted in Agile, Akka, Scala, Web | Tagged , , , | 3 Comments

Spray with Akka Starter Kit


Over the last few months, Spray is fast becoming the de-facto for all the products that we are working on. Irrespective of whether it is a product which has a full featured UI or a gaming component which needs to … Continue reading

Posted in Architecture, Scala | Tagged , , , , | 1 Comment

Testing Jersey Based REST Services with Grizzly


In my last post, we had seen how easy it was to create REST based services with Spring and Jersey. In this post we would quickly see how we can unit test them. Ok, this is not entirely a unit … Continue reading

Posted in Architecture, Java | Tagged , , , , | 1 Comment