refactor material prices

This commit is contained in:
Martin
2016-11-01 14:39:59 +01:00
parent bf9fc3ae5a
commit 0663bedc80
7 changed files with 79 additions and 51 deletions
+5 -8
View File
@@ -16,7 +16,7 @@ Calculate price inc VAT of a wallpaper product. The response will contain prices
Sample request
`curl -X GET 'https://api2.photowall.com/prices/wallpaper?width=100&height=50&territory=SE&dealerurl=ackes'`
`curl -X GET 'https://api2.photowall.com/prices/wallpaper?width=200&height=200&territory=SE&dealerurl=ackes'`
Sample response
```
@@ -25,17 +25,14 @@ Sample response
{
"material": "standard-wallpaper",
"material_id": 1,
"price": 295
},
{
"material": "self-adhesive-wallpaper",
"material_id": 2,
"price": 445
"material_price": 295,
"price": 1180
},
{
"material": "premium-wallpaper",
"material_id": 4,
"price": 325
"material_price": 325,
"price": 1300
}
]
}