{"action":"created","issue":{"url":"https://api.github.com/repos/kinnisvara/RKVR/issues/31","labels_url":"https://api.github.com/repos/kinnisvara/RKVR/issues/31/labels{/name}","comments_url":"https://api.github.com/repos/kinnisvara/RKVR/issues/31/comments","events_url":"https://api.github.com/repos/kinnisvara/RKVR/issues/31/events","html_url":"https://github.com/kinnisvara/RKVR/pull/31","id":126163920,"number":31,"title":"Avaandmete kirjeldused JSON'is","user":{"login":"tormi","id":146800,"avatar_url":"https://avatars.githubusercontent.com/u/146800?v=3","gravatar_id":"","url":"https://api.github.com/users/tormi","html_url":"https://github.com/tormi","followers_url":"https://api.github.com/users/tormi/followers","following_url":"https://api.github.com/users/tormi/following{/other_user}","gists_url":"https://api.github.com/users/tormi/gists{/gist_id}","starred_url":"https://api.github.com/users/tormi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tormi/subscriptions","organizations_url":"https://api.github.com/users/tormi/orgs","repos_url":"https://api.github.com/users/tormi/repos","events_url":"https://api.github.com/users/tormi/events{/privacy}","received_events_url":"https://api.github.com/users/tormi/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/kinnisvara/RKVR/labels/in%20progress","name":"in progress","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-12T11:58:19Z","updated_at":"2016-01-18T11:54:06Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/kinnisvara/RKVR/pulls/31","html_url":"https://github.com/kinnisvara/RKVR/pull/31","diff_url":"https://github.com/kinnisvara/RKVR/pull/31.diff","patch_url":"https://github.com/kinnisvara/RKVR/pull/31.patch"},"body":"## Avaandmete kirjeldused (draft)\r\n* kinnisvara ([OG](http://www.objgen.com/json/models/5sEve)), ([GH](https://github.com/kinnisvara/RKVR/blob/avaandmed/avaandmed/kinnisvara.json))\r\n* hooned\r\n* maad\r\n* lepingud\r\n* menetlused\r\n\r\n## JSON\r\n* Andmed: kinnisvara, lepingud, menetlused(?)\r\n* Standard: http://json.org/\r\n* Töövahend: [ObjGen - Live JSON Generator](http://www.objgen.com/json)\r\n* Valideerimine: http://jsonlint.com/\r\n\r\n## GeoJSON\r\n* Andmed: hooned, maad\r\n* Standard: http://geojson.org/\r\n* Töövahend: http://geojson.io/\r\n* Valideerimine: http://geojsonlint.com/"},"comment":{"url":"https://api.github.com/repos/kinnisvara/RKVR/issues/comments/172508263","html_url":"https://github.com/kinnisvara/RKVR/pull/31#issuecomment-172508263","issue_url":"https://api.github.com/repos/kinnisvara/RKVR/issues/31","id":172508263,"user":{"login":"tormi","id":146800,"avatar_url":"https://avatars.githubusercontent.com/u/146800?v=3","gravatar_id":"","url":"https://api.github.com/users/tormi","html_url":"https://github.com/tormi","followers_url":"https://api.github.com/users/tormi/followers","following_url":"https://api.github.com/users/tormi/following{/other_user}","gists_url":"https://api.github.com/users/tormi/gists{/gist_id}","starred_url":"https://api.github.com/users/tormi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tormi/subscriptions","organizations_url":"https://api.github.com/users/tormi/orgs","repos_url":"https://api.github.com/users/tormi/repos","events_url":"https://api.github.com/users/tormi/events{/privacy}","received_events_url":"https://api.github.com/users/tormi/received_events","type":"User","site_admin":false},"created_at":"2016-01-18T11:54:06Z","updated_at":"2016-01-18T11:54:06Z","body":"## Kinnisvara andmekirjeldus ObjGen formaadis\r\nRef: http://www.objgen.com/json/models/5sEve\r\n```\r\n// Kinnisvara andmeteenuse kirjeldus\r\nvaraId n = 41100\r\nvaraKood = KV10001\r\n// TODO: varaKood URL'i\r\nURL = https://riigivara.fin.ee/kvr/vara/kinnis/41100\r\nvalitsemised [0]\r\n  algus d = 2003-12-29\r\n  lopp d = 2011-12-12\r\n  valitsejaNimetus = Kaitseministeerium\r\n  valitsejaKood = 70004502\r\n  volitatudNimetus = Kaitsevägi\r\n  volitatudKood = 70008641\r\n  valitsemiseEesmark = Määramata\r\n  // TODO: valitsemiseURL on vara kõigil valitsemistel sama\r\n  valitsemiseURL = https://riigivara.fin.ee/kvr/vara/rulings/41100\r\n  // TODO: kas menetluse andmed jätta?\r\n  menetluseNr = \r\n  menetluseURL = \r\nvalitsemised [1]\r\n  algus d = 2011-12-12\r\n  lopp d =\r\n  valitsejaNimetus = Kaitseministeerium\r\n  valitsejaKood = 70004502\r\n  volitatudNimetus = Kaitsevägi\r\n  volitatudKood = 70008641\r\n  valitsemiseEesmark = Riigivõimu teostamiseks\r\n  valitsemiseURL = https://riigivara.fin.ee/kvr/vara/rulings/41100\r\n  menetluseNr = 11-9015\r\n  // TODO: menetluseNr URL'i \r\n  menetluseURL = https://riigivara.fin.ee/kvr/ordaal/menetlus/311711\r\nkinnistu\r\n  registriosaNr n = 14659401\r\n  liik = Korteriomand\r\n  avamiseKuupaev d = 2003-11-03\r\n  koosseis [0]\r\n    kandeKuupaev d = 2014-10-27\r\n    kandeNr n = 1\r\n    kehtivus = kehtiv\r\n    lugeja n = 602\r\n    nimetaja n = 47356\r\n    katastriTunnus = 78403:305:0001\r\n    reaalosaKorteriNumber = 10\r\n    reaalosaUldpindM2 n =  60.2\r\n  omand [0]\r\n    kandeKuupaev d = 2003-11-03\r\n    kandeNr n = 1\r\n    kehtivus = kehtiv\r\n    omanikKood = \r\n    // TODO: riikide (ISO) ja KOV'ide (EHAK) koodid\r\n    omanikKoodiLiik = ISO\r\n    nimetus = Eesti Vabariik\r\n    lugeja n = 1\r\n    nimetaja n = 1\r\n    avalduseKuupaev d = 2003-03-25\r\n  koormatisedKitsendused [0]\r\n    kandeNr n = 1\r\n    kandeKuupaev d = 2005-10-21\r\n    kandeLiik = Iseseisev märkus\r\n    kandeAlamLiik = Märkus kinnistu riigivara valitseja koht\r\nhooneOsad [0]\r\n  kood = KV10001H1\r\n  URL = https://riigivara.fin.ee/kvr/vara/hoone/8933954\r\n  // TODO: kas hoone ja hooneosa ADS-OID'd eraldi?\r\n  ADS-OID = EE00634632\r\n  aadress = Harju maakond, Tallinn, Lasnamäe linnaosa, Alvari tn 35\r\n  ADS-OID-ER = ER01306798\r\n  // TODO: hetkel KVR'is lahiAadress ilma korterita\r\n  lahiAadress = Alvari tn 35-10\r\n  //TODO: kas osa andmed lisaks kinnistule ka siin?\r\n  lugeja n = \r\n  nimetaja n =\r\n  osaPindalaM2 n = 60.2\r\n  alates d = 1998-02-12\r\n  kuni d =\r\nmaaOsad [0]\r\n  kood = KL54375M1\r\n  URL = https://riigivara.fin.ee/kvr/vara/parcels/41100\r\n  ADS-OID = CU00454787\r\n  alates d =\r\n  kuni d = \r\nlepingud [0]\r\n  KVRNumber = LL11-102541\r\n  // Lepingu DHS number\r\n  number = LOGK-4.5-6.1/228\r\n  // TODO: liita lepingu 2 URL'il asuvad lehed\r\n  // URL 2: https://riigivara.fin.ee/kvr/dok/leping/lepingvara/116115\r\n  URL = https://riigivara.fin.ee/kvr/leping/yld/10249062\r\n  liik = Kasutamiseks andmine\r\n  alamLiik = Üürimine\r\n  menetluseId = 11-9786\r\n  menetluseURL = https://riigivara.fin.ee/kvr/ordaal/menetlus/327913\r\n  solmimiseAeg d = 2005-08-01\r\n  kehtivuseAlgus d =\r\n  kehtivuseLopp d =\r\n  tahtajalisus =\r\n  tahtaeg =\r\n  osapooled [0]\r\n    roll = andja\r\n    nimetus = Kaitsevägi\r\n    kood = 70008641\r\n    koodiLiik = RKOARR\r\n  osapooled [1]\r\n    roll = võtja\r\n    // TODO: avaandmete anonümiseerimine, kui koodiLiik = RR\r\n    nimetus = eraisik\r\n    kood = \r\n    koodiLiik = RR\r\n  ```"}}