Skip to content

Commit cfc54db

Browse files
committed
Add resource type Case for forward compability.
1 parent 8f684d5 commit cfc54db

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

common/src/main/scala/no/ndla/common/model/domain/ResourceType.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ object ResourceType extends Enum[ResourceType] with CirceEnum[ResourceType] {
2929
case object Image extends ResourceType("image")
3030
case object Learningpath extends ResourceType("learningpath")
3131
case object Multidisciplinary extends ResourceType("multidisciplinary")
32+
case object Case extends ResourceType("case")
3233
case object Topic extends ResourceType("topic")
3334
case object Video extends ResourceType("video")
3435
}

myndla-api/src/main/scala/no/ndla/myndlaapi/controller/StatsController.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class StatsController(using
4545
}
4646

4747
private val pathResourceType = path[CommaSeparated[String]]("resourceType").description(
48-
s"The type of the resource to look up. Comma separated list to support ${ResourceType.Multidisciplinary}. Possible values ${ResourceType.values.mkString(", ")}"
48+
s"The type of the resource to look up. Separate with comma to search for several types simultaneously. Possible values ${ResourceType.values.mkString(", ")}"
4949
)
5050
private val pathResourceIds =
5151
path[CommaSeparated[String]]("resourceIds").description("IDs of the resources to look up")

0 commit comments

Comments
 (0)