Pensano-dev / aura-mobile-app

5 stars 0 forks source link

Pjtp/feat/selected cafes endpoint #39

Closed pablisch closed 5 months ago

pablisch commented 5 months ago

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.

pablisch commented 5 months ago

If approved, this PR supersedes PR #30.

pablisch commented 5 months ago

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.

pablisch commented 5 months ago

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?