Skip to content

Instantly share code, notes, and snippets.

@blake41
Last active May 5, 2016 01:49
Show Gist options
  • Save blake41/a416c7bb2c6d94fd3d89086c3b7ef686 to your computer and use it in GitHub Desktop.
Save blake41/a416c7bb2c6d94fd3d89086c3b7ef686 to your computer and use it in GitHub Desktop.
JSON
[{
"title": "my products title",
"description": "this is a blob of html usually created by a WYSIWYG",
"vendor_id": "you can hard code this once we create you in the system",
"flavors": [
"chocolate",
"orange"
],
"image": "some url with an image",
"variants": [
{
"price": "10",
"size": "30ml",
"strength": "6mg - (0.6%)",
"quantity": 10
}
]
}]
Domain
http://breazy-partner.herokuapp.com
Endpoints
/api/products/create_all
Headers
Content-Type: application/json
Response
I'll send you back standard response or error codes
201, 422, 500
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment