Skip to content

Instantly share code, notes, and snippets.

@Prottoy2938
Created May 10, 2020 05:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Prottoy2938/b75645a14fcccc7ec1b92532a084e7a3 to your computer and use it in GitHub Desktop.
Save Prottoy2938/b75645a14fcccc7ec1b92532a084e7a3 to your computer and use it in GitHub Desktop.
Front-end demo JSON api with comments
{
"Status": "Connected",
"Adminstration Control": {
"Connection": "stable",
//Total number 100. 70 means adminstration can control most of stuff of that device, but he is restricted on some of the part.
//will need to think more about it
"Permission": "70" //rank system. 70 out of 100
},
"Device": {
//Send as much as information about the device as possible,
"Status": "All System Normal"
"User": {
"name": "User Name",
"active": true,
"email": "somemail@mail.com"
},
"Device Details": {
"Manufacturer": ["DELL", { "Model": "i5559-4413SLV", "Release": "2016" }],
"OS": ["Windows 10 Pro", {"version": "1910", "Update Available": true}],
"CPU": [
"Intel Dual Core i5-6200U",
{ "Processor Speed": "2.30 GHz", "Processor Type": "Core i5" }
],
"Security Patch": ["Company Security patch number here"],
"Display": [
"15.6-inch",
{ "Type": "LED", "Dimension": "1366 x 768", "4K": false }
],
"Ram": "8 GB",
"Storage": {
"SSD": false,
"HDD": {
"Space": "1000 GB",
"status": "No Problem Found/Nothing to TroubleShoot"
}
},
"Keyboard": [
true,
{
"Mechanism": "Butterfly key switches",
"status": "No Problem Found/Nothing to TroubleShoot"
}
],
"TrackPad": [true, { "MultiTouch": true }],
"Graphics Card": ["Intel Iris Plus Graphics", { "Brand": "Intel" }],
"Network": {
"Wi-fi": [
true,
{
"Type": "802.11ac",
"status": "No Problem Found/Nothing to TroubleShoot"
}
]
},
"Battery": [true, { "type": "Lithium" }],
"Camera": [
true,
{
"status": "No Problem Found/Nothing to TroubleShoot",
"running": false,
"type": "Front camera",
"dimension": "720"
}
],
"Microphone": [
true,
{
"running": false,
"status": "No Problem Found/Nothing to TroubleShoot"
}
],
"Speaker": [
true,
{
"running": true,
"status": "No Problem Found/Nothing to TroubleShoot"
}
],
"Additional Information": {
"Disk Drive": false,
"USB Ports": 4,
"SD-Card Port": true,
"Antivirus": [true, "Macfee"]
}
},
"Device Status": {
//In the real application, we might have to send data constantly so we can create a graph /chart for every part
"Total CPU Usage": "37%",
"Total Battery Usage": "",
"Server Running": [
{ "port": 5000, "Usage": "Unknown" },
{ "port": 9001, "Usage": "Sending data to Uncaught Error Server" }
],
"Battery": "2 Hours",
"Network Speed": ["10 mbps"],
"GPU": "12%",
"Disk": "30%",
"Network": {
"connected": [true, { "wi-fi": true }]
}
},
//Shows each app running and the resources they are using. This would be also live/sends data constantly
"App Usage": [
{
"Application": "Google Chrome",
"CPU": "1.5%",
"Memory": "689.4 MB",
"Network": "5 mbps"
},
{
"Application": "Visual Studio Code",
"CPU": "0.6%",
"Memory": "189.1 MB",
"Network": ".3 mbps"
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment