Re: [core] ue of resource type in collections

Klaus Hartke <klaus.hartke@ericsson.com> Wed, 18 July 2018 14:00 UTC

Return-Path: <klaus.hartke@ericsson.com>
X-Original-To: core@ietfa.amsl.com
Delivered-To: core@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 7E5CA1311C7 for <core@ietfa.amsl.com>; Wed, 18 Jul 2018 07:00:13 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.31
X-Spam-Level:
X-Spam-Status: No, score=-4.31 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_DKIMWL_WL_HIGH=-0.01, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=ericsson.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vQnS_uUubk6g for <core@ietfa.amsl.com>; Wed, 18 Jul 2018 07:00:11 -0700 (PDT)
Received: from sessmg23.ericsson.net (sessmg23.ericsson.net [193.180.251.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 898901311A4 for <core@ietf.org>; Wed, 18 Jul 2018 07:00:11 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; d=ericsson.com; s=mailgw201801; c=relaxed/simple; q=dns/txt; i=@ericsson.com; t=1531922409; h=From:Sender:Reply-To:Subject:Date:Message-ID:To:Cc:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=Q1gsdOy+z7quAQDXM1meBHmdknUV18pGPziSkDBGVkI=; b=bukRtngq/bhB+Wr9lZJGsrPfBLlc0xI1GWd17XyPEDPp9xOIapcESdwgJDgbdpFW bqwEqaGcqQPaiVNt1Qel81MjFKUDJIfZAzOg+PggwFuw2qPcyBZHPzBCx8S/6Qr3 PR5TVK/ff4Oo/Om/OPKBxUPFUL6ygKQsqsURr8oEooc=;
X-AuditID: c1b4fb2d-20bff700000055ff-f4-5b4f47e9fed4
Received: from ESESBMB503.ericsson.se (Unknown_Domain [153.88.183.116]) by sessmg23.ericsson.net (Symantec Mail Security) with SMTP id 6B.59.22015.9E74F4B5; Wed, 18 Jul 2018 16:00:09 +0200 (CEST)
Received: from ESESSMB502.ericsson.se (153.88.183.163) by ESESBMB503.ericsson.se (153.88.183.170) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Wed, 18 Jul 2018 16:00:09 +0200
Received: from ESESSMB502.ericsson.se ([153.88.183.190]) by ESESSMB502.ericsson.se ([153.88.183.190]) with mapi id 15.01.1466.003; Wed, 18 Jul 2018 16:00:09 +0200
From: Klaus Hartke <klaus.hartke@ericsson.com>
To: "consultancy@vanderstok.org" <consultancy@vanderstok.org>, Core <core@ietf.org>
Thread-Topic: [core] ue of resource type in collections
Thread-Index: AQHUF1wyuOvf++gaV0iTcZ7wQsQKq6SVD5Ag
Date: Wed, 18 Jul 2018 14:00:09 +0000
Message-ID: <8a5f01b18f574ed6a6724dc49e4e47e6@ericsson.com>
References: <018f504348d7d168df65951dae5a44a4@bbhmail.nl>
In-Reply-To: <018f504348d7d168df65951dae5a44a4@bbhmail.nl>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [153.88.183.153]
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrBLMWRmVeSWpSXmKPExsUyM2J7ie5Ld/9og6n3jCwe7V/FZrHv7Xpm ByaPJUt+MnmcaNjOHsAUxWWTkpqTWZZapG+XwJWxbgdrwR7OilXtE9kbGOdwdjFyckgImEgc uPGMuYuRi0NI4CijxKYPm1lBEkIC3xglZq3XhEgsY5To2PmRGSTBJqAnsWrqD3YQW0QgVGLP rkVsILawgJnEvouLgOIcQHFzidmvyiBKjCT+dD8EK2ERUJW4f/UnC4jNK2At8XLrMRaQciEB S4mD/21AwpwCVhKbe9uYQGxGATGJ76fWgNnMAuISt57MZ4K4WUBiyZ7zzBC2qMTLx/9YIWwl ib3HroONZBbQlFi/Sx+iVVFiSvdDdoitghInZz5hmcAoOgvJ1FkIHbOQdMxC0rGAkWUVo2hx anFxbrqRsV5qUWZycXF+nl5easkmRmB8HNzyW3cH4+rXjocYBTgYlXh4lS39o4VYE8uKK3MP MUpwMCuJ8B587xctxJuSWFmVWpQfX1Sak1p8iFGag0VJnFdv1Z4oIYH0xJLU7NTUgtQimCwT B6dUA+PC9d/7uM7dmzRZXMi9ionpt0H/uwjLW/PeXXyY/3HN6R+aO1SuT9/yLuYlU6DM+VrJ H7c+X6yOOdHLcoblw1e+48xXp5cY34u+u4tV6U8n0/Pf2XtX35jzkmOXN69U5tKZJROTgjf9 PHxze9GrB2U9mld3rLqgtvjAhT0Hk0wFHqatsg5y+7mKT4mlOCPRUIu5qDgRAI/ZXzSLAgAA
Archived-At: <https://mailarchive.ietf.org/arch/msg/core/uAxA-aaBfNRbBCZdv80_x7Trrbc>
Subject: Re: [core] ue of resource type in collections
X-BeenThere: core@ietf.org
X-Mailman-Version: 2.1.27
Precedence: list
List-Id: "Constrained RESTful Environments \(CoRE\) Working Group list" <core.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/core>, <mailto:core-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/core/>
List-Post: <mailto:core@ietf.org>
List-Help: <mailto:core-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/core>, <mailto:core-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 18 Jul 2018 14:00:23 -0000

Peter van der Stok wrote:
> The coaps-est server uses a collection of resources:
> The collection resource has been assigned rt=ace.est
> It is not clear what the resource types of the underlying resources should
> be.

According to BCP 190 [1], the coaps-est draft should not mandate particular forms of URI substructure. So a server should be free to structure URIs as it sees fit, e.g.:

</a>;rt="ace.est"
</b>;rt="ace.est"
</c>;rt="ace.est"
</d>;rt="ace.est"
</e>;rt="ace.est"
</f>;rt="ace.est"

If a client has trouble selecting the right link from the above list (and they all look interchangeable to me), then you'd need to provide more specific link information, e.g.:

</a>;rt="ace.est.skg"
</b>;rt="ace.est.crts"
</c>; rt="ace.est"
</d>;rt="ace.est.att"
</e>;rt="ace.est.sren"
</f>;rt="ace.est.sen"

Klaus

[1] https://tools.ietf.org/html/bcp190