[weirds] URIs in draft-newton-et-al-weirds-rir-json-response-01

Alex Sergeyev <abc@alexsergeyev.com> Wed, 23 May 2012 17:59 UTC

Return-Path: <alexandrsergeyev@gmail.com>
X-Original-To: weirds@ietfa.amsl.com
Delivered-To: weirds@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 716AC21F877C for <weirds@ietfa.amsl.com>; Wed, 23 May 2012 10:59:05 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.977
X-Spam-Level:
X-Spam-Status: No, score=-2.977 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, RCVD_IN_DNSWL_LOW=-1]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id NcgDET0Xr37D for <weirds@ietfa.amsl.com>; Wed, 23 May 2012 10:59:04 -0700 (PDT)
Received: from mail-we0-f172.google.com (mail-we0-f172.google.com [74.125.82.172]) by ietfa.amsl.com (Postfix) with ESMTP id 902A521F8776 for <weirds@ietf.org>; Wed, 23 May 2012 10:59:04 -0700 (PDT)
Received: by werb13 with SMTP id b13so4433627wer.31 for <weirds@ietf.org>; Wed, 23 May 2012 10:59:03 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; bh=INsJIisv2UH5p7zsgV9UiRATEsZLNl6YNxqU67ekJD0=; b=gNIFbPu4vE9b0SJdbm5FuUHo/zb0wbS4HjnhYZe1nQYS/icQ62QI8VDM2CRkjARtW6 64+gxzkFNoOyNWjWmBhtmkklnafavY93CraXlATOB1+1RLpRLZ0EMWGdMSp5K8CZuYAa mYSk86tg6tfjinZ5M0LgRsZcZHf60TPk5goq1zSC/TBNyFRcMneqZb4zS19ybMKgbsbA SV4kI1UihWvuptlWsV4/wJv/t+pDI/tNp+0TFiHi8mU88LGrJmN6khJij/1NAvZHoBRh GCZYRV7E0RzAYw6PXZJ8jYylBOR5AYv8O3zQ9fc/0Pr/Mu5kax52Zfyy432SHaPjtpaO zNJg==
MIME-Version: 1.0
Received: by 10.180.101.103 with SMTP id ff7mr48420902wib.6.1337795941145; Wed, 23 May 2012 10:59:01 -0700 (PDT)
Sender: alexandrsergeyev@gmail.com
Received: by 10.216.206.68 with HTTP; Wed, 23 May 2012 10:59:01 -0700 (PDT)
Date: Wed, 23 May 2012 13:59:01 -0400
X-Google-Sender-Auth: FXZK3s_kQP-WB1VjL-9H6-HzIJY
Message-ID: <CAJbypPr9e0T4RTPK3QkO+nRN1nJWWsd8RPdk1P4cffUROHN6GQ@mail.gmail.com>
From: Alex Sergeyev <abc@alexsergeyev.com>
To: weirds@ietf.org
Content-Type: text/plain; charset="UTF-8"
Subject: [weirds] URIs in draft-newton-et-al-weirds-rir-json-response-01
X-BeenThere: weirds@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: "WHOIS-based Extensible Internet Registration Data Service \(WEIRDS\)" <weirds.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/weirds>, <mailto:weirds-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/weirds>
List-Post: <mailto:weirds@ietf.org>
List-Help: <mailto:weirds-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/weirds>, <mailto:weirds-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 23 May 2012 17:59:05 -0000

Hi,

I have a small question/proposal about weirds JSON responce format.
Mostly about "uris" section in examples from
http://tools.ietf.org/html/draft-newton-et-al-weirds-rir-json-response-01

   {
     "handle" : "XXXX-RIR",
     "startAddress" : "10.0.0.0",
     "endAddress" : "10.0.0.255",
     "ipVersion" : 4,
     "name": "NET-RTR-1",
     "description" : [ "A network used for routing" ],
     "type" : "DIRECT ALLOCATION",
     "country" : "AU",
     "parentHandle" : "YYYY-RIR",
     "remarks" : [
       "she sells seas shells",
       "down by the seashore"
     ],
     "uris" : [
       {
         "type" : "source",
         "uri" : "http://whois-rws.net/network/xxxx"
       },
       {
         "type" : "parent",
         "uri" : "http://whois-rws.net/network/yyyy"
       },
       {
         "type" : "held",
         "uri" : "http://example.net/location/xxxx"
       }
     ],
     "registrationDate" : "20110509",
     "lastChangedDate" : "20110509",
     "lastChangedBy" : "joe@bob.com"
   }


In my opinion, "type" inside of each URI section is really not saying much.
Would anyone agree that automated tools would be easier to design if
say it'll be "ref" element instead. and it would refer to actual keys
inside of JSON:


   "uris" : [
       {
         "ref" : "source",
         "type": "network",
         "uri" : "http://whois-rws.net/network/xxxx"
       },
       {
         "ref" : "parentHandle",
         "type": "network",
         "uri" : "http://whois-rws.net/network/yyyy"
       },
       {
         "type" : "held",
         "ref" : null,
         "uri" : "http://example.net/location/xxxx"
       }
     ],


Something in this sense, that will allow automatic tools to make
better judgement of URIs. Also in case of contacts for domain
registrations it would be nice to do structured "refs", like ' "ref":
"contact/tech" '


I do have another note about generic "status" field for all future
JSON info responses. I'm adding it here because it makes sense if
things above are interesting.

Right now, similar to EPP in domain registration world WEIRDS will likely show:

status: ["clientTransferProhibited", "clientDeleteProhibited",
"clientUpdateProhibited"]

which in my opinion is not having value to consumer of WEIRDS info.

When I find info about domains for EPP purposes, I need to
differentiate between "clientTransferProhibited" and
"serverTransferProhibited". And I will. But, when i'm in WHOIS/WEIRDS
context, I think it's unnecessary information. My goal is to find few
basic bits of data:

"status" : {
   "transferProhibited" : true,
   "updateProhibited"  : true,
   "deleteProhibited"   : true,
   "Hold" : false
}

same thing, it'll help to add additional info URIs to those elements:

{
"ref" : "status/Hold",
"uri": ....
}

meaning that ideally you can EXTEND that status block with meaningful keys


It might be impractical for all interested parties for sure but I just
thought to start this conversation while working on toy implementation
for our own needs.


Sincerely,

Alex Sergeyev,
Dyn Labs