Get Resource Bundle of Locale

HTTPS Method

GET

URI

https://<server>/adminapi/api/i18n/{locale}

Example URI

https://uccx-server/adminapi/api/i18n/en_US

Accept

Application/XML, Application/JSON

HTTPS Success Code

200

HTTPS Failure Codes

401, 403, 404, 405, 500

Error Codes

Note
User is allowed to enter partial or full locale name in URI.
  • When there is a partial locale name, the system looks for a match of locale name with existing resource locale and returns the first matching locale else it returns a 404 HTTP Error.

  • When a locale name is complete, the system searches the requested locale. If found, it returns the matching locale else it returns a 404 HTTP Error.

  • When a locale is not mentioned in the URI, the system returns the resource bundle of en_US locale.

Success Response


<resourceBundle>
	<locale>en_US</locale>
	<bundle>
    	<entry>
        	<key>name</key>
        	<value>value</value>
     	</entry>
    	<entry>
        	<key>name</key>
        	<value>value</value>
    	</entry>
	</bundle>
</resourceBundle>