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{
2 "accept": "string",
3 "count": 0,
4 "items": [
5 {
6 "id": "string",
7 "links": [
8 {
9 "href": "string",
10 "itemType": "string",
11 "method": "string",
12 "rel": "string",
13 "responseItemType": "string",
14 "responseType": "string",
15 "title": "string",
16 "type": "string",
17 "uri": "string"
18 }
19 ],
20 "namespace": "string",
21 "version": 1
22 }
23 ],
24 "limit": 0,
25 "links": [
26 {
27 "href": "string",
28 "itemType": "string",
29 "method": "string",
30 "rel": "string",
31 "responseItemType": "string",
32 "responseType": "string",
33 "title": "string",
34 "type": "string",
35 "uri": "string"
36 }
37 ],
38 "name": "string",
39 "start": 0,
40 "version": 1
41}

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