Advertisement
Guest User

Untitled

a guest
Aug 28th, 2016
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. - apiHost/businesses returns all businesses
  2. - apiHost/businesses/business_id returns the business with that id **
  3. - apiHost/businesses/business_id/prices returns the prices in the business
  4. - apiHost/businesses/business_id/prices/prices_id returns the price with the id **
  5.  
  6. export default DS.Model.extend({
  7. address: DS.attr('string'),
  8. description: DS.attr('string'),
  9. price: DS.hasMany('price')
  10. });
  11.  
  12. export default DS.Model.extend({
  13. cost: DS.attr('string'),
  14. description: DS.attr('string'),
  15. business:DS.belongsTo('business')
  16. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement