-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Task Overview
We want to extend the Byline component to render an image for each occupation authored in the component. For this we want to leverage the https://loremflickr.com/ API
API Description
Then Endpoint we want to use to retrieve the image is
https://loremflickr.com/json/g/320/240/[OCCUPATION]/all
Where the Occupation part of the path will be replaced by the authored string.
A JSON will be returned and the image link, that is part of the json will be value retrieved and used
Task Description
Create OSGi Service to call endpoint and return image link
- Make the service configurable, configurable values should be width,length of the image to be pulled and connection timeout
- Configure sensible defaults
- implement sensible error handling
- cover 50 % of the lines with unit tests (optional)
Adjust Byline Component Sling Model
- Inject your service into the model
- expose method to the HTL that retrieves an image link or links, depending on your approach
- cover the new lines with unit tests
Adjust byline HTL
- change the htl to render an image for each occupation authored in the component
- adjust the css to render images next to each other if more than one occupation is present
Notes
It is not expected for you to finish this task in time, we want to see what you focus on, and what your approach is.
for any questions reach out to m.galle@reply.com, I will answer you as immediate as possible.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels