diff --git a/_raml/apps/products/examples/post_product_productid_availability_notifications_request.json b/_raml/apps/products/examples/post_product_productid_availability_notifications_request.json new file mode 100644 index 000000000..a1048b9f8 --- /dev/null +++ b/_raml/apps/products/examples/post_product_productid_availability_notifications_request.json @@ -0,0 +1,4 @@ +{ + "email": "john@doe.com", + "locale": "de_DE" +} \ No newline at end of file diff --git a/_raml/apps/products/products.raml b/_raml/apps/products/products.raml index 21d3b6335..a17cf9aa3 100644 --- a/_raml/apps/products/products.raml +++ b/_raml/apps/products/products.raml @@ -146,6 +146,18 @@ post: responses: 204: + /availabilityNotifications: + 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 + 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: diff --git a/_raml/apps/products/schema/post_product_productid_availability_notifications.schema.json b/_raml/apps/products/schema/post_product_productid_availability_notifications.schema.json new file mode 100644 index 000000000..ce90ad4b5 --- /dev/null +++ b/_raml/apps/products/schema/post_product_productid_availability_notifications.schema.json @@ -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" + } + } +}