-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue#602 support for media #180
base: master
Are you sure you want to change the base?
Conversation
GlobalDigitalLibraryio/issues#
…in order to get all flagged books (#173)
…lLibraryio/book-api into Issue#602-Support-for-media
@ApiModel(description = "Information about about a media element") | ||
case class Media(@(ApiModelProperty@field)(description = "URL to the details about the media") url: String, | ||
@(ApiModelProperty@field)(description = "Always set to 'image', 'audio' or 'video'") `type`: String, | ||
@(ApiModelProperty@field)(description = "Image id of the media") id: String) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Her skulle det kanskje være "Id of the media".
@@ -21,6 +21,7 @@ trait ContentConverter { | |||
val contentConverter: ContentConverter | |||
|
|||
class ContentConverter extends LazyLogging { | |||
// TODO: VIDEO - write a v2 of tis that supports also video or rewrite it so support video and be backward compatible? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Er disse gjort? Då bør TODO slettes.
@@ -282,6 +282,7 @@ trait WriteService { | |||
person)) | |||
} | |||
} | |||
// TODO use v2? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
?
rendererBuilder | ||
} | ||
|
||
// TODO: V2 must rewrite this to get right chapter images... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Er dette gjort?
Vi har laget V2 av alle eksisterende controllere osv som blir berørt av det at vi skal støtte flere typer enn bare IMAGE. Dette er for at det skal være enkelt å bare kunne deprecate og slette V1 og rename når den tid kommer.
Vi har gjort følgende:
Translation
-tabellen med et felt for å finne ut hva slags type bok det er snakk om (vanlig bok med bilder, eller en bok med video). Dette for å lettere kunne vise det frem på ønskelig måte i frontend bla.Det er veldig fint om andre også kjører opp denne versjonen lokalt og ser om de får testet det litt og ellers kommer med ting som de ser er manglende osv :)
Denne versjonen ligger i test også.