mirror of
https://github.com/He4eT/simple-spaceapi.git
synced 2026-05-04 17:37:24 +00:00
Sensors: Door Locked: rename endpoints
This commit is contained in:
parent
e2c01abfd0
commit
87a73c7eb9
8 changed files with 59 additions and 59 deletions
|
|
@ -1,9 +1,9 @@
|
||||||
{
|
{
|
||||||
"kind": "collectionType",
|
"kind": "collectionType",
|
||||||
"collectionName": "sensor_door_lockeds",
|
"collectionName": "door_locked_sensors",
|
||||||
"info": {
|
"info": {
|
||||||
"singularName": "sensor-door-locked",
|
"singularName": "door-locked-sensor",
|
||||||
"pluralName": "sensor-door-lockeds",
|
"pluralName": "door-locked-sensors",
|
||||||
"displayName": "Sensor: Door Locked"
|
"displayName": "Sensor: Door Locked"
|
||||||
},
|
},
|
||||||
"options": {
|
"options": {
|
||||||
|
|
@ -27,5 +27,5 @@
|
||||||
"lastchange": {
|
"lastchange": {
|
||||||
"type": "biginteger"
|
"type": "biginteger"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -0,0 +1,7 @@
|
||||||
|
/**
|
||||||
|
* door-locked-sensor controller
|
||||||
|
*/
|
||||||
|
|
||||||
|
import { factories } from '@strapi/strapi'
|
||||||
|
|
||||||
|
export default factories.createCoreController('api::door-locked-sensor.door-locked-sensor');
|
||||||
7
src/api/door-locked-sensor/routes/door-locked-sensor.ts
Normal file
7
src/api/door-locked-sensor/routes/door-locked-sensor.ts
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
/**
|
||||||
|
* door-locked-sensor router
|
||||||
|
*/
|
||||||
|
|
||||||
|
import { factories } from '@strapi/strapi';
|
||||||
|
|
||||||
|
export default factories.createCoreRouter('api::door-locked-sensor.door-locked-sensor');
|
||||||
|
|
@ -0,0 +1,7 @@
|
||||||
|
/**
|
||||||
|
* door-locked-sensor service
|
||||||
|
*/
|
||||||
|
|
||||||
|
import { factories } from '@strapi/strapi';
|
||||||
|
|
||||||
|
export default factories.createCoreService('api::door-locked-sensor.door-locked-sensor');
|
||||||
|
|
@ -1,7 +0,0 @@
|
||||||
/**
|
|
||||||
* sensor-door-locked controller
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { factories } from '@strapi/strapi'
|
|
||||||
|
|
||||||
export default factories.createCoreController('api::sensor-door-locked.sensor-door-locked');
|
|
||||||
|
|
@ -1,7 +0,0 @@
|
||||||
/**
|
|
||||||
* sensor-door-locked router
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { factories } from '@strapi/strapi';
|
|
||||||
|
|
||||||
export default factories.createCoreRouter('api::sensor-door-locked.sensor-door-locked');
|
|
||||||
|
|
@ -1,7 +0,0 @@
|
||||||
/**
|
|
||||||
* sensor-door-locked service
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { factories } from '@strapi/strapi';
|
|
||||||
|
|
||||||
export default factories.createCoreService('api::sensor-door-locked.sensor-door-locked');
|
|
||||||
68
types/generated/contentTypes.d.ts
vendored
68
types/generated/contentTypes.d.ts
vendored
|
|
@ -404,6 +404,39 @@ export interface ApiCarbondioxideSensorCarbondioxideSensor
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface ApiDoorLockedSensorDoorLockedSensor
|
||||||
|
extends Struct.CollectionTypeSchema {
|
||||||
|
collectionName: 'door_locked_sensors';
|
||||||
|
info: {
|
||||||
|
displayName: 'Sensor: Door Locked';
|
||||||
|
pluralName: 'door-locked-sensors';
|
||||||
|
singularName: 'door-locked-sensor';
|
||||||
|
};
|
||||||
|
options: {
|
||||||
|
draftAndPublish: false;
|
||||||
|
};
|
||||||
|
attributes: {
|
||||||
|
createdAt: Schema.Attribute.DateTime;
|
||||||
|
createdBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> &
|
||||||
|
Schema.Attribute.Private;
|
||||||
|
description: Schema.Attribute.Text;
|
||||||
|
lastchange: Schema.Attribute.BigInteger;
|
||||||
|
locale: Schema.Attribute.String & Schema.Attribute.Private;
|
||||||
|
localizations: Schema.Attribute.Relation<
|
||||||
|
'oneToMany',
|
||||||
|
'api::door-locked-sensor.door-locked-sensor'
|
||||||
|
> &
|
||||||
|
Schema.Attribute.Private;
|
||||||
|
location: Schema.Attribute.String & Schema.Attribute.Required;
|
||||||
|
name: Schema.Attribute.String;
|
||||||
|
publishedAt: Schema.Attribute.DateTime;
|
||||||
|
updatedAt: Schema.Attribute.DateTime;
|
||||||
|
updatedBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> &
|
||||||
|
Schema.Attribute.Private;
|
||||||
|
value: Schema.Attribute.Boolean & Schema.Attribute.Required;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
export interface ApiEventEvent extends Struct.CollectionTypeSchema {
|
export interface ApiEventEvent extends Struct.CollectionTypeSchema {
|
||||||
collectionName: 'events';
|
collectionName: 'events';
|
||||||
info: {
|
info: {
|
||||||
|
|
@ -473,39 +506,6 @@ export interface ApiHackspaceHackspace extends Struct.SingleTypeSchema {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiSensorDoorLockedSensorDoorLocked
|
|
||||||
extends Struct.CollectionTypeSchema {
|
|
||||||
collectionName: 'sensor_door_lockeds';
|
|
||||||
info: {
|
|
||||||
displayName: 'Sensor: Door Locked';
|
|
||||||
pluralName: 'sensor-door-lockeds';
|
|
||||||
singularName: 'sensor-door-locked';
|
|
||||||
};
|
|
||||||
options: {
|
|
||||||
draftAndPublish: false;
|
|
||||||
};
|
|
||||||
attributes: {
|
|
||||||
createdAt: Schema.Attribute.DateTime;
|
|
||||||
createdBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> &
|
|
||||||
Schema.Attribute.Private;
|
|
||||||
description: Schema.Attribute.Text;
|
|
||||||
lastchange: Schema.Attribute.BigInteger;
|
|
||||||
locale: Schema.Attribute.String & Schema.Attribute.Private;
|
|
||||||
localizations: Schema.Attribute.Relation<
|
|
||||||
'oneToMany',
|
|
||||||
'api::sensor-door-locked.sensor-door-locked'
|
|
||||||
> &
|
|
||||||
Schema.Attribute.Private;
|
|
||||||
location: Schema.Attribute.String & Schema.Attribute.Required;
|
|
||||||
name: Schema.Attribute.String;
|
|
||||||
publishedAt: Schema.Attribute.DateTime;
|
|
||||||
updatedAt: Schema.Attribute.DateTime;
|
|
||||||
updatedBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> &
|
|
||||||
Schema.Attribute.Private;
|
|
||||||
value: Schema.Attribute.Boolean & Schema.Attribute.Required;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface ApiStateState extends Struct.SingleTypeSchema {
|
export interface ApiStateState extends Struct.SingleTypeSchema {
|
||||||
collectionName: 'states';
|
collectionName: 'states';
|
||||||
info: {
|
info: {
|
||||||
|
|
@ -1093,9 +1093,9 @@ declare module '@strapi/strapi' {
|
||||||
'admin::transfer-token-permission': AdminTransferTokenPermission;
|
'admin::transfer-token-permission': AdminTransferTokenPermission;
|
||||||
'admin::user': AdminUser;
|
'admin::user': AdminUser;
|
||||||
'api::carbondioxide-sensor.carbondioxide-sensor': ApiCarbondioxideSensorCarbondioxideSensor;
|
'api::carbondioxide-sensor.carbondioxide-sensor': ApiCarbondioxideSensorCarbondioxideSensor;
|
||||||
|
'api::door-locked-sensor.door-locked-sensor': ApiDoorLockedSensorDoorLockedSensor;
|
||||||
'api::event.event': ApiEventEvent;
|
'api::event.event': ApiEventEvent;
|
||||||
'api::hackspace.hackspace': ApiHackspaceHackspace;
|
'api::hackspace.hackspace': ApiHackspaceHackspace;
|
||||||
'api::sensor-door-locked.sensor-door-locked': ApiSensorDoorLockedSensorDoorLocked;
|
|
||||||
'api::state.state': ApiStateState;
|
'api::state.state': ApiStateState;
|
||||||
'api::temperature-sensor.temperature-sensor': ApiTemperatureSensorTemperatureSensor;
|
'api::temperature-sensor.temperature-sensor': ApiTemperatureSensorTemperatureSensor;
|
||||||
'plugin::content-releases.release': PluginContentReleasesRelease;
|
'plugin::content-releases.release': PluginContentReleasesRelease;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue