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
For some reason HyperlinkRelated seems to create an invalid endpoint with HyperlinkRelated which Flask rejects:
Exception has occurred: BuildError (note: full exception trace is shown but execution is paused at: api_GetMagazine) Could not build url for endpoint '/api/publishers' with values ['id']. Did you mean 'publishers' instead?
These are my models:
class MagazineSchema(ma.SQLAlchemySchema):
class Meta:
model = Magazine
id = ma.auto_field()
name = ma.auto_field()
publisher = ma.HyperlinkRelated(
endpoint='/api/publishers')
class PublisherSchema(ma.SQLAlchemySchema):
class Meta:
model = Publisher
id = ma.auto_field()
I did figure it out which leaves me with an issue: if I give the view name the url is wrong (/publishers/) rather than the one shown above. Oh well, I guess I have to either add a URI field by hand or create it in the front-end from the id.
For some reason HyperlinkRelated seems to create an invalid endpoint with HyperlinkRelated which Flask rejects:
Exception has occurred: BuildError (note: full exception trace is shown but execution is paused at: api_GetMagazine) Could not build url for endpoint '/api/publishers' with values ['id']. Did you mean 'publishers' instead?
These are my models:
And this is what that API looks like:
This API works with curl.
And this is how I try to dump the results in GetPublisher:
Am I doing something wrong? I can't figure out what that could be. I tried both with AutoSchema and Schema and both give the same result.
The text was updated successfully, but these errors were encountered: