mirror of
https://github.com/He4eT/simple-spaceapi.git
synced 2026-05-05 01:47:24 +00:00
Sensor: People Now Present
This commit is contained in:
parent
7861af8a03
commit
8798126dc4
7 changed files with 122 additions and 0 deletions
|
|
@ -0,0 +1,37 @@
|
|||
{
|
||||
"kind": "collectionType",
|
||||
"collectionName": "people_now_present_sensors",
|
||||
"info": {
|
||||
"singularName": "people-now-present-sensor",
|
||||
"pluralName": "people-now-present-sensors",
|
||||
"displayName": "Sensor: People Now Present",
|
||||
"description": ""
|
||||
},
|
||||
"options": {
|
||||
"draftAndPublish": true
|
||||
},
|
||||
"attributes": {
|
||||
"value": {
|
||||
"type": "integer",
|
||||
"required": true
|
||||
},
|
||||
"location": {
|
||||
"type": "string",
|
||||
"required": true
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"names": {
|
||||
"type": "component",
|
||||
"repeatable": true,
|
||||
"component": "location.person"
|
||||
},
|
||||
"description": {
|
||||
"type": "text"
|
||||
},
|
||||
"lastchange": {
|
||||
"type": "biginteger"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
/**
|
||||
* people-now-present-sensor controller
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi'
|
||||
|
||||
export default factories.createCoreController('api::people-now-present-sensor.people-now-present-sensor');
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
/**
|
||||
* people-now-present-sensor router
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreRouter('api::people-now-present-sensor.people-now-present-sensor');
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
/**
|
||||
* people-now-present-sensor service
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreService('api::people-now-present-sensor.people-now-present-sensor');
|
||||
Loading…
Add table
Add a link
Reference in a new issue