Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - apiHost/businesses returns all businesses
- - apiHost/businesses/business_id returns the business with that id **
- - apiHost/businesses/business_id/prices returns the prices in the business
- - apiHost/businesses/business_id/prices/prices_id returns the price with the id **
- export default DS.Model.extend({
- address: DS.attr('string'),
- description: DS.attr('string'),
- price: DS.hasMany('price')
- });
- export default DS.Model.extend({
- cost: DS.attr('string'),
- description: DS.attr('string'),
- business:DS.belongsTo('business')
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement