Closed pablisch closed 5 months ago
If approved, this PR supersedes PR #30.
I had not pushed some changes and also postman tests needed revision as the data in the database had changed, e.g. outdoor space became outdoor area.
PostMan tests don't work anymore. The server doesn't find the "cafes" collection; the version requested (v1.0) from the endpoint URL is different than that in the MongoDB collection (v.0). OR maybe I cannot request anymore as I have reached the limited daily requests in Postman for today.
Curious. Are you on that branch with the API server running. It works for me. If it does not work for you we should investigate.
The version numbers are referring to different things.
You can also enter localhost:8080/api/v1.0/cafes/selected?facilities=visual%20impaired,outdoor%20area in a browser and should get a JSON return.
What result/status do you get?
Created an endpoint to return matching cafes based on facilities available.
NOTE: This includes the current Cafe Model and adds a necessary change. It makes sense to make any further changes to the Cafe Model from this branch.
The endpoint is complete as far as can be done at this time.
Future adaptions:
It seems helpful to merge this currently working branch into main for group visibilty.