Skip to content

Extend CategoryQuotationResources class #30

Description

@Wom-ba-tron
  • Within the showQuoteBasedOnCategory(@QueryParam("category") String category) method
  • Using the CategoryQuoteDAO class, obtain a list of quotations
  • Randomly select a quotation from the list of quotations returned from the query
  • If the database query throws an error create a quote object and set the quotation with the error message and the category with the error title e.g. SQL exception
  • Return the selected quote object, or the quote containing the error to the invoker.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions