Browse Source
Merge pull request #8706 from imbeacon/fix/swagger-models
Fixes for models in Swagger
pull/8714/head^2
Andrew Shvayka
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with
12 additions and
0 deletions
-
common/data/src/main/java/org/thingsboard/server/common/data/id/NotificationId.java
-
common/data/src/main/java/org/thingsboard/server/common/data/id/NotificationRequestId.java
-
common/data/src/main/java/org/thingsboard/server/common/data/id/NotificationRuleId.java
-
common/data/src/main/java/org/thingsboard/server/common/data/id/NotificationTargetId.java
-
common/data/src/main/java/org/thingsboard/server/common/data/id/NotificationTemplateId.java
-
common/data/src/main/java/org/thingsboard/server/common/data/id/QueueId.java
|
|
|
@ -17,6 +17,7 @@ package org.thingsboard.server.common.data.id; |
|
|
|
|
|
|
|
import com.fasterxml.jackson.annotation.JsonCreator; |
|
|
|
import com.fasterxml.jackson.annotation.JsonProperty; |
|
|
|
import io.swagger.annotations.ApiModelProperty; |
|
|
|
import org.thingsboard.server.common.data.EntityType; |
|
|
|
|
|
|
|
import java.util.UUID; |
|
|
|
@ -28,6 +29,7 @@ public class NotificationId extends UUIDBased implements EntityId { |
|
|
|
super(id); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiModelProperty(position = 2, required = true, value = "string", example = "NOTIFICATION", allowableValues = "NOTIFICATION") |
|
|
|
@Override |
|
|
|
public EntityType getEntityType() { |
|
|
|
return EntityType.NOTIFICATION; |
|
|
|
|
|
|
|
@ -17,6 +17,7 @@ package org.thingsboard.server.common.data.id; |
|
|
|
|
|
|
|
import com.fasterxml.jackson.annotation.JsonCreator; |
|
|
|
import com.fasterxml.jackson.annotation.JsonProperty; |
|
|
|
import io.swagger.annotations.ApiModelProperty; |
|
|
|
import org.thingsboard.server.common.data.EntityType; |
|
|
|
|
|
|
|
import java.util.UUID; |
|
|
|
@ -28,6 +29,7 @@ public class NotificationRequestId extends UUIDBased implements EntityId { |
|
|
|
super(id); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiModelProperty(position = 2, required = true, value = "string", example = "NOTIFICATION_REQUEST", allowableValues = "NOTIFICATION_REQUEST") |
|
|
|
@Override |
|
|
|
public EntityType getEntityType() { |
|
|
|
return EntityType.NOTIFICATION_REQUEST; |
|
|
|
|
|
|
|
@ -17,6 +17,7 @@ package org.thingsboard.server.common.data.id; |
|
|
|
|
|
|
|
import com.fasterxml.jackson.annotation.JsonCreator; |
|
|
|
import com.fasterxml.jackson.annotation.JsonProperty; |
|
|
|
import io.swagger.annotations.ApiModelProperty; |
|
|
|
import org.thingsboard.server.common.data.EntityType; |
|
|
|
|
|
|
|
import java.util.UUID; |
|
|
|
@ -28,6 +29,7 @@ public class NotificationRuleId extends UUIDBased implements EntityId { |
|
|
|
super(id); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiModelProperty(position = 2, required = true, value = "string", example = "NOTIFICATION_RULE", allowableValues = "NOTIFICATION_RULE") |
|
|
|
@Override |
|
|
|
public EntityType getEntityType() { |
|
|
|
return EntityType.NOTIFICATION_RULE; |
|
|
|
|
|
|
|
@ -17,6 +17,7 @@ package org.thingsboard.server.common.data.id; |
|
|
|
|
|
|
|
import com.fasterxml.jackson.annotation.JsonCreator; |
|
|
|
import com.fasterxml.jackson.annotation.JsonProperty; |
|
|
|
import io.swagger.annotations.ApiModelProperty; |
|
|
|
import org.thingsboard.server.common.data.EntityType; |
|
|
|
|
|
|
|
import java.util.UUID; |
|
|
|
@ -28,6 +29,7 @@ public class NotificationTargetId extends UUIDBased implements EntityId { |
|
|
|
super(id); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiModelProperty(position = 2, required = true, value = "string", example = "NOTIFICATION_TARGET", allowableValues = "NOTIFICATION_TARGET") |
|
|
|
@Override |
|
|
|
public EntityType getEntityType() { |
|
|
|
return EntityType.NOTIFICATION_TARGET; |
|
|
|
|
|
|
|
@ -17,6 +17,7 @@ package org.thingsboard.server.common.data.id; |
|
|
|
|
|
|
|
import com.fasterxml.jackson.annotation.JsonCreator; |
|
|
|
import com.fasterxml.jackson.annotation.JsonProperty; |
|
|
|
import io.swagger.annotations.ApiModelProperty; |
|
|
|
import org.thingsboard.server.common.data.EntityType; |
|
|
|
|
|
|
|
import java.util.UUID; |
|
|
|
@ -28,6 +29,7 @@ public class NotificationTemplateId extends UUIDBased implements EntityId { |
|
|
|
super(id); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiModelProperty(position = 2, required = true, value = "string", example = "NOTIFICATION_TEMPLATE", allowableValues = "NOTIFICATION_TEMPLATE") |
|
|
|
@Override |
|
|
|
public EntityType getEntityType() { |
|
|
|
return EntityType.NOTIFICATION_TEMPLATE; |
|
|
|
|
|
|
|
@ -17,6 +17,7 @@ package org.thingsboard.server.common.data.id; |
|
|
|
|
|
|
|
import com.fasterxml.jackson.annotation.JsonCreator; |
|
|
|
import com.fasterxml.jackson.annotation.JsonProperty; |
|
|
|
import io.swagger.annotations.ApiModelProperty; |
|
|
|
import org.thingsboard.server.common.data.EntityType; |
|
|
|
|
|
|
|
import java.util.UUID; |
|
|
|
@ -34,6 +35,7 @@ public class QueueId extends UUIDBased implements EntityId { |
|
|
|
return new QueueId(UUID.fromString(queueId)); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiModelProperty(position = 2, required = true, value = "string", example = "QUEUE", allowableValues = "QUEUE") |
|
|
|
@Override |
|
|
|
public EntityType getEntityType() { |
|
|
|
return EntityType.QUEUE; |
|
|
|
|