Provisioning Management » History » Version 23
jerome bonnet, 09/17/2015 04:45 PM
| 1 | 23 | jerome bonnet | {{>toc}} |
|---|---|---|---|
| 2 | |||
| 3 | h1. Provisioning Management - _*prov*_ Method |
||
| 4 | |||
| 5 | Provisionning Management allows a thirdParty Application to create, update, delete an account of FamilyWall, Set the member profile right, set member premium type and select/update the services enable for such user. |
||
| 6 | |||
| 7 | h2. Search User - _provsearch_ |
||
| 8 | |||
| 9 | This method returns the accountId of a Valid user by Identifiers (email, login or MSISDN) |
||
| 10 | |||
| 11 | By sending an HTTP request http://devserver/api/prov/search?identifier=test@gmail.com |
||
| 12 | |||
| 13 | *Parameters*: |
||
| 14 | |||
| 15 | |*Name*|*Type*|*Description*| |
||
| 16 | |identifier|String|value of identifier to search for| |
||
| 17 | |type|Enum|Email,Msisdn,Login| |
||
| 18 | |||
| 19 | *Response*: |
||
| 20 | <pre><code class="javascript"> |
||
| 21 | { |
||
| 22 | "a01":{ |
||
| 23 | "r":{ |
||
| 24 | "r":"12345" |
||
| 25 | }, |
||
| 26 | "cn":"provsearch" |
||
| 27 | } |
||
| 28 | } |
||
| 29 | </code></pre> |
||
| 30 | The Method response is a *Long* which represents the _AccountId_ of the account searched. |
||
| 31 | |||
| 32 | In case, the method encounter any error, the response is an exception with specific parameters detailed below. |
||
| 33 | |||
| 34 | *Error*: |
||
| 35 | |||
| 36 | |*Error Code*|*Type*|*Value*|*Description*| |
||
| 37 | |FizApiAccIdentifierInvalidException|Ex|21|Identifier has an invalid format| |
||
| 38 | |FizApiEmailInvalidException|Ex|17|Email has an invalid format| |
||
| 39 | |FizApiMsisdnInvalidException |Ex|22|MSISDN has an invalid format| |
||
| 40 | |FizAccountNotFoundException |Ex|1|account not found| |
||
| 41 | |FizApiInvalidParameterException|un|502|invalid token| |
||
| 42 | |FizApiUnattendedExceptionDefaultImpl|un|500|unattended error| |
||
| 43 | |||
| 44 | h2. Create Family - _provcreatefamily_ |
||
| 45 | |||
| 46 | This method create a family with a founder member. A family cannot exist without at least one member, therefore founderId parameter is mandatory. |
||
| 47 | |||
| 48 | By sending an HTTP request http://devserver/api/prov/createfamily |
||
| 49 | |||
| 50 | *Parameters*: |
||
| 51 | |||
| 52 | |*Name*|*Type*|*Description*| |
||
| 53 | |FamilyName|String|Name of the Family| |
||
| 54 | |FamilyImage|file|Binary file of Family image (optional)| |
||
| 55 | |founderId|Long|account id of the founder of this family| |
||
| 56 | |||
| 57 | *Response*: |
||
| 58 | <pre><code class="javascript"> |
||
| 59 | { |
||
| 60 | a00 : { |
||
| 61 | r : { |
||
| 62 | r : { |
||
| 63 | coverDefault : false, |
||
| 64 | family_id : 61, |
||
| 65 | pictureDefault : false, |
||
| 66 | metaId : family/61, |
||
| 67 | members : [ |
||
| 68 | { |
||
| 69 | familyId : family/61, |
||
| 70 | joinDate : 2014-01-03T13:43:09.000Z, |
||
| 71 | role : Dad, |
||
| 72 | metaId : familymember/42_61, |
||
| 73 | isFirstFamily : true, |
||
| 74 | lastLoginDate : 2015-09-16T14:46:10.000Z, |
||
| 75 | right : SuperAdmin, |
||
| 76 | account : { |
||
| 77 | accountId : 42, |
||
| 78 | deleted : false, |
||
| 79 | identifiers : [ |
||
| 80 | { |
||
| 81 | validated : false, |
||
| 82 | id : 63, |
||
| 83 | type : Login, |
||
| 84 | value : homersimpsontest |
||
| 85 | } |
||
| 86 | ], |
||
| 87 | name : founder, |
||
| 88 | lastLoginDate : 2015-09-16T16:05:15.000Z, |
||
| 89 | creationDate : 2014-01-03T13:43:06.000Z, |
||
| 90 | termsChecked : true |
||
| 91 | } |
||
| 92 | } |
||
| 93 | ], |
||
| 94 | name : Simpson12, |
||
| 95 | pictureUri : http://localhost:8080/media/61_20ck56bl_43?, |
||
| 96 | coverUri : http://localhost:8080/media/61_8cz2k3bk_3222? |
||
| 97 | } |
||
| 98 | }, |
||
| 99 | cn : provcreatefamily |
||
| 100 | } |
||
| 101 | </code></pre> |
||
| 102 | The Method response is the created family. |
||
| 103 | |||
| 104 | In case, the method encounter any error, the response is an exception with specific parameters detailed below. |
||
| 105 | |||
| 106 | *Error*: |
||
| 107 | |||
| 108 | |*Error Code*|*Type*|*Value*|*Description*| |
||
| 109 | |FizApiInvalidParameterException|un|502|invalid token| |
||
| 110 | |FizApiUnattendedExceptionDefaultImpl|un|500|unattended error| |
||
| 111 | |FizAccountNotFoundException |Ex|1|account not found| |
||
| 112 | |||
| 113 | h2. Create Family - _provfoundfamily_ |
||
| 114 | |||
| 115 | This method create both a user and a family. Because a family cannot exist without a founder and an account must be in at least one family, in order to avoid the chicken-and-egg problem, this api allows to create both objects at the same time. |
||
| 116 | |||
| 117 | By sending an HTTP request http://devserver/api/prov/foundfamily |
||
| 118 | |||
| 119 | *Parameters*: |
||
| 120 | |||
| 121 | |*Name*|*Type*|*Description*| |
||
| 122 | |familyName|String|Name of the Family| |
||
| 123 | |familyImage|file|Binary file of Family image (optional)| |
||
| 124 | |type|Enum|Email,Msisdn,Login| |
||
| 125 | |identifier|String|User Identifier Email or MSISDN depending on the type| |
||
| 126 | |firstname|String|User First Name| |
||
| 127 | |locale|String|Country Code International as 2 letters language code as ISO 639 and 2 letters country code as ISO 3166 separated by an underscore or a dash.| |
||
| 128 | |picture|file|Binary file of picture for the user (optional)| |
||
| 129 | |||
| 130 | *Response*: |
||
| 131 | <pre><code class="javascript"> |
||
| 132 | { |
||
| 133 | a00 : { |
||
| 134 | r : { |
||
| 135 | r : { |
||
| 136 | coverDefault : false, |
||
| 137 | family_id : 61, |
||
| 138 | pictureDefault : false, |
||
| 139 | metaId : family/61, |
||
| 140 | members : [ |
||
| 141 | { |
||
| 142 | familyId : family/61, |
||
| 143 | joinDate : 2014-01-03T13:43:09.000Z, |
||
| 144 | role : Dad, |
||
| 145 | metaId : familymember/42_61, |
||
| 146 | isFirstFamily : true, |
||
| 147 | lastLoginDate : 2015-09-16T14:46:10.000Z, |
||
| 148 | right : SuperAdmin, |
||
| 149 | account : { |
||
| 150 | accountId : 42, |
||
| 151 | deleted : false, |
||
| 152 | identifiers : [ |
||
| 153 | { |
||
| 154 | validated : false, |
||
| 155 | id : 63, |
||
| 156 | type : Login, |
||
| 157 | value : homersimpsontest |
||
| 158 | } |
||
| 159 | ], |
||
| 160 | name : founder, |
||
| 161 | lastLoginDate : 2015-09-16T16:05:15.000Z, |
||
| 162 | creationDate : 2014-01-03T13:43:06.000Z, |
||
| 163 | termsChecked : true |
||
| 164 | } |
||
| 165 | } |
||
| 166 | ], |
||
| 167 | name : Simpson12, |
||
| 168 | pictureUri : http://localhost:8080/media/61_20ck56bl_43?, |
||
| 169 | coverUri : http://localhost:8080/media/61_8cz2k3bk_3222? |
||
| 170 | } |
||
| 171 | }, |
||
| 172 | cn : provfoundfamily |
||
| 173 | } |
||
| 174 | </code></pre> |
||
| 175 | |||
| 176 | In case, the method encounter any error, the response is an exception with specific parameters detailed below. |
||
| 177 | |||
| 178 | *Error*: |
||
| 179 | |||
| 180 | |*Error Code*|*Type*|*Value*|*Description*| |
||
| 181 | |FizApiInvalidParameterException|un|502|invalid token| |
||
| 182 | |FizApiUnattendedExceptionDefaultImpl|un|500|unattended error| |
||
| 183 | |FizAccountAlreadyExistsException |Ex|2|Account Identifier already exists| |
||
| 184 | |FizApiAccIdentifierInvalidException|Ex|21|Identifier has an invalid format| |
||
| 185 | |FizApiEmailInvalidException|Ex|17|Email has an invalid format| |
||
| 186 | |FizApiMsisdnInvalidException |Ex|22|MSISDN has an invalid format| |
||
| 187 | |||
| 188 | h2. Update Family - _provupdatefamily_ |
||
| 189 | |||
| 190 | This method update a family to change the name or picture of a family. |
||
| 191 | |||
| 192 | By sending an HTTP request http://devserver/api/prov/updatefamily?familyId=12345 |
||
| 193 | |||
| 194 | *Parameters*: |
||
| 195 | |||
| 196 | |*Name*|*Type*|*Description*| |
||
| 197 | |||
| 198 | |FamilyName|String|Name of the Family| |
||
| 199 | |familyId|Long|Family Id | |
||
| 200 | |FamilyImage|file|Binary file of Family image| |
||
| 201 | |||
| 202 | *Response*: |
||
| 203 | <pre><code class="javascript"> |
||
| 204 | { |
||
| 205 | a00 : { |
||
| 206 | r : { |
||
| 207 | r : { |
||
| 208 | coverDefault : false, |
||
| 209 | family_id : 61, |
||
| 210 | pictureDefault : false, |
||
| 211 | metaId : family/61, |
||
| 212 | members : [ |
||
| 213 | { |
||
| 214 | familyId : family/61, |
||
| 215 | joinDate : 2014-01-03T13:43:09.000Z, |
||
| 216 | role : Dad, |
||
| 217 | metaId : familymember/42_61, |
||
| 218 | isFirstFamily : true, |
||
| 219 | lastLoginDate : 2015-09-16T14:46:10.000Z, |
||
| 220 | right : SuperAdmin, |
||
| 221 | account : { |
||
| 222 | accountId : 42, |
||
| 223 | deleted : false, |
||
| 224 | identifiers : [ |
||
| 225 | { |
||
| 226 | validated : false, |
||
| 227 | id : 63, |
||
| 228 | type : Login, |
||
| 229 | value : homersimpsontest |
||
| 230 | } |
||
| 231 | ], |
||
| 232 | name : founder, |
||
| 233 | lastLoginDate : 2015-09-16T16:05:15.000Z, |
||
| 234 | creationDate : 2014-01-03T13:43:06.000Z, |
||
| 235 | termsChecked : true |
||
| 236 | } |
||
| 237 | } |
||
| 238 | ], |
||
| 239 | name : Simpson12, |
||
| 240 | pictureUri : http://localhost:8080/media/61_20ck56bl_43?, |
||
| 241 | coverUri : http://localhost:8080/media/61_8cz2k3bk_3222? |
||
| 242 | } |
||
| 243 | }, |
||
| 244 | cn : provupdatefamily |
||
| 245 | } |
||
| 246 | </code></pre> |
||
| 247 | The Method response is the updated family. |
||
| 248 | |||
| 249 | In case, the method encounter any error, the response is an exception with specific parameters detailed below. |
||
| 250 | |||
| 251 | *Error*: |
||
| 252 | |||
| 253 | |*Error Code*|*Type*|*Value*|*Description*| |
||
| 254 | |FizFamilyDoesNotExistException|Ex|510|Family Id Does not Exists| |
||
| 255 | |||
| 256 | |||
| 257 | h2. Delete Family - _provdeletefamily_ |
||
| 258 | |||
| 259 | This method remove a family and all his contents. If the family have members, they are removed from the family. If, as a result from this operation, some members are left without a family, they are deleted, too. |
||
| 260 | |||
| 261 | By sending an HTTP request http://devserver/api/prov/deletefamily?familyId=12345 |
||
| 262 | |||
| 263 | *Parameters*: |
||
| 264 | |||
| 265 | |*Name*|*Type*|*Description*| |
||
| 266 | |||
| 267 | |familyId|Long|Family Id | |
||
| 268 | |||
| 269 | |||
| 270 | *Response*: |
||
| 271 | <pre><code class="javascript"> |
||
| 272 | { |
||
| 273 | "a01":{ |
||
| 274 | "r":{ |
||
| 275 | "r":"true" |
||
| 276 | }, |
||
| 277 | "cn":"provdeletefamily" |
||
| 278 | } |
||
| 279 | } |
||
| 280 | </code></pre> |
||
| 281 | The Method response is true when the operation is successful. |
||
| 282 | |||
| 283 | In case the method encounter any error, the response is an exception with specific parameters detailed below. |
||
| 284 | |||
| 285 | *Error*: |
||
| 286 | |||
| 287 | |*Error Code*|*Type*|*Value*|*Description*| |
||
| 288 | |FizFamilyDoesNotExistException|Ex|510|Family Id Does not Exists| |
||
| 289 | |||
| 290 | |||
| 291 | h2. Create Account - _provcreateaccount_ |
||
| 292 | |||
| 293 | This method create a member for a family and set the member type (member=(0),adminsitrator=(1),founder=(2)). Note that after this method, the user receive an invitation email or an SMS with link to complete the account creation. |
||
| 294 | |||
| 295 | By sending an HTTP request http://devserver/api/prov/createaccount?type=Email&identifier=test@gmail.com |
||
| 296 | &accountType=2&locale=FR&familyId=12345&UserName=myFirstName&Locale=fr |
||
| 297 | |||
| 298 | *Parameters*: |
||
| 299 | |||
| 300 | |*Name*|*Type*|*Description*| |
||
| 301 | |familyId|Long|Family Id where the member shall be added| |
||
| 302 | |type|Enum|Email,Msisdn,Login| |
||
| 303 | |identifier|String|User Identifier Email or MSISDN depending on the type| |
||
| 304 | |firstname|String|User First Name| |
||
| 305 | |locale|String|Country Code International as 2 letters language code as ISO 639 and 2 letters country code as ISO 3166 separated by an underscore or a dash.| |
||
| 306 | |accountType|Enum|Account Type (None,Admin,SuperAdmin) None=normal member, Admin=administrator| |
||
| 307 | |picture|file|Binary file of picture for the user (optional)| |
||
| 308 | |||
| 309 | *Response*: |
||
| 310 | <pre><code class="javascript"> |
||
| 311 | { |
||
| 312 | "a01":{ |
||
| 313 | "r":{ |
||
| 314 | "r": { |
||
| 315 | accountId : 42, |
||
| 316 | deleted : false, |
||
| 317 | identifiers : [ |
||
| 318 | { |
||
| 319 | validated : false, |
||
| 320 | id : 63, |
||
| 321 | type : Login, |
||
| 322 | value : homersimpsontest |
||
| 323 | } |
||
| 324 | ], |
||
| 325 | name : founder, |
||
| 326 | lastLoginDate : 2015-09-16T16:05:15.000Z, |
||
| 327 | creationDate : 2014-01-03T13:43:06.000Z, |
||
| 328 | termsChecked : true |
||
| 329 | } |
||
| 330 | }, |
||
| 331 | "cn":"provcreateaccount" |
||
| 332 | } |
||
| 333 | } |
||
| 334 | </code></pre> |
||
| 335 | The Method response is a *Long* which represents the _AccountId_ of the account created. |
||
| 336 | |||
| 337 | In case, the method encounter any error, the response is an exception with specific parameters detailed below. |
||
| 338 | |||
| 339 | *Error*: |
||
| 340 | |||
| 341 | |*Error Code*|*Type*|*Value*|*Description*| |
||
| 342 | |FizFamilyDoesNotExistException|Ex|510|Family Id Does not Exists| |
||
| 343 | |FizAccountAlreadyExistsException |Ex|2|Account Identifier already exists| |
||
| 344 | |AFizInvalidIdentifierException|Ex|21|Identifier has an invalid format| |
||
| 345 | |AFizInvalidEmailException|Ex|17|Email has an invalid format| |
||
| 346 | |AFizInvalidMSISDNException|Ex|22|MSISDN has an invalid format| |
||
| 347 | |||
| 348 | h2. Update Account - _provupdateaccount_ |
||
| 349 | |||
| 350 | This method update a member for a family and set the member type (member=(0),administrator=(1),founder=(2)). |
||
| 351 | |||
| 352 | By sending an HTTP request http://devserver/api/prov/updateaccount?locale=FR&UserName=myNewFirstName&Locale=fr&accountId=123455 |
||
| 353 | |||
| 354 | *Parameters*: |
||
| 355 | |||
| 356 | |*Name*|*Type*|*Description*| |
||
| 357 | |accountId|Long|Account Id of the modified account| |
||
| 358 | |UserName|String|User First Name| |
||
| 359 | |Locale|String|Country Code International Two letters| |
||
| 360 | |Picture|file|Binary file of picture for the user (optional)| |
||
| 361 | |||
| 362 | |||
| 363 | *Response*: |
||
| 364 | <pre><code class="javascript"> |
||
| 365 | { |
||
| 366 | "a01":{ |
||
| 367 | "r":{ |
||
| 368 | "r": { |
||
| 369 | accountId : 42, |
||
| 370 | deleted : false, |
||
| 371 | identifiers : [ |
||
| 372 | { |
||
| 373 | validated : false, |
||
| 374 | id : 63, |
||
| 375 | type : Login, |
||
| 376 | value : homersimpsontest |
||
| 377 | } |
||
| 378 | ], |
||
| 379 | name : founder, |
||
| 380 | lastLoginDate : 2015-09-16T16:05:15.000Z, |
||
| 381 | creationDate : 2014-01-03T13:43:06.000Z, |
||
| 382 | termsChecked : true |
||
| 383 | } |
||
| 384 | }, |
||
| 385 | "cn":"provupdateaccount" |
||
| 386 | } |
||
| 387 | } |
||
| 388 | </code></pre> |
||
| 389 | The Method response is a *Long* which represents the _AccountId_ of the account updated. |
||
| 390 | |||
| 391 | In case, the method encounter any error, the response is an exception with specific parameters detailed below. |
||
| 392 | |||
| 393 | *Error*: |
||
| 394 | |||
| 395 | |*Error Code*|*Type*|*Value*|*Description*| |
||
| 396 | |FizAccountNotFoundException |Ex|1|account not found| |
||
| 397 | |||
| 398 | |||
| 399 | h2. Add Account to family- _provaddaccount2family_ |
||
| 400 | |||
| 401 | This method add an existing account to a family and set the member type (member=(0),administrator=(1),founder=(2)). |
||
| 402 | |||
| 403 | By sending an HTTP request http://devserver/api/prov/addaccount2family?accountId=123455&familyId=333445 |
||
| 404 | |||
| 405 | *Parameters*: |
||
| 406 | |||
| 407 | |*Name*|*Type*|*Description*| |
||
| 408 | |accountId|Long|Account Id where the member shall added| |
||
| 409 | |familyId|Long|Family Id where the member shall be added| |
||
| 410 | |AccountType|Long|Account Type (None,Admin,SuperAdmin) None=normal member, Admin=administrator| |
||
| 411 | |||
| 412 | *Response*: |
||
| 413 | <pre><code class="javascript"> |
||
| 414 | { |
||
| 415 | "a01":{ |
||
| 416 | "r":{ |
||
| 417 | "r":"true" |
||
| 418 | }, |
||
| 419 | "cn":"provupdateaccount" |
||
| 420 | } |
||
| 421 | } |
||
| 422 | </code></pre> |
||
| 423 | The Method response is true when the operation is successful. |
||
| 424 | |||
| 425 | In case the method encounter any error, the response is an exception with specific parameters detailed below. |
||
| 426 | |||
| 427 | *Error*: |
||
| 428 | |||
| 429 | |*Error Code*|*Type*|*Value*|*Description*| |
||
| 430 | |FizFamilyDoesNotExistException|Ex|510|Family Id Does not Exists| |
||
| 431 | |FizAccountNotFoundException |Ex|1|account not found| |
||
| 432 | |FizAccountAlreadyInThisFamilyException |Ex|12|ccount already in the family| |
||
| 433 | |||
| 434 | h2. Remove Account from family- _provremoveaccount2family_ |
||
| 435 | |||
| 436 | This method remove an existing account from a family. |
||
| 437 | |||
| 438 | By sending an HTTP request http://devserver/api/prov/removeaccount2family?accountId=123455&familyId=333445 |
||
| 439 | |||
| 440 | *Parameters*: |
||
| 441 | |||
| 442 | |*Name*|*Type*|*Description*| |
||
| 443 | |accountId|Long|Account Id of the user to be removed from the family| |
||
| 444 | |familyId|Long|Family Id of the family from which the user shall be removed from| |
||
| 445 | |||
| 446 | *Response*: |
||
| 447 | <pre><code class="javascript"> |
||
| 448 | { |
||
| 449 | "a01":{ |
||
| 450 | "r":{ |
||
| 451 | "r":"true" |
||
| 452 | }, |
||
| 453 | "cn":"provupdateaccount" |
||
| 454 | } |
||
| 455 | } |
||
| 456 | </code></pre> |
||
| 457 | The Method response is true when the operation is successful. |
||
| 458 | |||
| 459 | In case the method encounter any error, the response is an exception with specific parameters detailed below. |
||
| 460 | |||
| 461 | *Error*: |
||
| 462 | |||
| 463 | |*Error Code*|*Type*|*Value*|*Description*| |
||
| 464 | |FizFamilyDoesNotExistException|Ex|510|Family Id Does not Exists| |
||
| 465 | |FizAccountNotFoundException |Ex|1|account not found| |
||
| 466 | |||
| 467 | h2. Delete Account _provdeleteaccount_ |
||
| 468 | |||
| 469 | This method delete an existing account. It will be removed from all his families beforehand. Families without remaining members are definitively deleted. |
||
| 470 | |||
| 471 | By sending an HTTP request http://devserver/api/prov/deleteaccount?accountId=123455 |
||
| 472 | |||
| 473 | *Parameters*: |
||
| 474 | |||
| 475 | |*Name*|*Type*|*Description*| |
||
| 476 | |accountId|Long|Family Id where the member shall added| |
||
| 477 | |||
| 478 | *Response*: |
||
| 479 | <pre><code class="javascript"> |
||
| 480 | { |
||
| 481 | "a01":{ |
||
| 482 | "r":{ |
||
| 483 | "r":"true" |
||
| 484 | }, |
||
| 485 | "cn":"provupdateaccount" |
||
| 486 | } |
||
| 487 | } |
||
| 488 | </code></pre> |
||
| 489 | The Method response is true when the operation is successful. |
||
| 490 | |||
| 491 | In case the method encounter any error, the response is an exception with specific parameters detailed below. |
||
| 492 | |||
| 493 | *Error*: |
||
| 494 | |||
| 495 | |*Error Code*|*Type*|*Value*|*Description*| |
||
| 496 | |FizAccountNotFoundException |Ex|1|account not found| |
||
| 497 | |||
| 498 | |||
| 499 | h2. get Account information _provgetaccount_ |
||
| 500 | |||
| 501 | This method returns the information about an existing account. |
||
| 502 | |||
| 503 | By sending an HTTP request http://devserver/api/prov/getaccount?accountId=123455 |
||
| 504 | |||
| 505 | *Parameters*: |
||
| 506 | |||
| 507 | |*Name*|*Type*|*Description*| |
||
| 508 | |accountId|Long|Account Id of the account| |
||
| 509 | |||
| 510 | *Response*: |
||
| 511 | <pre><code class="javascript"> |
||
| 512 | { |
||
| 513 | "a01":{ |
||
| 514 | "r":{ |
||
| 515 | "r": { |
||
| 516 | accountId : 42, |
||
| 517 | deleted : false, |
||
| 518 | identifiers : [ |
||
| 519 | { |
||
| 520 | validated : false, |
||
| 521 | id : 63, |
||
| 522 | type : Login, |
||
| 523 | value : homersimpsontest |
||
| 524 | } |
||
| 525 | ], |
||
| 526 | name : founder, |
||
| 527 | lastLoginDate : 2015-09-16T16:05:15.000Z, |
||
| 528 | creationDate : 2014-01-03T13:43:06.000Z, |
||
| 529 | termsChecked : true |
||
| 530 | } |
||
| 531 | }, |
||
| 532 | "cn":"provgetaccount" |
||
| 533 | } |
||
| 534 | } |
||
| 535 | </code></pre> |
||
| 536 | |||
| 537 | In case the method encounter any error, the response is an exception with specific parameters detailed below. |
||
| 538 | |||
| 539 | *Error*: |
||
| 540 | |||
| 541 | |*Error Code*|*Type*|*Value*|*Description*| |
||
| 542 | |FizAccountNotFoundException |Ex|1|account not found| |
||
| 543 | |||
| 544 | |||
| 545 | h2. get family information _provgetfamily_ |
||
| 546 | |||
| 547 | This method returns the information about an existing family, mainly all the members. |
||
| 548 | |||
| 549 | By sending an HTTP request http://devserver/api/prov/getfamily?familyId=123455 |
||
| 550 | |||
| 551 | *Parameters*: |
||
| 552 | |||
| 553 | |*Name*|*Type*|*Description*| |
||
| 554 | |familyId|Long|Family Id of the family| |
||
| 555 | |||
| 556 | *Response*: |
||
| 557 | <pre><code class="javascript"> |
||
| 558 | { |
||
| 559 | a00 : { |
||
| 560 | r : { |
||
| 561 | r : { |
||
| 562 | coverDefault : false, |
||
| 563 | family_id : 61, |
||
| 564 | pictureDefault : false, |
||
| 565 | metaId : family/61, |
||
| 566 | members : [ |
||
| 567 | { |
||
| 568 | familyId : family/61, |
||
| 569 | joinDate : 2014-01-03T13:43:09.000Z, |
||
| 570 | role : Dad, |
||
| 571 | metaId : familymember/42_61, |
||
| 572 | isFirstFamily : true, |
||
| 573 | lastLoginDate : 2015-09-16T14:46:10.000Z, |
||
| 574 | right : SuperAdmin, |
||
| 575 | account : { |
||
| 576 | accountId : 42, |
||
| 577 | deleted : false, |
||
| 578 | identifiers : [ |
||
| 579 | { |
||
| 580 | validated : false, |
||
| 581 | id : 63, |
||
| 582 | type : Login, |
||
| 583 | value : homersimpsontest |
||
| 584 | } |
||
| 585 | ], |
||
| 586 | name : founder, |
||
| 587 | lastLoginDate : 2015-09-16T16:05:15.000Z, |
||
| 588 | creationDate : 2014-01-03T13:43:06.000Z, |
||
| 589 | termsChecked : true |
||
| 590 | } |
||
| 591 | } |
||
| 592 | ], |
||
| 593 | name : Simpson12, |
||
| 594 | pictureUri : http://localhost:8080/media/61_20ck56bl_43?, |
||
| 595 | coverUri : http://localhost:8080/media/61_8cz2k3bk_3222? |
||
| 596 | } |
||
| 597 | }, |
||
| 598 | cn : provgetfamily |
||
| 599 | } |
||
| 600 | </code></pre> |
||
| 601 | |||
| 602 | In case the method encounter any error, the response is an exception with specific parameters detailed below. |
||
| 603 | |||
| 604 | *Error*: |
||
| 605 | |||
| 606 | |*Error Code*|*Type*|*Value*|*Description*| |
||
| 607 | |FizFamilyDoesNotExistException|Ex|510|Family Id Does not Exists| |
||
| 608 | 21 | jerome bonnet | |FizAccountNotFoundException |Ex|1|account not found| |