Changes for page DataList Endpoints
Last modified by Outhman Moustaghfir on 2022/06/13 13:17
<
>
edited by Outhman Moustaghfir
on 2021/11/29 15:09
on 2021/11/29 15:09
edited by Outhman Moustaghfir
on 2021/11/29 15:04
on 2021/11/29 15:04
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -193,48 +193,7 @@ 193 193 } 194 194 {{/code}} 195 195 )))|(% style="width:205px" %) 196 -|(% style="width:261px" %)/rest/datalist/{alias} [PUT]|(% style="width:318px" %)update an existing datalist by alias|(% style="width:405px" %)((( 197 -to update the a datalist,we need to replace the {alias} brackets by the concerned datalist's alias **And **add a JSON body like: 198 - 199 -{{code language="json"}} 200 -{ 201 - "alias" : "city", 202 - "label" : { 203 - "fr" : "Ville", 204 - "en" : "City" 205 - }, 206 - "global" : false, 207 - "values" : [ { 208 - "alias" : "Casablanca", 209 - "label" : { 210 - "fr" : "Casablanca", 211 - "en" : "Casablanca" 212 - }, 213 - "value" : "Casablanca" 214 - }, 215 - { 216 - "alias" : "Fez", 217 - "label" : { 218 - "fr" : "Fes", 219 - "en" : "Fez" 220 - }, 221 - "value" : "Fez" 222 - }, 223 - { 224 - "alias" : "London", 225 - "label" : { 226 - "fr" : "Londres", 227 - "en" : "London" 228 - }, 229 - "value" : "london" 230 - }] 231 -} 232 -{{/code}} 233 - 234 -we added an new value to datalist's values list. 235 - 236 - 237 -)))|(% style="width:460px" %) |(% style="width:205px" %) 196 +|(% style="width:261px" %)/rest/datalist/{alias} [PUT]|(% style="width:318px" %)update an existing datalist by alias|(% style="width:405px" %) |(% style="width:460px" %) |(% style="width:205px" %) 238 238 |(% style="width:261px" %)/rest/datalist/{alias} [DELETE]|(% style="width:318px" %)delete a datalist by alias.|(% style="width:405px" %) |(% style="width:460px" %) |(% style="width:205px" %) 239 239 240 240