From what I’ve learned so far I know I have to do something in the serializer to solve the following, but a bit lost…
My api, return an object named PortfolioSummaryDto, and my Ember model is named “portfoliolistitem”.
This gives me the following error (which make sense) Encountered "portfolio_summary_dtos" in payload, but no model was found for model name "portfolio-summary-dto" (resolved model name using dealview1@serializer:-rest:.modelNameFromPayloadKey("portfolio_summary_dtos"))
Going forward I’d like to call any API call, where the returned object/s and its names (and property names) are totally different from my Ember models.
Can someone point me to some reading how one “map” api objects to ember models?
Aucun commentaire:
Enregistrer un commentaire