Arquisoft / wiq_en1a

Wiq_en1a a web application by HappySw. Come and try our questions
http://158.179.217.182:3000
2 stars 0 forks source link

Refactored question service and added new category: 'Guess the city' #79

Closed ChristianFN2 closed 6 months ago

ChristianFN2 commented 6 months ago

Now to create a new category we only have to formulate the sparql query in the format I wrote in the documentation of the method and the question will be generated accordingly, no need to create a new method for these type of questions, just create a new endpoint and use the parametrized method with the adjusted query.

Also, the answer endpoint is made to be universal for all categories of the same type, so there is no need to create a new one for each category, only if a new type is created.

ChristianFN2 commented 6 months ago

I have to note also that, in the case of the city images, they could be resized better as they have quite variable sizes in contrast with flag images.

adriiglz commented 6 months ago

Refactored code looks great for me, and the new cathegory proves it. We can now extend the number of cathegories easily