This tutorial teaches the basics of building a web API with the Scala Play Framework.
In this tutorial, you learn how to:
Create a web API project.
Add a model class and a database context.
Create a controller with CRUD methods.
Configure routing, URL paths, and return values.
Call the web API with Postman.
In the end, you have a web API that can manage "to-do" items stored in a database.
Overview
This tutorial creates the following API:
API
Description
Request body
Response body
GET /api/todos
Get all to-do items
None
An array of to-do items
GET /api/todos/{id}
Get an item...
Scalable Language, Scala is a general-purpose high-level programming language that combines object-oriented and functional programming in a single concise. There are many arguments and debate about Scala, but the major part of the arguments involves a variety of distinguished or factual shortcomings of Scala as a language. This might feel unpleasant from the outside and arise the question why should I use Scala? What are the benefits of to use Scala?
Why Scala?
It was created with purpose o being better language specifically for aspects those are considered restrictive, very tedious and frustrating for developers. The outcome is much cleaner...