-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating
Build RESTful APIs Using Kotlin and Spring Boot
By :
Build RESTful APIs Using Kotlin and Spring Boot
By:
Overview of this book
Kotlin is a modern, concise, and safe programming language and is one of the most popular JVM languages currently. It is also interoperable with Java and other languages and provides many ways to reuse code between multiple platforms for productive programming.
Section one covers the course objectives and prerequisites needed to make the most out of this course. In section two, we will be introduced to Kotlin programming language and why it’s a powerful language for enterprise development. Section three is about the fundamentals of Kotlin such as Val and var variables in Kotlin, basic string types, while and do-while, and so on.
Section five is about classes, inheritance, and interfaces in detail, object keywords for creating instances of the class, type checking, casting, and smart cast. In the next section, we will be introduced to collections, arrays, and lambda expressions in Kotlin. We will also understand the scope functions in Kotlin and its usage. Moving on, we will get started with Kotlin and Spring Boot and have an overview of the app we are going to build.
You will also learn to build the course catalog service to manage the courses and to code and learn how to write unit tests for the controller along with coding and learning the usage of RequestParam in the controller endpoint. We will wrap up the course by learning the technique to express relationships in JPA using Entity and data classes in Kotlin.
By the end of this course, you will be comfortable writing code using the Kotlin programming language and building RESTful APIs using Spring Boot and Kotlin.
All resources and code files are placed here: https://github.com/PacktPublishing/Build-RESTFUL-APIs-using-Kotlin-and-Spring-Boot
Table of Contents (18 chapters)
Getting Started with Kotlin Programming Language
Kotlin Fundamentals
Functions in Kotlin
Classes, Interfaces, and Inheritance
Nulls in Kotlin
Collections, Arrays, and Lambda Expressions
Exceptions in Kotlin and Scope Functions
Getting Started with Kotlin and Spring Boot
Integration/Unit Testing Using Junit 5
Build the Course Catalog Service
Unit Testing Controller Layer (Web Tier)
Bean Validation Using Validators and ControllerAdvice
Custom JPA Queries Using Spring Data JPA and DB Layer Testing Using @DataJpaTest
GET Endpoint to Retrieve Courses by Name Using @RequestParam
Entity Relationships Using Spring Data JPA
Integrating with Postgres DB
Integration Testing Using TestContainers
Java and Kotlin Interoperability
Customer Reviews