This project is a proof a concept to demonstrate polymorphism issues with RESTAdapter in Ember-Data 4.12. It has been designed only for support purpose.
You will need the following things properly installed on your computer.
git clone <repository-url>
this repositorycd ember-data-polymorphic
yarn
yarn serve:stack
- Visit your app at http://localhost:4200.
- Query your backend at http://localhost:3000.
Once the app is running, go on the app homepage and click twice on the "Zune 30".
Open your console to see the error.
classDiagram
direction TB
Brand <|-- FormerBrand
Article "1..**" -- "1" Brand
class Brand{
+number id
+string name
+string country
+date startDate
}
class FormerBrand{
+date endDate
}
class Article{
+number id
+string name
+number price
}