juneau-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Bognar (Jira)" <j...@apache.org>
Subject [jira] [Created] (JUNEAU-230) MockRest should allow you to manually specify path variables from parent resources.
Date Wed, 13 May 2020 16:20:00 GMT
James Bognar created JUNEAU-230:
-----------------------------------

             Summary: MockRest should allow you to manually specify path variables from parent
resources.
                 Key: JUNEAU-230
                 URL: https://issues.apache.org/jira/browse/JUNEAU-230
             Project: Juneau
          Issue Type: Improvement
          Components: Code
    Affects Versions: 8.1.3
            Reporter: James Bognar


MockRest currently doesn't allow you to easily set the value for "foo" when constructed against
Child below: 
{code:java}
@Rest(path="/foo/{foo}")
public class Parent {...}

@Rest(path="/child")
public class Child {
   public String get(@Path("foo") String foo) {
      return foo;
   }
}{code}
Add something like the following:
{code:java}
MockRest.create(Child.class).path("foo","bar").build();
{code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Mime
View raw message