In most cases, the Swagger API exposes RESTful web services and APIs’ documentation using JSON or XML formats. This is great but not very comfortable for a human to work with.
- [Instructor] In the previous video,…we learned how Swagger integrates…with Spray Rest(ful) Web Services and APIs.…We have also complimented all our book catalog…Spray routes with Swagger annotations,…and learned how this documentation…is exposed and could be consumed.…In this video, we are going to take…a look at Swagger UI.…The complimentary tool out of the…Swagger project portfolio, which greatly simplifies…the web services and APIs exploration.…
To put it simply, Swagger UI is the browser…compatible tool to reconstruct nice visualizations…of the web services and APIs…out of their Swagger specification.…Swagger UI works in most desk top browsers,…including Chrome, Safari, Firefox,…and Internet Explorer 8 and above.…Swagger UI is distributed as a collection of HTML,…CSS, and Java Script files, or assets.…In general, we can download it, open index.HTML…and type the resource listing endpoint in there.…
Please note that in this case, your web service…has to support cross origin resource sharing, or CORS,…which is a mechanism that allows you to control…
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