From issues-return-32062-archive-asf-public=cust-asf.ponee.io@struts.apache.org Mon Apr 30 12:13:03 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 0BBCE180647 for ; Mon, 30 Apr 2018 12:13:02 +0200 (CEST) Received: (qmail 58744 invoked by uid 500); 30 Apr 2018 10:13:02 -0000 Mailing-List: contact issues-help@struts.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@struts.apache.org Delivered-To: mailing list issues@struts.apache.org Received: (qmail 58727 invoked by uid 99); 30 Apr 2018 10:13:01 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Apr 2018 10:13:01 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 71969C11FB for ; Mon, 30 Apr 2018 10:13:01 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -110.301 X-Spam-Level: X-Spam-Status: No, score=-110.301 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id 6BsovAFvmw8W for ; Mon, 30 Apr 2018 10:13:00 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id C01215FBAF for ; Mon, 30 Apr 2018 10:13:00 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 57EA8E0175 for ; Mon, 30 Apr 2018 10:13:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 0A42621293 for ; Mon, 30 Apr 2018 10:13:00 +0000 (UTC) Date: Mon, 30 Apr 2018 10:13:00 +0000 (UTC) From: "Deva Gerald (JIRA)" To: issues@struts.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (WW-4935) Support for sub-resources in rest-plugin MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Deva Gerald created WW-4935: ------------------------------- Summary: Support for sub-resources in rest-plugin Key: WW-4935 URL: https://issues.apache.org/jira/browse/WW-4935 Project: Struts 2 Issue Type: Improvement Components: Plugin - REST Reporter: Deva Gerald As of now, the rest-plugin supports only 1 level of hierarchy like /resourc= e/$resource_id Can we extend this to implement multi levels like below :=C2=A0 /resource/$resource_id/sub_resource/$sub_resource_id=C2=A0 =C2=A0 Here is an example :=C2=A0 For getting an organization info, we can use a REST API like=C2=A0/organiza= tions/organization_id (supported already) To get details of an employee of an organization we need to map it as a=C2= =A0 sub-resource like */organizations/organization_id/employees/employee_id*=C2= =A0 rather than just making it as /employees/employee_id.=C2=A0 Note : In this case there are 2 ids=C2=A0in the URL=C2=A0 1. resource_id -=C2=A0organization_id and 2. the=C2=A0sub_resource_id -=C2=A0employee_id. -- This message was sent by Atlassian JIRA (v7.6.3#76005)