mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-08 14:42:51 -04:00
added help for JSON API page
This commit is contained in:
parent
8a20ab33b4
commit
c90fab0136
1 changed files with 9 additions and 3 deletions
|
@ -59,7 +59,15 @@ JsonApiPage::JsonApiPage(QWidget */*parent*/, Qt::WindowFlags /*flags*/)
|
||||||
ui.listenAddressLineEdit->setValidator(ipValidator);
|
ui.listenAddressLineEdit->setValidator(ipValidator);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
QString JsonApiPage::helpText() const
|
||||||
|
{
|
||||||
|
return tr("<h1><img width=\"24\" src=\":/icons/help_64.png\"> Webinterface</h1> \
|
||||||
|
<p>Retroshare provides a JSON API allowing other softwares to communicate with its core using token-controlled HTTP requests to http://localhost:[port]. \
|
||||||
|
Please refer to the Retroshare documentation for how to use this feature. </p>\
|
||||||
|
<p>Unless you know what you're doing, you shouldn't need to change anything in this page. \
|
||||||
|
The web interface for instance will automatically register its own token to the JSON API which will be visible \
|
||||||
|
in the list of authenticated tokens after you enable it.</p>");
|
||||||
|
}
|
||||||
void JsonApiPage::enableJsonApi(bool checked)
|
void JsonApiPage::enableJsonApi(bool checked)
|
||||||
{
|
{
|
||||||
ui.addTokenPushButton->setEnabled(checked);
|
ui.addTokenPushButton->setEnabled(checked);
|
||||||
|
@ -107,8 +115,6 @@ void JsonApiPage::load()
|
||||||
whileBlocking(ui.tokensListView)->setModel(new QStringListModel(newTk));
|
whileBlocking(ui.tokensListView)->setModel(new QStringListModel(newTk));
|
||||||
}
|
}
|
||||||
|
|
||||||
QString JsonApiPage::helpText() const { return ""; }
|
|
||||||
|
|
||||||
bool JsonApiPage::checkStartJsonApi()
|
bool JsonApiPage::checkStartJsonApi()
|
||||||
{
|
{
|
||||||
if(!Settings->getJsonApiEnabled()) return false;
|
if(!Settings->getJsonApiEnabled()) return false;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue