Terms-static-resources » History » Version 1
jerome bonnet, 03/14/2012 05:05 PM
| 1 | 1 | jerome bonnet | h1. Static Resources |
|---|---|---|---|
| 2 | |||
| 3 | h2. Introduction |
||
| 4 | |||
| 5 | The server is also responsible to serve some static resources for the clients. |
||
| 6 | This document presents the URL schemes used to serve those static resources. |
||
| 7 | |||
| 8 | In those URL schemes, the following variables can be used: |
||
| 9 | |||
| 10 | * <server_url> |
||
| 11 | |||
| 12 | > Represents the ROOT URL of the server. For instance http://stagingapi.familywall.com |
||
| 13 | |||
| 14 | * <PARTNER> |
||
| 15 | |||
| 16 | > Represents a variable indicating for which partner the resource shall be queried. Normally for the generic, unbranded, uncustomized version you shall use 'generic'. If partner is used such as htc, its value is defined by an API ENUM and it is uppercase. |
||
| 17 | |||
| 18 | * <country_code> |
||
| 19 | |||
| 20 | > Represents a country code as per https://en.wikipedia.org/wiki/ISO_3166-1 alpha2 , so it is uppercase. There is also a 'default' value in lowercase available. |
||
| 21 | |||
| 22 | * <locale> |
||
| 23 | |||
| 24 | > Represents a locale code with the <lowercase-locale>-<underscore>-<uppercase-locale> java syntax. There is also a 'default' value in lowercase available. |
||
| 25 | |||
| 26 | h2. Terms&Condition files |
||
| 27 | |||
| 28 | Terms&Condition texts are served as a simple html document (no style). |
||
| 29 | |||
| 30 | <server_url>/legal/<PARTNER>/legal/<country_code>/terms.html |
||
| 31 | |||
| 32 | h2. Avatar and Blasons |
||
| 33 | |||
| 34 | Avatar are served as png files in <server_url>/avatar |
||
| 35 | |||
| 36 | Family blasons are served as png files in <server_url>shield |
||
| 37 | |||
| 38 | In order to same memory on the server's filer, those urls must be used when using avatar and shield for family profile and account profile. |
||
| 39 | |||
| 40 | Those resources must be upgraded in order to have a real specified list and a way to have different resources depending on the partner. |