{"action":"created","issue":{"url":"https://api.github.com/repos/scenarioo/scenarioo/issues/437","repository_url":"https://api.github.com/repos/scenarioo/scenarioo","labels_url":"https://api.github.com/repos/scenarioo/scenarioo/issues/437/labels{/name}","comments_url":"https://api.github.com/repos/scenarioo/scenarioo/issues/437/comments","events_url":"https://api.github.com/repos/scenarioo/scenarioo/issues/437/events","html_url":"https://github.com/scenarioo/scenarioo/issues/437","id":114106732,"number":437,"title":"Idea: REST Service to get a ZIP of all step screenshots related to an object","user":{"login":"bruderol","id":755721,"avatar_url":"https://avatars.githubusercontent.com/u/755721?v=3","gravatar_id":"","url":"https://api.github.com/users/bruderol","html_url":"https://github.com/bruderol","followers_url":"https://api.github.com/users/bruderol/followers","following_url":"https://api.github.com/users/bruderol/following{/other_user}","gists_url":"https://api.github.com/users/bruderol/gists{/gist_id}","starred_url":"https://api.github.com/users/bruderol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bruderol/subscriptions","organizations_url":"https://api.github.com/users/bruderol/orgs","repos_url":"https://api.github.com/users/bruderol/repos","events_url":"https://api.github.com/users/bruderol/events{/privacy}","received_events_url":"https://api.github.com/users/bruderol/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/scenarioo/scenarioo/labels/1%20-%20Ready","name":"1 - Ready","color":"CCCCCC"},{"url":"https://api.github.com/repos/scenarioo/scenarioo/labels/Ready-to-Code","name":"Ready-to-Code","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/scenarioo/scenarioo/milestones/5","html_url":"https://github.com/scenarioo/scenarioo/milestones/Backlog%20Prio%202","labels_url":"https://api.github.com/repos/scenarioo/scenarioo/milestones/5/labels","id":361363,"number":5,"title":"Backlog Prio 2","description":"Backlog with features that are not planned to realize in the next sprints.\r\nPrio2 = Important features but not planned yet.","creator":{"login":"bruderol","id":755721,"avatar_url":"https://avatars.githubusercontent.com/u/755721?v=3","gravatar_id":"","url":"https://api.github.com/users/bruderol","html_url":"https://github.com/bruderol","followers_url":"https://api.github.com/users/bruderol/followers","following_url":"https://api.github.com/users/bruderol/following{/other_user}","gists_url":"https://api.github.com/users/bruderol/gists{/gist_id}","starred_url":"https://api.github.com/users/bruderol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bruderol/subscriptions","organizations_url":"https://api.github.com/users/bruderol/orgs","repos_url":"https://api.github.com/users/bruderol/repos","events_url":"https://api.github.com/users/bruderol/events{/privacy}","received_events_url":"https://api.github.com/users/bruderol/received_events","type":"User","site_admin":false},"open_issues":32,"closed_issues":3,"state":"open","created_at":"2013-06-21T20:31:34Z","updated_at":"2015-12-07T16:24:17Z","due_on":"2021-06-13T07:00:00Z","closed_at":null},"comments":5,"created_at":"2015-10-29T17:44:47Z","updated_at":"2016-02-05T18:10:39Z","closed_at":null,"body":"Wish / Idea by @stivo:\r\nIt would be helpfull for his project to get a list of all URLs of all screenshots of steps that contain a specific object (attached to the screen).\r\n\r\n**Examples:**\r\n* NEED 1: give screenshots for messages that need translations to the translators (as a reference to give some context):\r\n   * Query all images of steps that contain a specific message key\r\n   * Query all images of steps that contain messages of a given resource file \r\n* NEED 2: get all screenshots of all steps of a specific page\r\n* NEED 3: get all screenshots of all steps of a scenarioo (for protoyping in a tool)\r\n\r\n**Acceptance criterias:**\r\n * REST Service called with the name and the type of an object (similar to the object repository service that returns object indexes) returns a list of all image URLs for all steps that contain the passed object\r\n * same for all steps of one scenario\r\n * Nice to have:\r\n     * Same but with ZIP file containing all images as a result (depending on requested content type)\r\n\r\n@danielsuter Wasnt there something similar allready discussed once (concerning getting all screenshots of a specific page)?"},"comment":{"url":"https://api.github.com/repos/scenarioo/scenarioo/issues/comments/180476769","html_url":"https://github.com/scenarioo/scenarioo/issues/437#issuecomment-180476769","issue_url":"https://api.github.com/repos/scenarioo/scenarioo/issues/437","id":180476769,"user":{"login":"Stivo","id":1336052,"avatar_url":"https://avatars.githubusercontent.com/u/1336052?v=3","gravatar_id":"","url":"https://api.github.com/users/Stivo","html_url":"https://github.com/Stivo","followers_url":"https://api.github.com/users/Stivo/followers","following_url":"https://api.github.com/users/Stivo/following{/other_user}","gists_url":"https://api.github.com/users/Stivo/gists{/gist_id}","starred_url":"https://api.github.com/users/Stivo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Stivo/subscriptions","organizations_url":"https://api.github.com/users/Stivo/orgs","repos_url":"https://api.github.com/users/Stivo/repos","events_url":"https://api.github.com/users/Stivo/events{/privacy}","received_events_url":"https://api.github.com/users/Stivo/received_events","type":"User","site_admin":false},"created_at":"2016-02-05T18:10:39Z","updated_at":"2016-02-05T18:10:39Z","body":"I tried this. It actually works, but it is quite ugly. I am not convinced that the current indexes support this feature well, but maybe I just missed something?\r\nFor the project at my client I already settled with the idea of building an index myself for the step.xml files, this works quite nicely and is also much faster than querying the rest service for each object (~400 objects).\r\nAnyway, see my implementation [here](https://github.com/Stivo/scenarioo/commit/c4b7f351666aee4bf6b98c13cce51f31015d64bf)\r\n"}}