mirror of
https://github.com/He4eT/simple-spaceapi.git
synced 2026-05-05 01:47:24 +00:00
Sensor: Network Connections
This commit is contained in:
parent
95d6a5f4ac
commit
b758d4e4ec
7 changed files with 132 additions and 0 deletions
|
|
@ -0,0 +1,44 @@
|
|||
{
|
||||
"kind": "collectionType",
|
||||
"collectionName": "network_connections_sensors",
|
||||
"info": {
|
||||
"singularName": "network-connections-sensor",
|
||||
"pluralName": "network-connections-sensors",
|
||||
"displayName": "Sensor: Network Connections",
|
||||
"description": ""
|
||||
},
|
||||
"options": {
|
||||
"draftAndPublish": false
|
||||
},
|
||||
"attributes": {
|
||||
"type": {
|
||||
"type": "enumeration",
|
||||
"enum": [
|
||||
"wifi",
|
||||
"cable",
|
||||
"spacenet"
|
||||
]
|
||||
},
|
||||
"value": {
|
||||
"type": "integer",
|
||||
"required": true
|
||||
},
|
||||
"machines": {
|
||||
"type": "component",
|
||||
"repeatable": true,
|
||||
"component": "network.machine"
|
||||
},
|
||||
"location": {
|
||||
"type": "string"
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"description": {
|
||||
"type": "text"
|
||||
},
|
||||
"lastchange": {
|
||||
"type": "biginteger"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
/**
|
||||
* network-connections-sensor controller
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi'
|
||||
|
||||
export default factories.createCoreController('api::network-connections-sensor.network-connections-sensor');
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
/**
|
||||
* network-connections-sensor router
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreRouter('api::network-connections-sensor.network-connections-sensor');
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
/**
|
||||
* network-connections-sensor service
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreService('api::network-connections-sensor.network-connections-sensor');
|
||||
Loading…
Add table
Add a link
Reference in a new issue