Company: Atlan_21march
Difficulty: medium
Problem Description You have been tasked with implementing the backend REST API for a Course Management System (CMS). The system currently lacks a working backend to manage the state of the courses and persist newly added courses. Your objective is to build an API that initializes an empty course catalog, retrieves the course list, and allows the addition of new courses with a title and description. Endpoints GET /api/courses : Retrieves the complete list of courses. POST /api/courses : Adds a new course to the CMS. Request Format For POST /api/courses , the request body must be a JSON object containing the new course details: { "title": "string", "description": "string" } Response Format GET /api/courses Status: 200 OK Body: A JSON array of course objects. If no courses have been added, it must return an empty array [] . [ { "id": "string or integer", "title": "string", "description": "string" } ] POST /api/courses Status: 201 Created Body: The created course object, including its new