mirror of
https://github.com/overte-org/overte.git
synced 2025-04-08 07:12:40 +02:00
Export to JSON, JSON formatting.
This commit is contained in:
parent
0c53701bbc
commit
f712fc7735
2 changed files with 9 additions and 9 deletions
|
@ -54,7 +54,7 @@
|
|||
"default": true,
|
||||
"type": "checkbox",
|
||||
"advanced": true
|
||||
},
|
||||
},
|
||||
{
|
||||
"name": "enable_metadata_exporter",
|
||||
"label": "Enable Metadata HTTP Availability",
|
||||
|
@ -64,13 +64,13 @@
|
|||
"advanced": true
|
||||
},
|
||||
{
|
||||
"name": "metadata_exporter_port",
|
||||
"label": "Metadata Exporter HTTP Port",
|
||||
"help": "This is the port where the Metaverse exporter accepts connections. It listens both on IPv4 and IPv6 and can be accessed remotely, so you should make sure to restrict access with a firewall as needed.",
|
||||
"default": "9704",
|
||||
"type": "int",
|
||||
"advanced": true
|
||||
},
|
||||
"name": "metadata_exporter_port",
|
||||
"label": "Metadata Exporter HTTP Port",
|
||||
"help": "This is the port where the Metaverse exporter accepts connections. It listens both on IPv4 and IPv6 and can be accessed remotely, so you should make sure to restrict access with a firewall as needed.",
|
||||
"default": "9704",
|
||||
"type": "int",
|
||||
"advanced": true
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
|
@ -213,7 +213,7 @@ void DomainMetadata::sendDescriptors() {
|
|||
bool DomainMetadata::handleHTTPRequest(HTTPConnection* connection, const QUrl& url, bool skipSubHandler) {
|
||||
QString domainMetadataJSON = QString("{\"domain\":%1}").arg(QString(QJsonDocument(get(DESCRIPTORS)).toJson(QJsonDocument::Compact)));
|
||||
const QString URI_METADATA = "/metadata";
|
||||
const QString EXPORTER_MIME_TYPE = "text/plain";
|
||||
const QString EXPORTER_MIME_TYPE = "application/json";
|
||||
|
||||
qCDebug(domain_metadata_exporter) << "Request on URL " << url;
|
||||
|
||||
|
|
Loading…
Reference in a new issue