You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@juneau.apache.org by "Harish B N (JIRA)" <ji...@apache.org> on 2019/02/06 00:59:00 UTC

[jira] [Created] (JUNEAU-97) Path Parameter in Parent RestResource

Harish B N created JUNEAU-97:
--------------------------------

             Summary: Path Parameter in Parent RestResource
                 Key: JUNEAU-97
                 URL: https://issues.apache.org/jira/browse/JUNEAU-97
             Project: Juneau
          Issue Type: Improvement
    Affects Versions: 8.0.0
            Reporter: Harish B N
             Fix For: 8.0.0


I would like to have a way to specify path param as part of the parent Resource.

Eg. I have a parent resources teachers 

GET /teachers  

GET /teachers/john

Now I want to build a child resource called students (for the teacher john)

GET /teachers/john/students

 

is this something possible using @RestResource parent as path /teachers/\{teacherId}

And have a children Resource be able to pick up the teacherId. Child resource defined as

path /students

 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)