CSC/ECE 517 Spring 2024 - E2415. Reimplement responses controller.rb (Design Document): Difference between revisions

From Expertiza_Wiki
Jump to navigation Jump to search
Line 11: Line 11:




==Implementation==
== 5. Implementation==
===5. Model ===
===5.1 Model ===
Methods within the model were refactored or introduced, including:
Methods within the model were refactored or introduced, including:
* 5.1.1 set_content
* 5.1.1 set_content
Line 18: Line 18:
* 5.1.3 serialize_response
* 5.1.3 serialize_response


=== Controller ===
=== 5.2 Controller ===
Controller methods for CRUD operations were enhanced, comprising:
Controller methods for CRUD operations were enhanced, comprising:
* 5.2.1 Create
* 5.2.1 Create

Revision as of 22:50, 7 April 2024

CSC/ECE 517 Spring 2024 - E2415: Reimplementation of responses_controller.rb (Design Document)

Expertiza

Problem Statement

Design Goal

Class UML Diagram

5. Implementation

5.1 Model

Methods within the model were refactored or introduced, including:

  • 5.1.1 set_content
  • 5.1.2 validate_params
  • 5.1.3 serialize_response

5.2 Controller

Controller methods for CRUD operations were enhanced, comprising:

  • 5.2.1 Create
  • 5.2.2 Show
  • 5.2.3 Update
  • 5.2.4 Delete

Files Modified/Added

List of primary files modified or created includes:

  • responses_controller.rb
  • response_helper.rb
  • response.rb


Test Plan

Testing model methods

Test Coverage

Team

Mentor
  • Ameya Vaichalkar
Members
  • Jeff Riehle
  • Maday Moya
  • Jacob Leavitt

Links

Swagger Video Link:

Pull request:

Model Tests Video:

Controller Tests Video:

References