[netconf] RESTCONF RFC8040 questions
Oleg Olivson <O.Olivson@falconvsystems.com> Thu, 18 July 2024 06:58 UTC
Return-Path: <O.Olivson@falconvsystems.com>
X-Original-To: netconf@ietfa.amsl.com
Delivered-To: netconf@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 4AFE6C14F70F for <netconf@ietfa.amsl.com>; Wed, 17 Jul 2024 23:58:31 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.107
X-Spam-Level:
X-Spam-Status: No, score=-2.107 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=falconvsystems.com header.b="o6DowavK"; dkim=pass (1024-bit key) header.d=falconvsystems.com header.b="o6DowavK"
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5P16ezhuh8hz for <netconf@ietfa.amsl.com>; Wed, 17 Jul 2024 23:58:27 -0700 (PDT)
Received: from DB3PR0202CU003.outbound.protection.outlook.com (mail-northeuropeazon11021084.outbound.protection.outlook.com [52.101.65.84]) (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 C0157C14F70C for <netconf@ietf.org>; Wed, 17 Jul 2024 23:58:26 -0700 (PDT)
ARC-Seal: i=2; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=pass; b=WnIaNDjR3kCdeXZSM+UJByQWFfHf+khKvmiS2RlDUe6wfSD/j47h265+Ho0sL/yYJc47EGl4NjSCDEXdbS1nxRAzbmRjZgX1qXP+unYHB7z7Hg9jDTb69LxA/7FADUh+tjtYTqalWGLYsazAZaJ6/PqhG/FW5dGKgGMLoQ5XjR9tiB8JpEsUCMN4GLR6CY4u1kCgpRtNSmbBZ+GZ1lkrkuddrh/CSPPXChNdivn5vrVeNkDJ3DlOh4KSjZdb3v8xpsXBxI2YlRSAlAOFkB5aePPfdyCzpMOTW4ii0dh8oMcFLF6qyel43izzLLkAOVKzoHuwdFTQ9R0+5/66Rd+ZtQ==
ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=/qJbzF1xx8B0vSFDj5gHtfZ14i7Jdaym9hrx67oRiXE=; b=QSq5CENYL++DIOn1agbKjR+JjHQpoyKtx5OmJ3FGKPslPjBDAC1H2EQ+z8ltOUY4y5ZE4iiATSUgkL7qbBq+wV2me+HNI2buGWy8+rwXerwuixTaeHHGiM0d3BpbwM5vn1CrkcBCkTWqMGhSrfZGGipP/qdB43tZeOCdEFhtCqg/pQuQqWtDTCkoNrEMMq6T5c6BB0K2odAQi5Z4MS6Snxe+fUqxescWVHfTDcENo6fVwls0dniAqKi1MBr+eNfQC4453T76ybjDk5UHrj+Ys8ET3Pozc0Gykseyg0KPW7zjg5jDsPMdnxQfGIEoqTPgOLMuIMElDB+/Nq+a3hKfKg==
ARC-Authentication-Results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 20.93.157.195) smtp.rcpttodomain=ietf.org smtp.mailfrom=falconvsystems.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=falconvsystems.com; dkim=pass (signature was verified) header.d=falconvsystems.com; arc=pass (0 oda=1 ltdi=1 spf=[1,1,smtp.mailfrom=falconvsystems.com] dkim=[1,1,header.d=falconvsystems.com] dmarc=[1,1,header.from=falconvsystems.com])
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=falconvsystems.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=/qJbzF1xx8B0vSFDj5gHtfZ14i7Jdaym9hrx67oRiXE=; b=o6DowavKR/WYERP9fs66s1mMnDDDm1qY01YNkArboMMHevHXeb3oHQgMPx6/r7lIIfg6Ty76YlWgMroT8Joo8gZfI/6Ez8JLJHibZ/blpCNY2LGq49eoMqBbmBUCpjU19oEQbbYL5GUPsG5p5XiTpIp8yRIwpclEpZYpeRUJEoA=
Received: from DU2PR04CA0044.eurprd04.prod.outlook.com (2603:10a6:10:234::19) by AM7PR02MB6258.eurprd02.prod.outlook.com (2603:10a6:20b:1b8::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7762.31; Thu, 18 Jul 2024 06:58:23 +0000
Received: from DU6PEPF00009526.eurprd02.prod.outlook.com (2603:10a6:10:234:cafe::1a) by DU2PR04CA0044.outlook.office365.com (2603:10a6:10:234::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7784.19 via Frontend Transport; Thu, 18 Jul 2024 06:58:23 +0000
X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 20.93.157.195) smtp.mailfrom=falconvsystems.com; dkim=pass (signature was verified) header.d=falconvsystems.com;dmarc=pass action=none header.from=falconvsystems.com;
Received-SPF: Pass (protection.outlook.com: domain of falconvsystems.com designates 20.93.157.195 as permitted sender) receiver=protection.outlook.com; client-ip=20.93.157.195; helo=westeu11-emailsignatures-cloud.codetwo.com; pr=C
Received: from westeu11-emailsignatures-cloud.codetwo.com (20.93.157.195) by DU6PEPF00009526.mail.protection.outlook.com (10.167.8.7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7784.11 via Frontend Transport; Thu, 18 Jul 2024 06:58:23 +0000
Received: from DUZPR83CU001.outbound.protection.outlook.com (40.93.64.12) by westeu11-emailsignatures-cloud.codetwo.com with CodeTwo SMTP Server (TLS12) via SMTP; Thu, 18 Jul 2024 06:58:22 +0000
ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=qXX9NFLraXMRDUmtTXRWSV1wkMc9Z5tvJybGVkNCpDYhDVjBNBikvz/2UjXJBzxndZA15XZGICPrsercYNwv9maXLjVSbnQO8xj8SR5IUI7eb3vQofrUVbkhAQ/ML1RyAVaQbGlBmaHNPKIMZ/FjD6n9eH1GpgfCSb3f/TXhenwmNwvYChkQpAzUzUpRCdDvjJcp94Ab6/+OZlIROdt4XnGm+BbKsN6pFqPqlTWIDGIp4BGPHzQzyNX4cXFtloAWAdAHCwutlG2Nk/gtBpB/0zZ4tB/eOYZyUA2e+rNHYSGQ03Mw8AFrB3tlHHeot2y7u577dNvsEQIjPhoKGnlEvg==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=/qJbzF1xx8B0vSFDj5gHtfZ14i7Jdaym9hrx67oRiXE=; b=ZwEOMGxEU5/6lMoeJ04t3gs3c2DZsCstAB7h7M9ZdbmBKjy3lP8YQmRLlLTNWxUa8y6gj2hSg+v74ZVp4QIMxuMiMDGisSqOPhYgsjkaVwNosfB4hsQ6iYokpT0J10zoOEfuIWcR7YZbtxmBZBOclYO4iuFkgGrejGaqmJ+SI7DgIYZ9ITlUMmpx3e9jU/MRApvRYdCaLaXXS4Hz/f2PnmJZGmYblNt8ZN86s8qWLPTDt6rwyv8A0woKYHdm/bHPilubTa8Ic8m1BqqklYsmHXujIhzArLVqZ316ubMGBG6Tq6UefQRBBlONlyepv6MMGxxRVDsu4i8DWRaI5hiYgQ==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=falconvsystems.com; dmarc=pass action=none header.from=falconvsystems.com; dkim=pass header.d=falconvsystems.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=falconvsystems.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=/qJbzF1xx8B0vSFDj5gHtfZ14i7Jdaym9hrx67oRiXE=; b=o6DowavKR/WYERP9fs66s1mMnDDDm1qY01YNkArboMMHevHXeb3oHQgMPx6/r7lIIfg6Ty76YlWgMroT8Joo8gZfI/6Ez8JLJHibZ/blpCNY2LGq49eoMqBbmBUCpjU19oEQbbYL5GUPsG5p5XiTpIp8yRIwpclEpZYpeRUJEoA=
Received: from AS4PR02MB8573.eurprd02.prod.outlook.com (2603:10a6:20b:588::6) by AS8PR02MB10105.eurprd02.prod.outlook.com (2603:10a6:20b:636::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7784.16; Thu, 18 Jul 2024 06:58:20 +0000
Received: from AS4PR02MB8573.eurprd02.prod.outlook.com ([fe80::cb1e:1e28:d4c:4497]) by AS4PR02MB8573.eurprd02.prod.outlook.com ([fe80::cb1e:1e28:d4c:4497%6]) with mapi id 15.20.7762.027; Thu, 18 Jul 2024 06:58:20 +0000
From: Oleg Olivson <O.Olivson@falconvsystems.com>
To: "netconf@ietf.org" <netconf@ietf.org>
Thread-Topic: RESTCONF RFC8040 questions
Thread-Index: AQHa2N/bY1Z26qVUQkyIwTrRTEGpUw==
Message-ID: <AS4PR02MB857374F0A0F29BA333ABB95F93AC2@AS4PR02MB8573.eurprd02.prod.outlook.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: yes
X-MS-TNEF-Correlator:
msip_labels:
Authentication-Results-Original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=falconvsystems.com;
x-ms-traffictypediagnostic: AS4PR02MB8573:EE_|AS8PR02MB10105:EE_|DU6PEPF00009526:EE_|AM7PR02MB6258:EE_
X-MS-Office365-Filtering-Correlation-Id: 6ed7c972-3bc8-4eac-b935-08dca6f703fa
X-MS-Exchange-SenderADCheck: 1
X-MS-Exchange-AntiSpam-Relay: 0
X-Microsoft-Antispam-Untrusted: BCL:0;ARA:13230040|366016|1800799024|376014|38070700018;
X-Microsoft-Antispam-Message-Info-Original: KvcHlUY1gQYJ9yHsknuZKC+LqNlFCXWSKFMVZnlwOd2DjXqrRbGyv4h+8GCx/teAJp3QBW+03IQyjEU+5Yu2L8c3mD/1dYRW3vcmu6gggojwxRprNqyE8fJKjTUT/7Vi3H18B7XguYE6X+rnvO3VlDbJmLS8TG3z3srF6HoXUjCPzW2/H/rD573x8q+z+LlpV/gIL0p4qfPjbx8SQ0uj15qUUrCx0UjiJxypT1Nb+YuTWctt59UKxdQ2vSORnwikdSPiKFSQj/girVPWniVtUOI2Jht3KuUyEtwZmp2HRLYlqbOKnFL4n0eTz7b1T0biPUGxPZtOeA4y1+tvW326qNejblBVhCQs+j09/H/LhNLLCF1gCPgSX/TusS9VMfa1kuCtu3/y8ROeZ1yTEfePtXxc1GChuSNEXdv9urihPUHnOFS2+weccW1giR3O7GSCDZySjZl504Xg+kUs+8tS7R9MrgYl2ytiKEekmIYtXn5JdloMRJzJydQWg+cGzBjkCJ1m4jMJtTps1IPIbjGHpXeeLmjdgqdSi8LGmMJz3JZNbB+JgFjOKBH4jKpZ4+lqi2rX1I+PpSo68LAmaSTzAwyCbeqIDA7/q6qb9ns3BcYsUcVcLksgwi8WBIpbySBQxR4CKBuorUCR//q905XD2SX1WDYL9jdflD6OG+Eq9B9XVzNAH5VSM6F1+eVSyZFk+hadKbMRz4yuKDCxGsWUnJ68xymXq28g8tEu1MbrjfRo54y0Ny67cGDoQ32W0C4qNbkZV/dQbyxtKqqT7m+oeWamzDAbC4z74UFsnQerVCebkR7zm2RqzkGWtVRrF9MRmI3o6UoZH98Eg9QgW/wwtb0KNZdPHFapWSmUZfNWQPgaNI2mM2O7ftCjlqy9t5RWLzQb8+C3FggKvDOyWkWKJBDlPP7S3cM8J64zylgDoxUyWhcEFi0BqJzGBmRSWqGWI9h+/Ns0JLxAIkD3AwGneERI5oCC4jVSdbZFfSsYn1mrJNscu9xreahhzypb/uygjf9GlC8yrHeZnvpMaKcMknqdERhm8Y7+pBBl//8Z1hR4DaEhBRUCD09KV+tCl92rF7W5makmE5a3CP3hmvk5YpSghlD8GBuZGlHxyWQzoxevUWkcCLz3dxG153Gb0fkUuAwz+bBds3eno21tLtLs50pSAQWJwTTlEXK52UDZ4gU0dJqSQKxRu+hpEucNmsHow0wAWF3LklLggzkkerBgoXHRjI7ZcCtH/7fuAhH/PXgSWDIZGJRHoqnV1rueaja5sJ7cxih7aCn6l+FJXpJ13dpMzWthNSX5hf6gs8hvPlEy/6a6JGrJxH6HkB12D2e9fAGvDiObWcZwyeo/dx1Dp3gj4yrpzPXx0KGCpJhlddE=
X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AS4PR02MB8573.eurprd02.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(1800799024)(376014)(38070700018);DIR:OUT;SFP:1102;
Content-Type: multipart/related; boundary="_004_AS4PR02MB857374F0A0F29BA333ABB95F93AC2AS4PR02MB8573eurp_"; type="multipart/alternative"
MIME-Version: 1.0
X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR02MB10105
X-CodeTwo-MessageID: be3e5081-ad84-4507-84fe-637f14282b64.20240718065822@westeu11-emailsignatures-cloud.codetwo.com
X-CodeTwoProcessed: true
X-EOPAttributedMessage: 0
X-MS-Exchange-Transport-CrossTenantHeadersStripped: DU6PEPF00009526.eurprd02.prod.outlook.com
X-MS-PublicTrafficType: Email
X-MS-Office365-Filtering-Correlation-Id-Prvs: 72ed1a5a-7aec-477d-797e-08dca6f701f5
X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|1800799024|35042699022|36860700013|82310400026;
X-Microsoft-Antispam-Message-Info: YN+hAFAj8naQx9SlNxDBpytwV5Qi89e8XpSXaTjae1J7RGvZpPmUhi178wYJ6KzjkpwOB5apIvtudROBmVtz5A70qVVN2TYhZqgzl0sLP371yBBtZKGkOMlhnckspR5jf+cq8MhqDnMI9KT6SlD3qp5sQs63gXgGtQa4EkFeVQtct7TmAQobcRynh7WIv9RHliYSMrLt0OvNWBjQaEhNe/s3BAMZNB4Y3Snwj+djXRdyBwghHu5EZ25yU0C/DfIFgA6tu7pNXEuuGasyLxd6RE9RQXjcOT9jGRM3hqIVUwzogl2LN6rmEkdto/ygirD+eM84oQ/CckpN9TO+60lL33Ahr6NuDr6QOR3K38H83gR0oaKoz6adNUguCz8yrN1p6f8hDccqQt/pmG0hBLc08+DvbIUAMgh91bTZBotQbnaVy7UuwtFSbjwguLIitLiS7oM64ta8JffAArYrpgO2N/uEF580cSuyxr5qMmPpasaUvucP0YKnHFFeZ3MELdLMFiTfRTXX/vv2VoVokPxFDtoUHsdFCIXeemd0HTMoH0L/Nu1cLDhk87VHuHvX7QCDbIyAKqmyYBAkgZc/4HaErMEyJswmLwYiqNDy2DL7KHBN7wmvlsWJ7G7sBIf29zSpnilkufflziA36iC1+6X6FWZgf2ZGZvcZrsIRFIEzknNeli0062wZb6XVoris2Ls7c7ZoXTnTkA5joPGzdigF5KTq5qoc590KfkC+wwGBTmhUrQp2yciOvV4lpRFOfldhsmO0zbrdm1mfhxHASEQXSxX+g+KUMb2ow/qq/vlhMmLrSJju71Uz8+uJQxVPHgEJl/YqjPqpCKufloJOknmvPs9JK9K9095extcwx2AYmw3o4ziWFtaJPNU8fQAPA7GVS2dYRVSiEZpcHRua/9XF8KypY+j5h98+NtFyGNM+Bc7qIEh5ix8zqv5bt90vyFiD4SZHUY3AuX6mC5Vvb9RdJJugLyFDYqWKuHDpnw47l/npJGAqBnG0h5uJ5S1bdV1vb85RgWSzDzqB2n978CBakFtiySTHatca0yZglrUrjccQLbJ9KMF1pa675JLzNzt+DURt+Cl7H2YK33qEseJyPg3CKG3g8D4O/cEoglAJf4Or+9BNZByXLk8+bMaRqSK/ekJwlND2dliVkpzWVh1sFDn3woehaUdteLf7JntpqIJYIzsFqdenOM7JlhZxBLUyP+YcIGGGNS4f0Pu7qaKbfkvWuyv+iRSc8OkKF16A8GaGLH7Im8LnDeEJ2PYCdRhokHsAsnsy7uOitgKKpbxsv+8dXv8ilFEW1pWXtxTlZ3CHEctEWRKy7XRyyy3xG7EYctHGU+1hcerDnDB4zRVjd0JKTp5CZEvGxfIk7ygnUxc30iyMuOExmFnWn9VPlBJ/
X-Forefront-Antispam-Report: CIP:20.93.157.195;CTRY:NL;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:westeu11-emailsignatures-cloud.codetwo.com;PTR:westeu11-emailsignatures-cloud.codetwo.com;CAT:NONE;SFS:(13230040)(376014)(1800799024)(35042699022)(36860700013)(82310400026);DIR:OUT;SFP:1102;
X-OriginatorOrg: falconvsystems.com
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Jul 2024 06:58:23.2882 (UTC)
X-MS-Exchange-CrossTenant-Network-Message-Id: 6ed7c972-3bc8-4eac-b935-08dca6f703fa
X-MS-Exchange-CrossTenant-Id: 578f64bd-6863-47bd-b016-1b933e1c099f
X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=578f64bd-6863-47bd-b016-1b933e1c099f;Ip=[20.93.157.195];Helo=[westeu11-emailsignatures-cloud.codetwo.com]
X-MS-Exchange-CrossTenant-AuthSource: DU6PEPF00009526.eurprd02.prod.outlook.com
X-MS-Exchange-CrossTenant-AuthAs: Anonymous
X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem
X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM7PR02MB6258
X-MailFrom: O.Olivson@falconvsystems.com
X-Mailman-Rule-Hits: nonmember-moderation
X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-netconf.ietf.org-0
Message-ID-Hash: MD6SGQDWDLOEQW7TJBAVD7MO3I56VMLU
X-Message-ID-Hash: MD6SGQDWDLOEQW7TJBAVD7MO3I56VMLU
X-Mailman-Approved-At: Wed, 31 Jul 2024 09:27:07 -0700
X-Mailman-Version: 3.3.9rc4
Precedence: list
Subject: [netconf] RESTCONF RFC8040 questions
List-Id: NETCONF WG list <netconf.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/wntWcB4H--Y1wp9AlWbxfXALOg4>
List-Archive: <https://mailarchive.ietf.org/arch/browse/netconf>
List-Help: <mailto:netconf-request@ietf.org?subject=help>
List-Owner: <mailto:netconf-owner@ietf.org>
List-Post: <mailto:netconf@ietf.org>
List-Subscribe: <mailto:netconf-join@ietf.org>
List-Unsubscribe: <mailto:netconf-leave@ietf.org>
Date: Thu, 18 Jul 2024 07:11:08 -0000
X-Original-Date: Thu, 18 Jul 2024 06:58:19 +0000
Hi, I'm working on product which is using RESTCONF and YANGs as configuration interface and I'm struggling trying to understand concepts which are lying behind data modification using RESTCONF. Would you be so kind to explain why certain requests are made in a way they're made? In RFC8040 https://www.rfc-editor.org/rfc/rfc8040#appendix-B.2 there are some examples of using RESTCONF, I'll be using same model in questions. There is an example of adding a resource to list: POST /restconf/data/example-jukebox:jukebox/library HTTP/1.1 Host: example.com<http://example.com> Content-Type: application/yang-data+json { "example-jukebox:artist" : [ { "name" : "Foo Fighters" } ] } Can it be done in way below? POST /restconf/data/example-jukebox:jukebox/library/artist HTTP/1.1 Host: example.com<http://example.com> Content-Type: application/yang-data+json { "example-jukebox:name" : "Foo Fighters" } RFC says that target URI in POST should point to parent container of resource to be added, wouldn't it be "artist" in that case and why? When doing resource modification, there's certain ambiguity in requests: PATCH /restconf/data/example-jukebox:jukebox/\ library/artist=Foo%20Fighters/album=Wasting%20Light/\ genre HTTP/1.1 Host: example.com<http://example.com> If-Unmodified-Since: Thu, 26 Jan 2017 20:56:30 GMT Content-Type: application/yang-data+json { "example-jukebox:genre" : "example-jukebox:alternative" } "genre" work must occur twice: as part of URI and as top key of payload. Why such ambiguity take place? Since JSON is not limited to objects, can it be reduced to view below? PATCH /restconf/data/example-jukebox:jukebox/\ library/artist=Foo%20Fighters/album=Wasting%20Light/\ genre HTTP/1.1 Host: example.com<http://example.com> If-Unmodified-Since: Thu, 26 Jan 2017 20:56:30 GMT Content-Type: application/yang-data+json "example-jukebox:alternative" Taking into account mentioned difference between POST and PUT|PATCH requests, is there a rules that define which URL<->Body relation to use issuing each type of request? Hope you won't be bothered with these questions and answering them won't take much of your time. With gratitude for work you've done in those RFC. _ OLEG OLIVSON Software Developer T +48 518 050 885 O.Olivson@<mailto:I.Nazwisko@falconvsystems.com>falconvsystems.com<mailto:I.Nazwisko@falconvsystems.com> [cid:0a8af2ed-cd42-45b1-980a-846c99e7b0a7] www.falconvsystems.com<https://falconvsystems.com/>
- [netconf] RESTCONF RFC8040 questions Oleg Olivson
- [netconf] Re: RESTCONF RFC8040 questions Kent Watsen