{"action":"created","issue":{"url":"https://api.github.com/repos/e-government-ua/i/issues/515","labels_url":"https://api.github.com/repos/e-government-ua/i/issues/515/labels{/name}","comments_url":"https://api.github.com/repos/e-government-ua/i/issues/515/comments","events_url":"https://api.github.com/repos/e-government-ua/i/issues/515/events","html_url":"https://github.com/e-government-ua/i/issues/515","id":93988744,"number":515,"title":"Создать сущность Country и сервисы к ней","user":{"login":"bvv4ik","id":4208821,"avatar_url":"https://avatars.githubusercontent.com/u/4208821?v=3","gravatar_id":"","url":"https://api.github.com/users/bvv4ik","html_url":"https://github.com/bvv4ik","followers_url":"https://api.github.com/users/bvv4ik/followers","following_url":"https://api.github.com/users/bvv4ik/following{/other_user}","gists_url":"https://api.github.com/users/bvv4ik/gists{/gist_id}","starred_url":"https://api.github.com/users/bvv4ik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bvv4ik/subscriptions","organizations_url":"https://api.github.com/users/bvv4ik/orgs","repos_url":"https://api.github.com/users/bvv4ik/repos","events_url":"https://api.github.com/users/bvv4ik/events{/privacy}","received_events_url":"https://api.github.com/users/bvv4ik/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/e-government-ua/i/labels/hi%20priority","name":"hi priority","color":"e11d21"},{"url":"https://api.github.com/repos/e-government-ua/i/labels/In%20process%20of%20testing","name":"In process of testing","color":"d4c5f9"},{"url":"https://api.github.com/repos/e-government-ua/i/labels/question","name":"question","color":"bfe5bf"},{"url":"https://api.github.com/repos/e-government-ua/i/labels/test","name":"test","color":"5319e7"}],"state":"open","locked":false,"assignee":{"login":"RoOmel","id":12996514,"avatar_url":"https://avatars.githubusercontent.com/u/12996514?v=3","gravatar_id":"","url":"https://api.github.com/users/RoOmel","html_url":"https://github.com/RoOmel","followers_url":"https://api.github.com/users/RoOmel/followers","following_url":"https://api.github.com/users/RoOmel/following{/other_user}","gists_url":"https://api.github.com/users/RoOmel/gists{/gist_id}","starred_url":"https://api.github.com/users/RoOmel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RoOmel/subscriptions","organizations_url":"https://api.github.com/users/RoOmel/orgs","repos_url":"https://api.github.com/users/RoOmel/repos","events_url":"https://api.github.com/users/RoOmel/events{/privacy}","received_events_url":"https://api.github.com/users/RoOmel/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/e-government-ua/i/milestones/5","html_url":"https://github.com/e-government-ua/i/milestones/BackEnd-REST-Activiti_Java","labels_url":"https://api.github.com/repos/e-government-ua/i/milestones/5/labels","id":1063352,"number":5,"title":"BackEnd-REST-Activiti_Java","description":"Разработка кастомных общих API/REST, которые вначале позволят реализовывать  нужные нам сервисы по авторизации(и не только), а потом станут общей-единой точкой входа, включающую текущие REST Activiti","creator":{"login":"bvv4ik","id":4208821,"avatar_url":"https://avatars.githubusercontent.com/u/4208821?v=3","gravatar_id":"","url":"https://api.github.com/users/bvv4ik","html_url":"https://github.com/bvv4ik","followers_url":"https://api.github.com/users/bvv4ik/followers","following_url":"https://api.github.com/users/bvv4ik/following{/other_user}","gists_url":"https://api.github.com/users/bvv4ik/gists{/gist_id}","starred_url":"https://api.github.com/users/bvv4ik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bvv4ik/subscriptions","organizations_url":"https://api.github.com/users/bvv4ik/orgs","repos_url":"https://api.github.com/users/bvv4ik/repos","events_url":"https://api.github.com/users/bvv4ik/events{/privacy}","received_events_url":"https://api.github.com/users/bvv4ik/received_events","type":"User","site_admin":false},"open_issues":16,"closed_issues":72,"state":"open","created_at":"2015-04-11T19:27:45Z","updated_at":"2015-07-23T12:08:43Z","due_on":null,"closed_at":null},"comments":11,"created_at":"2015-07-09T08:24:39Z","updated_at":"2015-07-23T13:41:21Z","closed_at":null,"body":"Примеры источников данных:\r\nhttp://www.profiwins.com.ua/uk/letters-and-orders/gks/4405-426.html\r\nhttps://uk.wikipedia.org/wiki/ISO_3166-1\r\n\r\n1) Сущность Country\r\nnID - ИД-номер Код внутренний (уникальный-ключ, автоитерируемый, long)\r\nnID_UA - ИД-номер Код, в Украинском классификкаторе (уникальный-ключ, long)\r\nsID_Two - ИД-строка Код-двухсимвольный, международный (уникальный-ключ, String 2 символа)\r\nsID_Three - ИД-строка Код-трехсимвольный, международный (уникальный-ключ, String 3 символа)\r\nsNameShort_UA - Назва країни, коротка, Украинская (уникальный, String < 100 символов)\r\nsNameShort_EN - Назва країни, коротка, англійською мовою (уникальный, String < 100 символов)\r\nsReference_LocalISO - Ссылка на локальный ISO-стандарт, с названием  (a-teg с href) (String < 100 символов)\r\nПример объкта сущности:\r\n{\r\nnID,3\r\n, \"nID_UA\":123\r\n, \"sID_Two\":\"AU\"\r\n, \"sID_Three\":\"AUS\"\r\n, \"sNameShort\":\"Австралія\"\r\n, \"sNameShort_EN\":\"Australy\"\r\n, \"sReference_LocalISO\":\"<a href=\\\"https://uk.wikipedia.org/wiki/ISO_3166-2:AU\\\">ISO_3166-2:AU</a>\"\r\n}\r\n\r\n2) сервисы:\r\n2.1) getCountryes - отдает массив объектов сущности, подпадающих под критерии\r\nпараметры:\r\nnID_UA //опциональный\r\nsID_Two //опциональный\r\nsID_Three //опциональный\r\nsNameShort_UA //опциональный\r\nsNameShort_EN //опциональный\r\n2.2) setCountry - апдейтит элемент(если задан один из уникальных-ключей) или вставляет (если не задан nID), и отдает экземпляр нового объекта\r\nпараметры:\r\nnID //опциональный, если другой уникальный-ключ задан и по нему найдена запись\r\nnID_UA //опциональный, если другой уникальный-ключ задан и по нему найдена запись\r\nsID_Two //опциональный, если другой уникальный-ключ задан и по нему найдена запись\r\nsID_Three //опциональный, если другой уникальный-ключ nID задан и по нему найдена запись\r\nsNameShort_UA //опциональный, если nID задан и по нему найдена запись\r\nsNameShort_EN //опциональный, если nID задан и по нему найдена запись\r\nsReference_LocalISO //опциональный\r\n2.3) removeCountry - удаляет элемент(по ОБЯЗАТЕЛЬНО заданому одому из уникальных-ключей)\r\nпараметры:\r\nnID //опциональный, если другой уникальный-ключ задан и по нему найдена запись\r\nnID_UA //опциональный, если другой уникальный-ключ задан и по нему найдена запись\r\nsID_Two //опциональный, если другой уникальный-ключ задан и по нему найдена запись\r\nsID_Three //опциональный, если другой уникальный-ключ задан и по нему найдена запись\r\n\r\n3) Наполнить данными csv\r\n\r\n4) Добавить документацию"},"comment":{"url":"https://api.github.com/repos/e-government-ua/i/issues/comments/124105131","html_url":"https://github.com/e-government-ua/i/issues/515#issuecomment-124105131","issue_url":"https://api.github.com/repos/e-government-ua/i/issues/515","id":124105131,"user":{"login":"RoOmel","id":12996514,"avatar_url":"https://avatars.githubusercontent.com/u/12996514?v=3","gravatar_id":"","url":"https://api.github.com/users/RoOmel","html_url":"https://github.com/RoOmel","followers_url":"https://api.github.com/users/RoOmel/followers","following_url":"https://api.github.com/users/RoOmel/following{/other_user}","gists_url":"https://api.github.com/users/RoOmel/gists{/gist_id}","starred_url":"https://api.github.com/users/RoOmel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RoOmel/subscriptions","organizations_url":"https://api.github.com/users/RoOmel/orgs","repos_url":"https://api.github.com/users/RoOmel/repos","events_url":"https://api.github.com/users/RoOmel/events{/privacy}","received_events_url":"https://api.github.com/users/RoOmel/received_events","type":"User","site_admin":false},"created_at":"2015-07-23T13:41:21Z","updated_at":"2015-07-23T13:41:21Z","body":"Из условия ТЗ:\r\n3) setCountry - \"... или вставляет (если НЕ ЗАДАН nID), и отдает экземпляр нового объекта\"\r\nВ моём запросе параметр nID отсутствует.\r\nТак его надо указывать или нет?\r\n, т.к. тут получается баг спека"}}