You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<ul>
{% for photo in house.photos %}
<li>{{ photo.path }}</li>
{% endfor %}
</ul>
It throws an exception:
Execution failed for request: GET http://my-api/photo?house_id=3 HTTP/1.1: HTTPCode 404, body {"error":{"code":404,"message":"Not Found"}} ").
What am I doing wrong?
(I copy pasted my entitiy files from my API project to this project I think I need to change the relationships but dont know how)
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
My api returns this json at my-api/house/3:
There is no other Rest\Get in my api service.
I specified the @Datasource in my House entity
Each House has a OneToMany relationship with Photo and ManyToOne with Agency.
Now when I parse the json in my controller:
And fetch photos in the view:
It throws an exception:
What am I doing wrong?
(I copy pasted my entitiy files from my API project to this project I think I need to change the relationships but dont know how)
The text was updated successfully, but these errors were encountered: