on 12-06-2018 2:23 PM
Hi,
I am using REST API (v2) to get details of a product like below
https://localhost:9002/cpqintegrationservices/v2/electronics/products/3470545.
I am getting a JSON output in the response body of the web service. By default it shows only English language for name and Description attributes.
I need to show all the language values for name and Description attributes. How to do this.
Thanks,
Vinod.
Hi Vinod,
In OCC response, it will always give you the response in session language. If you are getting it in english, it means your session language is english. If you want to get the value in all the languages then you have to make your ProductData to save all the language values and will be populated by custom logic in product populator. the same thing has to be done in ProductDTO so that datamapper can map the values in ProductDTO which will come as a response.
Let me know if you have any doubt. Give thumps up if it works
Thanks Hamid
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
3 | |
2 | |
2 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.