Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"email": "john@doe.com",
"locale": "de_DE"
}
12 changes: 12 additions & 0 deletions _raml/apps/products/products.raml
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,18 @@ post:
responses:
204:

/availability-notifications:
displayName: Product Availability Notification
post:
description: Enables the availability notification for the given product and customer email address. The language of the notification is based on the locale of the customer's storefront. *epagesNow
securedBy: [products_write]
body:
application/json:
example: !include examples/post_product_productid_availability_notifications_request.json
schema: !include schema/post_product_productid_availability_notifications.schema.json
responses:
200:

/crossselling:
displayName: Product crossselling
get:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"$schema": "http://json-schema.org/draft-03/schema",
"title": "POST Availability Schema",
"type": "object",
"properties": {
"email": {
"type": "string",
"description": "email address"
},
"locale": {
"type": "string",
"description": "ISO 8859-1 Locale ID"
}
}
}