forked from conwetlab/WMarket
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathReadme.txt
260 lines (161 loc) · 6.83 KB
/
Readme.txt
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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
1) Install MySQL and create a database "marketplace" for user root. Alternatively you can change the properties\database.properties file
2) Update properties\marketplace.properties according to your environment
3) Run the database\ddl_mysql5.sql script
Basic Operations for Browsing:
User: demo1234
Password: demo1234
All stores: [GET] http://localhost:8080/FiwareMarketplace/v1/registration/stores/
Specific store: [GET] http://localhost:8080/FiwareMarketplace/v1/offering/store/[StoreName]
All services for a given store: [GET] http://localhost:8080/FiwareMarketplace/v1/offering/store/testStore/offerings/
Specific Offering: [GET] http://localhost:8080/FiwareMarketplace/v1/offering/store/[StoreName]/offering/[OfferingName]
Fulltext Search: [GET] http://localhost:8080/FiwareMarketplace/v1/search/offerings/fulltext/[SearchString]
CRUD Operations
User: demo1234
Password: demo1234
____________________________________________________________
Save User
Save User Request:
Resource URL:
http://localhost:8080/FiwareMarketplace/v1/registration/userManagement/user
Header:
{Accept-Encoding=[gzip, deflate]}
Body:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><user username="demoCompany"><company>demoCompany</company><email>[email protected]</email><password>demoCompany</password></user>
Save UserResponse:
Response Status:
201
____________________________________________________________
Find User
Find User Request:
Resource URL:
http://localhost:8080/FiwareMarketplace/v1/registration/userManagement/user/demoCompany
Header:
{Accept-Encoding=[gzip, deflate], Accept=[application/xml]}
Body:
null
Find UserResponse:
Response Status:
200
____________________________________________________________
Update User
Update User Request:
Resource URL:
http://localhost:8080/FiwareMarketplace/v1/registration/userManagement/user/demoCompany
Header:
{Accept-Encoding=[gzip, deflate], Accept=[application/xml]}
Body:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><user username="demoCompany"><company>demoCompany2</company><email>[email protected]</email><password>demoCompany</password><registrationDate>2012-06-28T14:29:44+02:00</registrationDate></user>
Update UserResponse:
Response Status:
200
____________________________________________________________
Delete User
Delete User Request:
Resource URL:
http://localhost:8080/FiwareMarketplace/v1/registration/userManagement/user/demoCompany
Header:
{Accept-Encoding=[gzip, deflate], Accept=[application/xml]}
Body:
null
Delete UserResponse:
Response Status:
200
________________________________________________________________________________________________________________________
________________________________________________________________________________________________________________________
Save Store
Save Store Request:
Resource URL:
http://localhost:8080/FiwareMarketplace/v1/registration/store
Header:
{Accept-Encoding=[gzip, deflate]}
Body:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><resource name="testName12356"><url>http://www.test1235.de</url></resource>
Save StoreResponse:
Response Status:
201
____________________________________________________________
Find Store
Find Store Request:
Resource URL:
http://localhost:8080/FiwareMarketplace/v1/registration/store/testName12356
Header:
{Accept-Encoding=[gzip, deflate], Accept=[application/xml]}
Body:
null
Find StoreResponse:
Response Status:
200
____________________________________________________________
Update Store
Update Store Request:
Resource URL:
http://localhost:8080/FiwareMarketplace/v1/registration/store/testName12356
Header:
{Accept-Encoding=[gzip, deflate], Accept=[application/xml]}
Body:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><resource name="testName12356"><creator username="demo"><company>SAP AG</company><email>[email protected]</email><password>demo</password><registrationDate>2012-06-13T16:43:56+02:00</registrationDate></creator><lasteditor username="demo"><company>SAP AG</company><email>[email protected]</email><password>demo</password><registrationDate>2012-06-13T16:43:56+02:00</registrationDate></lasteditor><registrationDate>2012-06-28T14:41:23+02:00</registrationDate><url>http://www.xxx.de</url></resource>
Update StoreResponse:
Response Status:
200
____________________________________________________________
Delete Store
Delete Store Request:
Resource URL:
http://localhost:8080/FiwareMarketplace/v1/registration/store/testName12356
Header:
{Accept-Encoding=[gzip, deflate], Accept=[application/xml]}
Body:
null
Delete StoreResponse:
Response Status:
200
________________________________________________________________________________________________________________________
________________________________________________________________________________________________________________________
Save Service
Save Service Request:
Resource URL:
http://localhost:8080/FiwareMarketplace/v1/offering/store/testStore/offering
Header:
{Accept-Encoding=[gzip, deflate]}
Body:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><resource name="myService"><url>http://qkad00202897a.dhcp.qkal.sap.corp:7777/data/rdf/WarrantyManagementSolution_Master.rdf</url></resource>
Save ServiceResponse:
Response Status:
201
____________________________________________________________
Find Service
Find Service Request:
Resource URL:
http://localhost:8080/FiwareMarketplace/v1/offering/store/testStore/offering/myService
Header:
{Accept-Encoding=[gzip, deflate], Accept=[application/xml]}
Body:
null
Find ServiceResponse:
Response Status:
200
____________________________________________________________
Update Service
Update Service Request:
Resource URL:
http://localhost:8080/FiwareMarketplace/v1/offering/store/testStore/offering/myService
Header:
{Accept-Encoding=[gzip, deflate], Accept=[application/xml]}
Body:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><resource name="myService2"><creator username="demo"><company>SAP AG</company><email>[email protected]</email><password>demo</password><registrationDate>2012-06-13T16:43:56+02:00</registrationDate></creator><id>14</id><lasteditor username="demo"><company>SAP AG</company><email>[email protected]</email><password>demo</password><registrationDate>2012-06-13T16:43:56+02:00</registrationDate></lasteditor><registrationDate>2012-06-28T14:47:06+02:00</registrationDate><url>http://qkad00202897a.dhcp.qkal.sap.corp:7777/data/rdf/WarrantyManagementSolution_Master.rdf</url></resource>
Update ServiceResponse:
Response Status:
200
____________________________________________________________
Delete Service
Delete Service Request:
Resource URL:
http://localhost:8080/FiwareMarketplace/v1/offering/store/testStore/offering/myService2
Header:
{Accept-Encoding=[gzip, deflate], Accept=[application/xml]}
Body:
null
Delete ServiceResponse:
Response Status:
200
____________________________________________________________