getResourceStrings
get
/ccadmin/v1/resources/{bundle}
Get Resource Strings. Fetch the specified resource bundle strings
Request
Supported Media Types
- application/json
Path Parameters
-
bundle: string
The name of the resource bundle to get.
Response
Supported Media Types
- application/json
200 Response
Following model is returned when operation succeeds.
Root Schema : getResourceStrings_response
Type:
Show Source
object
-
custom(optional):
array custom
Map of custom resource key/value pairs
-
resources(optional):
array resources
Map of grouped default resource key/value pairs
Example Response (application/json)
{
"custom":{
"cancelText":"Cancel!!!",
"okText":"OK!!!"
},
"resources":{
"product":{
"optionLast":"$t(ns.common:resources.option)",
"optionRequiredMsg":"__optionName__ required",
"separator":",",
"optionHasNext":"$t(ns.common:resources.option),",
"optionCaption":"Select __optionName__ ...",
"option":"__optionName__: __optionValue__"
},
"search":{
"searchText":"Showing Results for __searchTerm__ ",
"searchFailedText":"Unable to perform a search at this time.",
"productresultsText":"Results: __startIndex__ - __endIndex__ (of __totalProducts__)",
"searchresultsText":"Results: __startIndex__ - __endIndex__ (of __count__)",
"emptyProductresultsText":"Results: 0",
"noMatchesFound":"No Matches Found",
"showAllResultsText":"Show all results >>",
"noProductsFound":"You searched for '__searchterm__'. No products were found.",
"noSearchResultsText":"We couldn't find any results for __searchTerm__"
},
"buttonLabels":{
"continueText":"Continue",
"buttonSave":"Save",
"buttonCancel":"Cancel",
"escapeKeyText":"esc",
"cancelText":"Cancel",
"closeText":"Close",
"okText":"OK"
},
"storeText":{
"goToPreviousPagePaginationSymbol":"<", "decembertext":"december", "augusttext":"august", "loadingtext":"loading...", "gotolastpagepaginationsymbol":">>",
"categoryText":"Category",
"priceRangeText":"Price Range",
"mayText":"May",
"aprilText":"April",
"juneText":"June",
"goToNextPagePaginationSymbol":">",
"septemberText":"September",
"octoberText":"October",
"julyText":"July",
"goToFirstPagePaginationSymbol":"<<", "customtextnotfound":"[custom text missing]", "februarytext":"february", "januarytext":"january", "marchtext":"march", "novembertext":"november" }, "userforgottenpassword":{ "forgotpwdpart2":"you must update this the next time you login.", "forgotpwdpart1":"enter your email address to receive new temporary password.", "emailcanceltext":"cancel", "resetpwdtext":"reset password", "forgotpwdtext":"forgotten "forgotpasswordlinktext":"forgotten password?", "emailpasswordtext":"email "forgotpwdmessage":"a password has been sent address, along with reset instructions." "userpasswordpolicies":{ "passwordpolicieserrortext":"the entered does not comply policy. please try again.", "embeddedassistanceusemixedcase":"contains upper and lower case characters", "embeddedassistancenotinpreviousnpasswords":"has previously used", "embeddedassistancepretext":"you ensure password:", "embeddedassistancecannotuseusernametext":"differs from username", "embeddedassistanceusenumber":"includes a number", "embeddedassistanceminpasswordlengthtext":"is at least __min__ characters long", "embeddedassistanceusesymbol":"includes symbol character" "minicart":{ "cartdropdowntext_plural":"__count__ items - __currency____totalprice__", "cartdropdowntext":"__count__ item __currency____totalprice__" "userdetails":{ "confirmpasswordrequired":"please enter again. ", "emailaddressinvalid":"invalid entry. valid for example, john@example.com.", "lastnamerequired":"last name is mandatory. "lastnametext":"last name", "emailaddresstext":"email address", "updatesuccessmsg":"update successfully saved.", "headercreatenewpassword":"create "passwordunmatched":"the passwords do match, "newconfirmpasswordtext":"confirm "firstnamerequired":"first "newpasswdtext":"new "maxlengthvalidationmsg":"invalid entry __fieldname__. exceed maximum of __maxlength__ characters.", "maxlengthemailadd":"invalid "createnewpwdmessage":"password updated.", "passwordrequired":"password "firstnametext":"first "emailaddressrequired":"email "currentpasswordrequired":"current mandatory.", "loginerror":"login unsuccessful. details don't match our records, "createnewpassworderror":"your expired. before logging in.", "oldpasswordsdonotmatch":"incorrect value previous "currentpasswordtext":"current password" "checkout":{ "invalidorderdetails":"there an error. check shipping "removecouponlinkreadtext":"remove coupon", "orderdiscountdesc":"* __discountdesc__", "coupondisplaytext":"__description__ __code__", "subtotaltext":"sub-total:", "ordercoupondisplaytext":"* __description__ "itemtotaltext":"item total", "ordersubmissionfailed":"order submission failed.", "quantitytext":"quantity", "discounttext":"discount(s)*:", "itemtext":"item" "cart":{ "productpricechanged":"this item's price changed since it was added cart. original was: __currency____originalprice__ "outofstockmsg":"this no longer in stock. remove cart?", "productnamehasnext":"__productname__, "insufficientstockmsg":"you can order __stocklimit__ product.", "invalidcartitemserror":"__productnames__ currently unavailable removed cart.", "cartsessionexpired":"your session expired due inactivity. login again", "quantityrequiremsg":"quantity "quantitynumericmsg":"invalid only numbers.", "removeitemmsg":"remove "orderpricingpromotionerror":"please review order. items, or discounts applied, have they were order." } "links":[ { "rel":"self", "href":"http: localhost:9080 ccadminui v1 resources ns.common?custom='%5Bobject%20Object%5D"' ] }< code>",>",>
Default Response
The error response.
The following are the internal error codes thrown by this API when the request processing fails in Oracle Commerce Cloud:
|Error Code|Description|
|------------------|------------------|
|71007|If an error occurs when trying to retrieve the custom resources|
|71004|If the locale is not specified and cannot be determined|
|71002|If the specified resource bundle is empty|
|71000|If an error occurs when trying to retrieve the default resources|
|71001|If the specified resource bundle is not found|
Root Schema : errorModel
Type:
Show Source
object
-
devMessage(optional):
string
An optional non-localized message containing technical information for developers
-
errorCode(optional):
string
The numerical code identifying the error
-
errors(optional):
array errors
An optional list of errors if multiple errors were encountered
-
message(optional):
string
The localized message describing the error
-
moreInfo(optional):
string
An optional non-localized message with more information
-
o:errorPath(optional):
string
An optional machine readable description of where the error occurred
-
status(optional):
string
The HTTP status code
-
type(optional):
string
The URI to the HTTP state code definition
Nested Schema : errors
Type:
array
An optional list of errors if multiple errors were encountered
Show Source
Nested Schema : items
Type:
Show Source
object
-
devMessage(optional):
string
An optional non-localized message containing technical information for developers
-
errorCode(optional):
string
The numerical code identifying the error
-
message(optional):
string
The localized message describing the error
-
moreInfo(optional):
string
An optional non-localized message with more information
-
o:errorPath(optional):
string
An optional machine readable description of where the error occurred
-
status(optional):
string
The HTTP status code