Video description
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.
What You Will Learn
- Learn the Kotlin programming language and its benefits
- Write code using the Kotlin programming language
- Learn how to build applications using Kotlin
- Learn Kotlin and Java interoperability
- Integrate Spring Data JPA with Kotlin
- Test Kotlin using JUnit5
Audience
This course is for developers who are interested in learning the Kotlin programming language, for developers who are interested in building applications using Kotlin and Spring Boot, and for Java developers who would like to learn the Kotlin programming language. Basic experience working with Java will be an advantage.
About The Author
Dilip Sundarraj: Dilip Sundarraj is a software engineer who has experience with building software since 2008. He is passionate about learning modern technologies and staying up to date with all the modern technologies, tools, frameworks, and more. He loves to share his knowledge with the world and that is one of the key reasons for him to be in the online teaching industry.
He loves interacting with other software developers and believes that this helps him share knowledge and learn from them. During his leisure time, he loves to play cricket, watch movies, and work out in the gym to have a balance between physical and mental strength.
Dilip has a YouTube channel named Code with Dilip, where he has been sharing a lot of technical content related to languages, frameworks, best practices, and more.
Table of contents
- Chapter 1 : Getting Started with Kotlin Programming Language
- Chapter 2 : Kotlin Fundamentals
- Chapter 3 : Functions in Kotlin
-
Chapter 4 : Classes, Interfaces, and Inheritance
- Introduction to Class - Creating a Class and Objects
- Primary Constructors
- Secondary Constructors
- Initializer Code Using init Block
- Data Classes
- Custom Getters and Setters
- Inheritance - Extending Classes
- Inheritance - Override Functions, Variables
- Object Keyword for Creating Instance of the Class
- Companion Object Keyword
- Interfaces
- Interfaces - Handling Conflicting Functions
- Interfaces - Defining and Overriding Variables
- Visibility Modifiers
- Type Checking, Casting, and Smart Cast
- Enum Class
- Chapter 5 : Nulls in Kotlin
-
Chapter 6 : Collections, Arrays, and Lambda Expressions
- Introduction to Collections
- Introduction to Lambda Expressions
- Lambdas and Higher Order Functions
- Filter Operations on Kotlin Collections
- Map Operations on Kotlin Collections
- FlatMap Operations in Collections
- Working with HashMaps
- Lazy Evaluation of Collections Using Sequences
- Nullability in Collections
- Chapter 7 : Exceptions in Kotlin and Scope Functions
- Chapter 8 : Getting Started with Kotlin and Spring Boot
- Chapter 9 : Integration/Unit Testing Using Junit 5
-
Chapter 10 : Build the Course Catalog Service
- Set Up the Course Entity and CourseDTO
- Create CourseRepository and Configure JPA in application.yml File
- Build the POST Endpoint for Adding New Course
- Integration Test for the POST Endpoint Using JUnit5
- Build the Get Endpoint to Retrieve All Courses
- Integration Test for the GET Endpoint to Retrieve All the Courses
- Build the Update Endpoint to Update a Course
- Integration Test for the PUT Endpoint Using JUnit5
- Build the DELETE Endpoint to Delete a Course
- Chapter 11 : Unit Testing Controller Layer (Web Tier)
- Chapter 12 : Bean Validation Using Validators and ControllerAdvice
- Chapter 13 : Custom JPA Queries Using Spring Data JPA and DB Layer Testing Using @DataJpaTest
- Chapter 14 : GET Endpoint to Retrieve Courses by Name Using @RequestParam
- Chapter 15 : Entity Relationships Using Spring Data JPA
- Chapter 16 : Integrating with Postgres DB
- Chapter 17 : Integration Testing Using TestContainers
- Chapter 18 : Java and Kotlin Interoperability
Product information
- Title: Build RESTful APIs Using Kotlin and Spring Boot
- Author(s):
- Release date: May 2022
- Publisher(s): Packt Publishing
- ISBN: 9781804616451
You might also like
book
Full Stack Development with Spring Boot and React - Third Edition
PUBLISHER'S NOTE: A new edition of this book is now available, revised and updated for Spring …
video
Master Java Web Services and REST API with Spring Boot
This video course offers a comprehensive overview of developing both SOAP and RESTful web services using …
video
Full-Stack React with Spring Boot
11 Hours of Video Instruction Build full-stack applications using React and Spring Boot. Overview: In recent …
book
Spring Boot: Up and Running
With over 75 million downloads per month, Spring Boot is the most widely used Java framework …