mirror of
https://github.com/Telecominfraproject/wlan-cloud-analytics.git
synced 2025-10-30 01:52:20 +00:00
Update OpenAPI docs for GitHub pages
This commit is contained in:
124
docs/index.html
124
docs/index.html
@@ -1212,11 +1212,6 @@ ul.nav-tabs {
|
||||
"type" : "string"
|
||||
}
|
||||
}
|
||||
};
|
||||
defs["getSystemCommand_200_response"] = {
|
||||
"oneOf" : [ {
|
||||
"$ref" : "#/components/schemas/SystemInfoResults"
|
||||
} ]
|
||||
};
|
||||
defs["MacList"] = {
|
||||
"type" : "object",
|
||||
@@ -1490,6 +1485,10 @@ ul.nav-tabs {
|
||||
defs["SystemCommandResults"] = {
|
||||
"type" : "object",
|
||||
"oneOf" : [ {
|
||||
"$ref" : "#/components/schemas/SystemResources"
|
||||
}, {
|
||||
"$ref" : "#/components/schemas/SystemInfoResults"
|
||||
}, {
|
||||
"$ref" : "#/components/schemas/StringList"
|
||||
}, {
|
||||
"$ref" : "#/components/schemas/TagValuePairList"
|
||||
@@ -1574,6 +1573,31 @@ ul.nav-tabs {
|
||||
"format" : "int64"
|
||||
}
|
||||
}
|
||||
};
|
||||
defs["SystemResources"] = {
|
||||
"type" : "object",
|
||||
"properties" : {
|
||||
"numberOfFileDescriptors" : {
|
||||
"type" : "integer",
|
||||
"format" : "int64"
|
||||
},
|
||||
"currRealMem" : {
|
||||
"type" : "integer",
|
||||
"format" : "int64"
|
||||
},
|
||||
"peakRealMem" : {
|
||||
"type" : "integer",
|
||||
"format" : "int64"
|
||||
},
|
||||
"currVirtMem" : {
|
||||
"type" : "integer",
|
||||
"format" : "int64"
|
||||
},
|
||||
"peakVirtMem" : {
|
||||
"type" : "integer",
|
||||
"format" : "int64"
|
||||
}
|
||||
}
|
||||
};
|
||||
defs["TIDstat_entry"] = {
|
||||
"type" : "object",
|
||||
@@ -6033,7 +6057,6 @@ $(document).ready(function() {
|
||||
<pre class="prettyprint"><code class="language-bsh">curl -X GET \
|
||||
-H "X-API-KEY: [[apiKey]]" \
|
||||
-H "Authorization: Bearer [[accessToken]]" \
|
||||
-H "Accept: application/json" \
|
||||
"https://localhost:16009/api/v1/system?command=command_example"
|
||||
</code></pre>
|
||||
</div>
|
||||
@@ -6065,8 +6088,7 @@ public class SystemCommandsApiExample {
|
||||
String command = command_example; // String | Get a value
|
||||
|
||||
try {
|
||||
getSystemCommand_200_response result = apiInstance.getSystemCommand(command);
|
||||
System.out.println(result);
|
||||
apiInstance.getSystemCommand(command);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling SystemCommandsApi#getSystemCommand");
|
||||
e.printStackTrace();
|
||||
@@ -6085,8 +6107,7 @@ public class SystemCommandsApiExample {
|
||||
String command = command_example; // String | Get a value
|
||||
|
||||
try {
|
||||
getSystemCommand_200_response result = apiInstance.getSystemCommand(command);
|
||||
System.out.println(result);
|
||||
apiInstance.getSystemCommand(command);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling SystemCommandsApi#getSystemCommand");
|
||||
e.printStackTrace();
|
||||
@@ -6115,10 +6136,7 @@ String *command = command_example; // Get a value (default to null)
|
||||
|
||||
// Retrieve different values from the running service.
|
||||
[apiInstance getSystemCommandWith:command
|
||||
completionHandler: ^(getSystemCommand_200_response output, NSError* error) {
|
||||
if (output) {
|
||||
NSLog(@"%@", output);
|
||||
}
|
||||
completionHandler: ^(NSError* error) {
|
||||
if (error) {
|
||||
NSLog(@"Error: %@", error);
|
||||
}
|
||||
@@ -6148,7 +6166,7 @@ var callback = function(error, data, response) {
|
||||
if (error) {
|
||||
console.error(error);
|
||||
} else {
|
||||
console.log('API called successfully. Returned data: ' + data);
|
||||
console.log('API called successfully.');
|
||||
}
|
||||
};
|
||||
api.getSystemCommand(command, callback);
|
||||
@@ -6184,8 +6202,7 @@ namespace Example
|
||||
|
||||
try {
|
||||
// Retrieve different values from the running service.
|
||||
getSystemCommand_200_response result = apiInstance.getSystemCommand(command);
|
||||
Debug.WriteLine(result);
|
||||
apiInstance.getSystemCommand(command);
|
||||
} catch (Exception e) {
|
||||
Debug.Print("Exception when calling SystemCommandsApi.getSystemCommand: " + e.Message );
|
||||
}
|
||||
@@ -6212,8 +6229,7 @@ $api_instance = new OpenAPITools\Client\Api\SystemCommandsApi();
|
||||
$command = command_example; // String | Get a value
|
||||
|
||||
try {
|
||||
$result = $api_instance->getSystemCommand($command);
|
||||
print_r($result);
|
||||
$api_instance->getSystemCommand($command);
|
||||
} catch (Exception $e) {
|
||||
echo 'Exception when calling SystemCommandsApi->getSystemCommand: ', $e->getMessage(), PHP_EOL;
|
||||
}
|
||||
@@ -6238,8 +6254,7 @@ my $api_instance = WWW::OPenAPIClient::SystemCommandsApi->new();
|
||||
my $command = command_example; # String | Get a value
|
||||
|
||||
eval {
|
||||
my $result = $api_instance->getSystemCommand(command => $command);
|
||||
print Dumper($result);
|
||||
$api_instance->getSystemCommand(command => $command);
|
||||
};
|
||||
if ($@) {
|
||||
warn "Exception when calling SystemCommandsApi->getSystemCommand: $@\n";
|
||||
@@ -6267,8 +6282,7 @@ command = command_example # String | Get a value (default to null)
|
||||
|
||||
try:
|
||||
# Retrieve different values from the running service.
|
||||
api_response = api_instance.get_system_command(command)
|
||||
pprint(api_response)
|
||||
api_instance.get_system_command(command)
|
||||
except ApiException as e:
|
||||
print("Exception when calling SystemCommandsApi->getSystemCommand: %s\n" % e)</code></pre>
|
||||
</div>
|
||||
@@ -6334,7 +6348,7 @@ Get a value
|
||||
<h3 id="examples-SystemCommands-getSystemCommand-title-200"></h3>
|
||||
<p id="examples-SystemCommands-getSystemCommand-description-200" class="marked"></p>
|
||||
<script>
|
||||
var responseSystemCommands200_description = `Successful command execution`;
|
||||
var responseSystemCommands200_description = ``;
|
||||
var responseSystemCommands200_description_break = responseSystemCommands200_description.indexOf('\n');
|
||||
if (responseSystemCommands200_description_break == -1) {
|
||||
$("#examples-SystemCommands-getSystemCommand-title-200").text("Status: 200 - " + responseSystemCommands200_description);
|
||||
@@ -6346,74 +6360,12 @@ Get a value
|
||||
|
||||
|
||||
<ul id="responses-detail-SystemCommands-getSystemCommand-200" class="nav nav-tabs nav-tabs-examples" >
|
||||
<li class="active">
|
||||
<a data-toggle="tab" href="#responses-SystemCommands-getSystemCommand-200-schema">Schema</a>
|
||||
</li>
|
||||
|
||||
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
<div class="tab-content" id="responses-SystemCommands-getSystemCommand-200-wrapper" style='margin-bottom: 10px;'>
|
||||
<div class="tab-pane active" id="responses-SystemCommands-getSystemCommand-200-schema">
|
||||
<div id="responses-SystemCommands-getSystemCommand-schema-200" class="exampleStyle">
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
var schemaWrapper = ;
|
||||
var schema = findNode('schema',schemaWrapper).schema;
|
||||
if (!schema) {
|
||||
schema = schemaWrapper.schema;
|
||||
}
|
||||
if (schema.$ref != null) {
|
||||
schema = defsParser.$refs.get(schema.$ref);
|
||||
Object.keys(schema.properties).forEach( (item) => {
|
||||
if (schema.properties[item].$ref != null) {
|
||||
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
|
||||
}
|
||||
});
|
||||
} else if (schema.items != null && schema.items.$ref != null) {
|
||||
schema.items = defsParser.$refs.get(schema.items.$ref);
|
||||
} else {
|
||||
schemaWrapper.definitions = Object.assign({}, defs);
|
||||
$RefParser.dereference(schemaWrapper).catch(function(err) {
|
||||
console.log(err);
|
||||
});
|
||||
}
|
||||
|
||||
var view = new JSONSchemaView(schema, 3);
|
||||
$('#responses-SystemCommands-getSystemCommand-200-schema-data').val(JSON.stringify(schema));
|
||||
var result = $('#responses-SystemCommands-getSystemCommand-schema-200');
|
||||
result.empty();
|
||||
result.append(view.render());
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
<input id='responses-SystemCommands-getSystemCommand-200-schema-data' type='hidden' value=''></input>
|
||||
</div>
|
||||
</div>
|
||||
<h3 id="examples-SystemCommands-getSystemCommand-title-400"></h3>
|
||||
<p id="examples-SystemCommands-getSystemCommand-description-400" class="marked"></p>
|
||||
<script>
|
||||
var responseSystemCommands400_description = ``;
|
||||
var responseSystemCommands400_description_break = responseSystemCommands400_description.indexOf('\n');
|
||||
if (responseSystemCommands400_description_break == -1) {
|
||||
$("#examples-SystemCommands-getSystemCommand-title-400").text("Status: 400 - " + responseSystemCommands400_description);
|
||||
} else {
|
||||
$("#examples-SystemCommands-getSystemCommand-title-400").text("Status: 400 - " + responseSystemCommands400_description.substring(0, responseSystemCommands400_description_break));
|
||||
$("#examples-SystemCommands-getSystemCommand-description-400").html(responseSystemCommands400_description.substring(responseSystemCommands400_description_break));
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
<ul id="responses-detail-SystemCommands-getSystemCommand-400" class="nav nav-tabs nav-tabs-examples" >
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
<div class="tab-content" id="responses-SystemCommands-getSystemCommand-400-wrapper" style='margin-bottom: 10px;'>
|
||||
</div>
|
||||
<h3 id="examples-SystemCommands-getSystemCommand-title-403"></h3>
|
||||
<p id="examples-SystemCommands-getSystemCommand-description-403" class="marked"></p>
|
||||
|
||||
Reference in New Issue
Block a user