{"action":"created","issue":{"url":"https://api.github.com/repos/Sylius/Sylius/issues/6560","repository_url":"https://api.github.com/repos/Sylius/Sylius","labels_url":"https://api.github.com/repos/Sylius/Sylius/issues/6560/labels{/name}","comments_url":"https://api.github.com/repos/Sylius/Sylius/issues/6560/comments","events_url":"https://api.github.com/repos/Sylius/Sylius/issues/6560/events","html_url":"https://github.com/Sylius/Sylius/pull/6560","id":185479812,"number":6560,"title":"[API] Use codes instead of IDs in the REST API","user":{"login":"jjanvier","id":3691804,"avatar_url":"https://avatars.githubusercontent.com/u/3691804?v=3","gravatar_id":"","url":"https://api.github.com/users/jjanvier","html_url":"https://github.com/jjanvier","followers_url":"https://api.github.com/users/jjanvier/followers","following_url":"https://api.github.com/users/jjanvier/following{/other_user}","gists_url":"https://api.github.com/users/jjanvier/gists{/gist_id}","starred_url":"https://api.github.com/users/jjanvier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jjanvier/subscriptions","organizations_url":"https://api.github.com/users/jjanvier/orgs","repos_url":"https://api.github.com/users/jjanvier/repos","events_url":"https://api.github.com/users/jjanvier/events{/privacy}","received_events_url":"https://api.github.com/users/jjanvier/received_events","type":"User","site_admin":false},"labels":[{"id":236064640,"url":"https://api.github.com/repos/Sylius/Sylius/labels/BC%20Break","name":"BC Break","color":"CF1D1D","default":false},{"id":236064219,"url":"https://api.github.com/repos/Sylius/Sylius/labels/DX","name":"DX","color":"5319e7","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-10-26T18:56:10Z","updated_at":"2016-10-27T22:45:11Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Sylius/Sylius/pulls/6560","html_url":"https://github.com/Sylius/Sylius/pull/6560","diff_url":"https://github.com/Sylius/Sylius/pull/6560.diff","patch_url":"https://github.com/Sylius/Sylius/pull/6560.patch"},"body":"Hello there,\r\n\r\nI think it could really easier and huge DX bonus to be able to use the API via codes (or business identifiers) instead of MySQL or technical IDs.\r\n\r\n(and by the way, it could really help me for what I'm currently doing :p)\r\n\r\nThis is just an example, I could do it really quick for all others models if you are interested.\r\n\r\n## TODO:\r\n- [ ] !!adjustment.yml\r\n- [ ] channel.yml\r\n- [ ] checkout.yml\r\n- [x] country.yml\r\n- [x] currency.yml\r\n- [ ] customer.yml\r\n- [x] locale.yml\r\n- [ ] order.yml\r\n- [ ] order_item.yml => no code or unique property, impossible right now\r\n- [ ] payment.yml\r\n- [ ] payment_method.yml\r\n- [ ] product.yml\r\n- [ ] product_attribute.yml\r\n- [ ] product_option.yml\r\n- [ ] product_variant.yml\r\n- [ ] promotion.yml\r\n- [ ] promotion_coupon.yml\r\n- [x] province.yml\r\n- [ ] setting.yml => no code or unique property, impossible right now\r\n- [ ] shipment.yml => no code or unique property, impossible right now\r\n- [ ] shipping_category.yml\r\n- [x] shipping_method.yml\r\n- [ ] tax_category.yml\r\n- [x] tax_rate.yml\r\n- [x] taxon.yml\r\n- [ ] user.yml\r\n- [x] zone.yml\r\n\r\n| Q               | A\r\n| --------------- | ---\r\n| Bug fix?        | no\r\n| New feature?    | no\r\n| BC breaks?      | yes\r\n| Related tickets | -\r\n| License         | MIT\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Sylius/Sylius/issues/comments/256790954","html_url":"https://github.com/Sylius/Sylius/pull/6560#issuecomment-256790954","issue_url":"https://api.github.com/repos/Sylius/Sylius/issues/6560","id":256790954,"user":{"login":"steffenbrem","id":1569156,"avatar_url":"https://avatars.githubusercontent.com/u/1569156?v=3","gravatar_id":"","url":"https://api.github.com/users/steffenbrem","html_url":"https://github.com/steffenbrem","followers_url":"https://api.github.com/users/steffenbrem/followers","following_url":"https://api.github.com/users/steffenbrem/following{/other_user}","gists_url":"https://api.github.com/users/steffenbrem/gists{/gist_id}","starred_url":"https://api.github.com/users/steffenbrem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/steffenbrem/subscriptions","organizations_url":"https://api.github.com/users/steffenbrem/orgs","repos_url":"https://api.github.com/users/steffenbrem/repos","events_url":"https://api.github.com/users/steffenbrem/events{/privacy}","received_events_url":"https://api.github.com/users/steffenbrem/received_events","type":"User","site_admin":false},"created_at":"2016-10-27T22:45:11Z","updated_at":"2016-10-27T22:45:11Z","body":"Codes are meant to be globally unique right? Would like to know if I got the same idea behind \"codes\" as you guys do."}}
{"actor":{"display_login":"steffenbrem"}}