Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

https://www.natours.dev/api/v1/tours returning nested data in data #164

Open
lorand-horvath opened this issue Oct 25, 2022 · 0 comments
Open

Comments

@lorand-horvath
Copy link

lorand-horvath commented Oct 25, 2022

The demo site at https://www.natours.dev doesn't work properly due to the underlying API returning data in data nested results, e.g.
https://www.natours.dev/api/v1/tours returns

    "status": "success",
    "results": 10,
    "data": {
        "data": [
            {
                "startLocation": {
                    "type": "Point",
                    "coordinates": [
                        -80.185942,
                        25.774772
                    ],
                    "description": "Miami, USA",
                    "address": "301 Biscayne Blvd, Miami, FL 33132, USA"
                },
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant