Skip to content
Open
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": "[email protected]",
"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:

/availabilityNotifications:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/availabilityNotifications:
/availability-notifications:

displayName: Product Availability Notification
post:
description: Modifies information on the email notification assignments of a single product by adding the email address of the customer and the storefront locale. *epagesNow
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
description: Modifies information on the email notification assignments of a single product by adding the email address of the customer and the storefront locale. *epagesNow
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

I would phrase the description differently because in my opinion "modifies information on the email notification assignment" is a bit abstract. Let me know what you think.

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"
}
}
}