-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcustomer-system
61 lines (58 loc) · 1.47 KB
/
customer-system
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#%RAML 1.0
baseUri: https://mocksvc.mulesoft.com/mocks/1333bcc7-b446-45bb-aaa8-0f085f9e9685 #
title: Catalyst Retail - Customer System API
version: v1.0
types:
address:
type: object
properties:
street?: string?
city?: string?
zipCode?: string?
state?: string?
country?: string?
contact:
type: object
properties:
id?: string
customerId?: string
firstName?: string
lastName: string
phone?: string
email?: string
deliveryAddress?: address?
postalAddress?: address?
/customers:
displayName: Customer contact
post:
description: Create customer contact
body:
application/json:
type: contact
example: !include examples/post_contact_example.json
responses:
201:
body:
application/json:
example: |
{
"id": "sfdc|1234567890",
"customerId": "provider|0123456789"
}
/{customerId}:
get:
description: Return customer information by customerId
responses:
200:
body:
application/json:
type: contact
example: !include examples/get_contact_example.json
put:
description: Update customer contact by customerId
body:
application/json:
type: contact
example: !include examples/put_contact_example.json
responses:
200: