Integrations with external systems (including web services) introduce some complications into the testability aspects of applications. Not only could it have side effects, but also calling external systems within the test case introduces a high level of instability.
- [Andriy] Hi, and welcome to the last video of this course.…In the previous video we looked at spray-client module,…and developed our own integration…with Google Books search API.…In this video, we are going to take a closer look…at the implementation we have developed so far.…Try it out and come up with a set of test cases…to ensure that our integration with Google Books…search API works as expected.…Also, we are going to discuss some common techniques…in order to avoid calling External Web Services…during the text case executions.…
Nonetheless, ensuring that the code…we have written is well tested.…In the previous video, we have seen some snippets…of our client for Google Books search API.…But essentially the complete version…does look exactly the same.…Simple and readable thanks to spray-client pipelining.…In our book catalog web services,…this search functionality is exposed under search endpoint.…And essentially, just delegates the call to…Google Books search API client.…
In cases when Google Books search returns unsuccessful…
Embark on an exciting journey into the universe of web development using the Scala programming language and frameworks—natural choices for back-end developers building highly scalable, reliable, and reactive RESTful web services and APIs. This training is the starting point for mastering the nonblocking and asynchronous programming models that lie in the heart of the Spray framework. It starts with an introduction to the REST architecture. Then switch gears to the Akka toolkit and framework, building a sample book catalog application along the way.
Once you've learned about the REST architectural style and Actor model—the foundations that the Spray framework is built upon—you'll shape out your own RESTful web services by providing simple route definitions. Further on in the course, author Andriy Redko delves into authentication and authorization, secure transport, documentation, testing, and caching support. Finally, you will learn how to develop the Spray client API to call external web services.
- The Actor model and Akka framework
- RESTful architecture principles and constraints
- Building RESTful services
- Core Spray framework modules such as spray-can, spray-routing, spray-json, spray-caching, and spray-client
- Securing RESTful web services and APIs with Spray
- Configuring Spray applications with HTTPS support
- Documenting Spray RESTful web services using Swagger
- Caching basics
- Calling external RESTful services