-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
441 changed files
with
4,859 additions
and
5,017 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 0 additions & 31 deletions
31
article-api/src/main/scala/no/ndla/articleapi/model/api/ArticleSummaryV2.scala
This file was deleted.
Oops, something went wrong.
42 changes: 42 additions & 0 deletions
42
article-api/src/main/scala/no/ndla/articleapi/model/api/ArticleSummaryV2DTO.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/* | ||
* Part of NDLA article-api | ||
* Copyright (C) 2016 NDLA | ||
* | ||
* See LICENSE | ||
* | ||
*/ | ||
|
||
package no.ndla.articleapi.model.api | ||
|
||
import no.ndla.common.model.NDLADate | ||
import sttp.tapir.Schema.annotations.description | ||
|
||
@description("Short summary of information about the article") | ||
case class ArticleSummaryV2DTO( | ||
@description("The unique id of the article") | ||
id: Long, | ||
@description("The title of the article") | ||
title: ArticleTitleDTO, | ||
@description("A visual element article") | ||
visualElement: Option[VisualElementDTO], | ||
@description("An introduction for the article") | ||
introduction: Option[ArticleIntroductionDTO], | ||
@description("A metaDescription for the article") | ||
metaDescription: Option[ArticleMetaDescriptionDTO], | ||
@description("A meta image for the article") | ||
metaImage: Option[ArticleMetaImageDTO], | ||
@description("The full url to where the complete information about the article can be found") | ||
url: String, | ||
@description("Describes the license of the article") | ||
license: String, | ||
@description("The type of article this is. Possible values are frontpage-article, standard, topic-article") | ||
articleType: String, | ||
@description("The time when the article was last updated") | ||
lastUpdated: NDLADate, | ||
@description("A list of available languages for this article") | ||
supportedLanguages: Seq[String], | ||
@description("A list of codes from GREP API attached to this article") | ||
grepCodes: Seq[String], | ||
@description("Value that dictates who gets to see the article. Possible values are: everyone/teacher") | ||
availability: String | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.