Join Troy Miles for an in-depth discussion in this video ✓ Solution: Sort cars by fuel economy, part of Developing AWS Lambda Functions with Kotlin.
- [Instructor] Let's see how I've solved this challenge.…First we create the get fuel endpoint, so we're going to…scroll back up to our routes.…And right here we're going to say get this time it is fuel.…Once again we're going to have our Lambda add request…and response and it is going to call the getFuelVehicles…method which takes in request and response as well.…
The main thing that makes the getFuelVehicles method…different from the getAllVehicles method is that it uses…a different sort.…So if we take this method right here and we just copy it…and we're going to take it all the way down to the bottom.…And we're going to paste it and then we're going to change…this to getFuelVehicles.…Then right here in our sort, this right here is sorting…by year descending make and model ascending, we actually…want fuel economy which is represented by comb08…and we want it descending which is negative one and we're…just going to take the same first 10 vehicles if at least…one is returned we're going to return the listed vehicles,…
- Creating an AWS Lambda account
- Creating a simple Lambda function in Node.js
- Testing the Lambda function
- Creating Kotlin apps with Spark, IntelliJ IDEA, Maven, and the AWS library
- Binding the API gateway to your Lambda function
- Adding data with MongoDB
- Developing and debugging your Lambda function locally
Skill Level Intermediate
1. About AWS Lambda
2. Hello Lambda
3. Hello Kotlin Lambda
4. Making Your Lambda Web Visible
5. Adding Data with MongoDB
6. Developing and Debugging Locally
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.