PutMapping, DeleteMapping, RequestMapping | Monthly Challenge REST API Tutorial Project | Video #4

preview_player
Показать описание
This is Part 4 of the Complete Project Series. More coming up soon. Subscribe and like to stay updated with my latest releases

We cover PutMapping and DeleteMapping for our Project hands on.

Get started with Spring Boot using Intellij Idea 2023 version in this series. This project-based tutorial is for beginners and teaches you how to start building Spring Boot REST APIs using Java Spring Boot Framework.

This video is a part of the monthly challenge app that we are going to build.

Рекомендации по теме
Комментарии
Автор

The issue you're facing occurs because the nextId variable is incremented every time a new challenge is added, and once a challenge is deleted, the nextId value is not reset or adjusted. So, when you try to add the challenge back, it might be using a previously incremented ID, which can lead to conflicts or incorrect behavior.

pls rply for this comment

sriramprabhas
Автор

is there any better way to find the id or month? I mean looping over a larger db is not efficient . Is there any way to efficiently find challenges between two mentioned months in url as query?

waveEdu
Автор

i found some errors regarding the code u provided while testing

sriramprabhas
welcome to shbcf.ru