-
Notifications
You must be signed in to change notification settings - Fork 0
Service products
jradi3 edited this page Jul 18, 2012
·
9 revisions
| Method | Auth? | URL |
|---|---|---|
| GET | false | /product/ |
|
http 200 code {"sold":"","showPrice":"true","currency":"BRL","categorias":"{}","valorEsperado":"99","descricao":"some text","nome":"title of product","idEstado":"1","idPessoa":"6","id":"89"} http 400 code {"message":"invalid params"} |
||
| GET | false | /product?cateogry=:category |
| get all products given a category |
||
| GET | false | /product/:garage |
| get all garage's products |
||
| POST | false | /product |
|
Dictionary structure : {"message":"you must send a valid token"} {"message":"you dont have permission"} http 400 code {"message":"invalid params"} http 200 code |
||
| PUT | false | /product/:id |
|
http 401 code {"message":"you dont have permission"} http 400 code {"message":"invalid params"} |
||
| DELETE | false | /product/:id |
|
http 401 code {"message":"you dont have permission"} http 400 code {"message":"invalid params"} |
||