swapniltake1 / coursemanagementapp

Create a Spring Boot project name course management app and perform CRUD Operations using any testing tool for testing API like postman

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

coursemanagementapp - YHills Task 2

Task 2 : Create a Spring Boot project name course management app and perform CRUD Operations using any testing tool like postman.

Capstone Project -------> Course Management App using Spring Boot

Tech Used : Maven, JDK11, Spring DATA Rest, Lombok, MySQL, embedded TomCat server

Description of Controller

This CourseController class is a part of a Spring Boot application for managing courses. Here's a brief description of each method:

  1. home() - This method is mapped to the URL "/welcome" and returns a simple welcome message for the Course Management Application.

  2. getCourses() - This method is mapped to the URL "/courses/all" and retrieves a list of all courses from the CourseService.

  3. getCourseFromID(int courseID) - This method is mapped to the URL "/courses/{courseID}" and retrieves a specific course based on the given courseID parameter from the CourseService.

  4. addCourse(Course course) - This method is mapped to the URL "/courses/add" and adds a new course to the system by accepting a Course object in the request body.

  5. updateCourse(Course course) - This method is mapped to the URL "/courses/update" and updates an existing course by accepting a modified Course object in the request body.

  6. deleteCourse(int courseID) - This method is mapped to the URL "/courses/delete/{courseID}" and deletes a course with the specified courseID from the system. It returns an HTTP response indicating the status of the operation.

These methods handle various CRUD (Create, Read, Update, Delete) operations for managing courses in the application.

Screenshots

Get Mapping

url : http://localhost:8080/welcome image

url : http://localhost:8080/courses/all image

POST Mappings

url : http://localhost:8080/courses/add image

PUT Mapping

url : http://localhost:8080/courses/update image

DELETE Mapping

url : http://localhost:8080/courses/deletecourse/{ID}?ID="11" image

About

Create a Spring Boot project name course management app and perform CRUD Operations using any testing tool for testing API like postman


Languages

Language:Java 100.0%