Re: Is there any API to get value of general settings? (259 Views)
Reply
Frequent Advisor
Lenient
Posts: 45
Registered: ‎03-18-2013
Message 1 of 5 (272 Views)
Accepted Solution

Is there any API to get value of general settings?

Hi All,

 

    Login into the admin console, switch to Settings tab, here is the general settings. 

    Now, I want to get the value of Common web context for apps, is there any API to get this.

 

    Thanks in advance.

Simple is best
Honored Contributor
Yossi_Gutin
Posts: 209
Registered: ‎04-04-2013
Message 2 of 5 (259 Views)

Re: Is there any API to get value of general settings?

Hi

Yes, there as an HP Anywhere API to do it. Please use the getAdminSetting Method.

 

--------------------------------------------------------------------------------------
If some answer solves your problem, please mark it as a solution.
Frequent Advisor
Lenient
Posts: 45
Registered: ‎03-18-2013
Message 3 of 5 (242 Views)

Re: Is there any API to get value of general settings?

Thanks Gutin. But I don't know the categoryId and settingName. How can I get them? Actually, this value is not come from mini app, it is the framework configuration, I think.

Simple is best
Honored Contributor
Yossi_Gutin
Posts: 209
Registered: ‎04-04-2013
Message 4 of 5 (236 Views)

Re: Is there any API to get value of general settings?

Hi
The category name is "diamond" and you are interested in the setting id "miniapp.common.context".

The full list of settings could be seen by executing REST:

http://localhost:8080/diamond/rest/api/V2/categories?nested=true

 

 

--------------------------------------------------------------------------------------
If some answer solves your problem, please mark it as a solution.
Frequent Advisor
Lenient
Posts: 45
Registered: ‎03-18-2013
Message 5 of 5 (218 Views)

Re: Is there any API to get value of general settings?

Thanks very much, Gutin. Works for me.
Simple is best
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.