Skip to content

Commit 1ae6861

Browse files
authored
Merge pull request #1346 from mjger/issue/UNITY-9702-availability-notification-doc
UNKTY-9702: availability notfication docs
2 parents 450b909 + 576d95e commit 1ae6861

File tree

3 files changed

+31
-0
lines changed

3 files changed

+31
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"email": "john@doe.com",
3+
"locale": "de_DE"
4+
}

_raml/apps/products/products.raml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,18 @@ post:
146146
responses:
147147
204:
148148

149+
/availability-notifications:
150+
displayName: Product Availability Notification
151+
post:
152+
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
153+
securedBy: [products_write]
154+
body:
155+
application/json:
156+
example: !include examples/post_product_productid_availability_notifications_request.json
157+
schema: !include schema/post_product_productid_availability_notifications.schema.json
158+
responses:
159+
200:
160+
149161
/crossselling:
150162
displayName: Product crossselling
151163
get:
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-03/schema",
3+
"title": "POST Availability Schema",
4+
"type": "object",
5+
"properties": {
6+
"email": {
7+
"type": "string",
8+
"description": "email address"
9+
},
10+
"locale": {
11+
"type": "string",
12+
"description": "ISO 8859-1 Locale ID"
13+
}
14+
}
15+
}

0 commit comments

Comments
 (0)