Skip to content

[CAD/Project File Reviews] - create getCommonMistakes endpoint #3163

@chpy04

Description

@chpy04

Description

We need an edpoint to get the part review common mistakes from the organization model using the current organization. This will involve a route, controller, and service function.

Acceptance Criteria

  • There is a route at /parts/getAllCommonMistakes that returns an array of common mistakes for the user's current organization
  • there is a controller with an express function that gets all common mistakes for the users organizaiton
  • there is a service function that uses a given organization id and returns an array of common mistakes
  • there is a common mistakes type in shared types which is what the route returns
  • There are unit tests and postman screenshots displaying functionality

Proposed Solution

This endpoint should go along with the create, update, and delete common mistakes endpoints already in the parts folder, and will be very similar to the getAllPartReviewFAQs endpoint and the getAllPartTags endpoint

Mocks

No response

Metadata

Metadata

Assignees

Labels

staleHasn't been updated in a while

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions