Skip to content
This repository has been archived by the owner on Apr 27, 2022. It is now read-only.

Add gallery image JSON #767

Merged
merged 3 commits into from Feb 2, 2017
Merged

Add gallery image JSON #767

merged 3 commits into from Feb 2, 2017

Conversation

rwd
Copy link
Contributor

@rwd rwd commented Feb 2, 2017

Given a gallery with slug "xyz", JSON for its image with position n will be accessible at /portal/en/explore/galleries/xyz/images/n.json

To support template: https://github.com/europeana/Europeana-Patternlab/blob/develop/source/_patterns/templates/Search/Gallery-page.json#L103-L111

# frozen_string_literal: true
RSpec.describe 'routes for the gallery images controller' do
it 'routes GET /en/explore/galleries/high-heels/images/2 to gallery_images#show' do
expect(get('/en/explore/galleries/high-heels/images/2')).to route_to('gallery_images#show', locale: 'en', gallery_slug: 'high-heels', position: '2')

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line is too long. [152/140]

@rwd rwd requested a review from lbiedinger February 2, 2017 10:14
With all simple rights data
@rwd rwd merged commit 89b12e1 into develop Feb 2, 2017
@rwd rwd deleted the feat/1866-gallery-image-json branch February 2, 2017 10:55
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants