Get a list of type summaries or message bundles

get/contents/{namespace}
Internal-Use Only

Returns a list of type summaries or message bundles as properties files or a ZIP file. Retrieves one of five resources by specifying the http header Accept and Accept-Item. Only the second item requires the http header Accept-Language and returns a set of all message bundles that belong to the namespace.

Request Samples

1

Response Samples

1--aBoundaryString
2Content-Disposition: form-data; name="file"; filename="myNamespace_default.properties"
3Content-Type: text/plain
4
5kitchen+knife+table+name=message text
6kitchen+knife+table+label=message text
7kitchen+knife+table+manufacture=message text
8kitchen+knife+table+description=message text
9kitchen+knife+clasp+name=message text
10kitchen+knife+clasp+label=message text
11kitchen+knife+clasp+manufacture=message text
12kitchen+knife+clasp+description=message text
13kitchen+knife+jackknife+name=message text
14kitchen+knife+jackknife+label=message text
15kitchen+knife+jackknife+manufacture=message text
16kitchen+knife+jackknife+description=message text
17--aBoundaryString
18Content-Disposition: form-data; name="file"; filename="myNamespace_fr.properties"
19Content-Type: text/plain
20
21kitchen+knife+table+name=French message text
22kitchen+knife+table+label=French message text
23kitchen+knife+table+manufacture=French message text
24kitchen+knife+table+description=French message text
25kitchen+knife+clasp+name=French message text
26kitchen+knife+clasp+label=French message text
27kitchen+knife+clasp+manufacture=French message text
28kitchen+knife+clasp+description=French message text
29kitchen+knife+jackknife+name=French message text
30kitchen+knife+jackknife+label=French message text
31kitchen+knife+jackknife+manufacture=French message text
32kitchen+knife+jackknife+description=French message text
33--aBoundaryString--

Path Parameters

NameTypeRequiredDescription
namespace
string
true

The namespace of the message bundle.

Query Parameters

NameTypeRequiredDescription
filter
string
false

Query filter, supported fields are type and id.

limit
integer<int32>
false

Maximum number of items to retrieve. Defaults to 30 for a set of type summary. 0 for the message bundles, means all the message bundles.

Default:
30
start
integer<int32>
false

Offset of first item to retrieve (0-based). Defaults to 0.

Default:
0

Header Parameters

NameTypeRequiredDescription
Accept-Item
string
false
Allowed values:
application/jsonapplication/vnd.sas.localization.content.type+jsonapplication/vnd.sas.properties.fileapplication/zip
Accept-Language
string
false

The Accept-Language http header is required only when the Accept http header is "application/vnd.sas.collection+json" and the Accept-Item http header is "application/vnd.sas.localization.content+json". This API returns the resolved bundles for the local specified in the Accept-Language. The resolved bundles have the full set of message keys. The locale follows BCP-47. The bundle id consists of three items <service name>-<bundle type>-<bundle format>. See the Terminology section for detail.

Accept
string
true
Allowed values:
application/jsonapplication/vnd.sas.sas.collection+jsonmultipart/form-data

Responses

StatusMeaningDescription
200OKThe request succeeded. <p> For the Example-1 of Media type "multipart/form-data", here are the http headers Content-Type and Content-Item-Type. <pre>Content-Type: multipart/form-data;boundary=aBoundaryString Content-Item-Type: application/vnd.sas.properties.file</pre> For the Example-2 of Media type "multipart/form-data", the http headers Content-Type and Content-Item-Type are below. <pre>Content-Type: multipart/form-data;boundary=aBoundaryString Content-Item-Type: application/zip</pre> </p>HeadersSchema