Closed ZDenizYStenhaug closed 2 years ago
the methods and tests for the backend can be found in this commit :https://github.com/ZeynepDYilmaz/swe573-Project/commit/6b2c971ff3aa6dfe35536497fc5ff61245c6d6bf
the neccessary changes to the templates, the new view-tag-info.html file and the associated controller can be found in this commit: https://github.com/ZeynepDYilmaz/swe573-Project/commit/cb26733515434618f9dff6bcaa3e31ea4da91716
Will change the name of the method to get-more-info
associated commit can be found here: https://github.com/ZeynepDYilmaz/swe573-Project/commit/ed99e1ac333410b15cec1a11347a5b88261b9020
(contents of this issue is mostly copied from the final exam here The user will be able to tag the services they offer with a string (i.e.
Juggling
). Users will be able to see similar services based on the tags for a service. Also, a user who views this service will be able to get more information about this service by clicking on a button titledshow more information
. The additional information will be retrieved by using the the Wikipedia API with endpointhttps://en.wikipedia.org/w/api.php
. To see an example call to the API for the tagJuggling
:https://en.wikipedia.org/w/api.php?format=json&action=query&prop=extracts&exintro&explaintext&redirects=1&titles=Juggling
The API returns:The contents of the
extract
field should be displayed when the user clicks on theshow more information
button. Your code should contruct and make the call.