{"action":"created","issue":{"url":"https://api.github.com/repos/ConsenSys/IPFS-Store/issues/51","repository_url":"https://api.github.com/repos/ConsenSys/IPFS-Store","labels_url":"https://api.github.com/repos/ConsenSys/IPFS-Store/issues/51/labels{/name}","comments_url":"https://api.github.com/repos/ConsenSys/IPFS-Store/issues/51/comments","events_url":"https://api.github.com/repos/ConsenSys/IPFS-Store/issues/51/events","html_url":"https://github.com/ConsenSys/IPFS-Store/issues/51","id":382705260,"node_id":"MDU6SXNzdWUzODI3MDUyNjA=","number":51,"title":"[Feature Request] Get MetadataAndPayload from hash","user":{"login":"ivohuisjes","id":939345,"node_id":"MDQ6VXNlcjkzOTM0NQ==","avatar_url":"https://avatars0.githubusercontent.com/u/939345?v=4","gravatar_id":"","url":"https://api.github.com/users/ivohuisjes","html_url":"https://github.com/ivohuisjes","followers_url":"https://api.github.com/users/ivohuisjes/followers","following_url":"https://api.github.com/users/ivohuisjes/following{/other_user}","gists_url":"https://api.github.com/users/ivohuisjes/gists{/gist_id}","starred_url":"https://api.github.com/users/ivohuisjes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ivohuisjes/subscriptions","organizations_url":"https://api.github.com/users/ivohuisjes/orgs","repos_url":"https://api.github.com/users/ivohuisjes/repos","events_url":"https://api.github.com/users/ivohuisjes/events{/privacy}","received_events_url":"https://api.github.com/users/ivohuisjes/received_events","type":"User","site_admin":false},"labels":[{"id":838407793,"node_id":"MDU6TGFiZWw4Mzg0MDc3OTM=","url":"https://api.github.com/repos/ConsenSys/IPFS-Store/labels/enhancement","name":"enhancement","color":"a2eeef","default":true}],"state":"closed","locked":false,"assignee":{"login":"gjeanmart","id":506784,"node_id":"MDQ6VXNlcjUwNjc4NA==","avatar_url":"https://avatars3.githubusercontent.com/u/506784?v=4","gravatar_id":"","url":"https://api.github.com/users/gjeanmart","html_url":"https://github.com/gjeanmart","followers_url":"https://api.github.com/users/gjeanmart/followers","following_url":"https://api.github.com/users/gjeanmart/following{/other_user}","gists_url":"https://api.github.com/users/gjeanmart/gists{/gist_id}","starred_url":"https://api.github.com/users/gjeanmart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gjeanmart/subscriptions","organizations_url":"https://api.github.com/users/gjeanmart/orgs","repos_url":"https://api.github.com/users/gjeanmart/repos","events_url":"https://api.github.com/users/gjeanmart/events{/privacy}","received_events_url":"https://api.github.com/users/gjeanmart/received_events","type":"User","site_admin":false},"assignees":[{"login":"gjeanmart","id":506784,"node_id":"MDQ6VXNlcjUwNjc4NA==","avatar_url":"https://avatars3.githubusercontent.com/u/506784?v=4","gravatar_id":"","url":"https://api.github.com/users/gjeanmart","html_url":"https://github.com/gjeanmart","followers_url":"https://api.github.com/users/gjeanmart/followers","following_url":"https://api.github.com/users/gjeanmart/following{/other_user}","gists_url":"https://api.github.com/users/gjeanmart/gists{/gist_id}","starred_url":"https://api.github.com/users/gjeanmart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gjeanmart/subscriptions","organizations_url":"https://api.github.com/users/gjeanmart/orgs","repos_url":"https://api.github.com/users/gjeanmart/repos","events_url":"https://api.github.com/users/gjeanmart/events{/privacy}","received_events_url":"https://api.github.com/users/gjeanmart/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2018-11-20T15:05:36Z","updated_at":"2018-11-21T19:37:43Z","closed_at":"2018-11-21T19:37:43Z","author_association":"CONTRIBUTOR","body":"Given I only have the IPFS hash of the file, I would like to get the MetadataAndPayload of this file. Right now this is only possible to do a search.\r\n\r\nThere already exist a method in IPFSStore.java to get the payload, but you need to know the id:\r\npublic MetadataAndPayload getById(String indexName, String id)\r\n\r\nIs it possible to add a method to get the MetadataAndPayload by hash?"},"comment":{"url":"https://api.github.com/repos/ConsenSys/IPFS-Store/issues/comments/440785814","html_url":"https://github.com/ConsenSys/IPFS-Store/issues/51#issuecomment-440785814","issue_url":"https://api.github.com/repos/ConsenSys/IPFS-Store/issues/51","id":440785814,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MDc4NTgxNA==","user":{"login":"gjeanmart","id":506784,"node_id":"MDQ6VXNlcjUwNjc4NA==","avatar_url":"https://avatars3.githubusercontent.com/u/506784?v=4","gravatar_id":"","url":"https://api.github.com/users/gjeanmart","html_url":"https://github.com/gjeanmart","followers_url":"https://api.github.com/users/gjeanmart/followers","following_url":"https://api.github.com/users/gjeanmart/following{/other_user}","gists_url":"https://api.github.com/users/gjeanmart/gists{/gist_id}","starred_url":"https://api.github.com/users/gjeanmart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gjeanmart/subscriptions","organizations_url":"https://api.github.com/users/gjeanmart/orgs","repos_url":"https://api.github.com/users/gjeanmart/repos","events_url":"https://api.github.com/users/gjeanmart/events{/privacy}","received_events_url":"https://api.github.com/users/gjeanmart/received_events","type":"User","site_admin":false},"created_at":"2018-11-21T19:37:43Z","updated_at":"2018-11-21T19:37:43Z","author_association":"COLLABORATOR","body":"Fixed in **0.1.16**\r\n```\r\nIPFSStore client = new IPFSStore(\"http://localhost:8040/\", \"myindex\");\r\nMetadataAndPayload result = client.getByHash(\"myindex\", \"QmYZdDyJYAj2jAXzt8ZYD13ApbAKohgUgrTi8KHTKycVZC\");\r\n```"}}
{"actor":{"display_login":"gjeanmart"}}