Export to JSON, JSON formatting.

This commit is contained in:
Kasen IO 2020-06-18 16:43:59 -04:00
parent 0c53701bbc
commit f712fc7735
2 changed files with 9 additions and 9 deletions

View file

@ -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
}
]
},
{

View file

@ -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;