-
Notifications
You must be signed in to change notification settings - Fork 0
/
apiary.apib
127 lines (91 loc) · 3.37 KB
/
apiary.apib
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
FORMAT: 1A
HOST: http://polls.apiblueprint.org/
# Isha MDM API
API for Isha Master Data Management (MDM) System
# Get contacts [GET /contacts]
# Get contacts by ids [GET /contacts{?ids}]
# Get contact by id [GET /contacts/{id}]
# Add contact [POST /contacts]
# Update contact [PUT /contacts/{id}]
# Match Contacts [GET /contacts/match{?q}]
# Merge Contacts [POST /contacts/merge]
# Suggest merged contact [GET /contacts/merge/suggest{?ids}]
# Antimatch contacts [POST /contacts/merge/antimatch]
# Get contact match groups [GET /contacts/match-groups]
# Get matched contacts [GET /contacts/match-groups/{id}]
# Add contact match group [POST /contacts/match-groups]
# Remove contact match group [DELETE /match-groups/contact/{id}]
# Get constants [GET /constants{?entityType}{&attribute,parentValue}]
# Get countries [GET /countries]
# Get systems [GET /systems]
# Get system [GET /systems/{id}]
# Get object lables [GET /object-labels]
getConstants [GET]: mdm-server/api/constants?entityType=address&attribute=stateProvince&parentValue=india
getCountryConstants: mdm-server/api/countries [GET]
getSystemInfo: mdm-server/api/systems [GET]
getSystemInfo: mdm-server/api/systems/12 [GET]
getObjectLabels: mdm-server/api/object-labels?name=contactInfo [GET]
## Contacts [/contacts]
### List most recently added contacts [GET]
+ Response 200 (application/json)
[
{
"question": "Favourite programming language?",
"published_at": "2015-08-05T08:40:51.620Z",
"choices": [
{
"choice": "Swift",
"votes": 2048
}, {
"choice": "Python",
"votes": 1024
}, {
"choice": "Objective-C",
"votes": 512
}, {
"choice": "Ruby",
"votes": 256
}
]
}
]
### Create a New Contact [POST]
You may create your own question using this action. It takes a JSON
object containing a question and a collection of answers in the
form of choices.
+ Request (application/json)
{
"question": "Favourite programming language?",
"choices": [
"Swift",
"Python",
"Objective-C",
"Ruby"
]
}
+ Response 201 (application/json)
+ Headers
Location: /contact/2
+ Body
{
"question": "Favourite programming language?",
"published_at": "2015-08-05T08:40:51.620Z",
"choices": [
{
"choice": "Swift",
"votes": 0
}, {
"choice": "Python",
"votes": 0
}, {
"choice": "Objective-C",
"votes": 0
}, {
"choice": "Ruby",
"votes": 0
}
]
}
## Contact [/contacts/{id}]
### List most recently added contacts [GET]
+ Response 200 (application/json)