REST
 

REST

7 posts, 0 answered
  1. Roger Blanchard
    Roger Blanchard avatar
    439 posts
    Registered:
    29 Jun 2018
    3 days and 22 hours ago
    Link to this post
    I am using the following and I thought only the eDeploymentReseller record will be returned in the JSON. However, the entire PDS is returned. Is the format I used incorrect?

     @RestMethod (address="/Deployment/GetModules", requestMethod="get", parameterClassName="Osprey.Util.DeploymentWrapper.DeploymentParameter", response="dsDeploymentReseller:<eDeploymentResponseReseller>:first").
        METHOD PUBLIC VOID GetModules( INPUT-OUTPUT DATASET dsDeploymentReseller,
                                       poParameter AS Osprey.Util.DeploymentWrapper.DeploymentParameter  ):
  2. Roger Blanchard
    Roger Blanchard avatar
    439 posts
    Registered:
    29 Jun 2018
    3 days and 22 hours ago in reply to Roger Blanchard
    Link to this post
    I guess this would be better. 
    @RestMethod (address="/Deployment/GetModules", requestMethod="get", parameterClassName="Osprey.Util.DeploymentWrapper.DeploymentParameter", response="dsDeploymentReseller:eDeploymentResponseReseller:first").
  3. Mike Fechner
    Mike Fechner avatar
    367 posts
    Registered:
    14 Sep 2016
    2 days and 17 hours ago in reply to Roger Blanchard
    Link to this post
    It's definitively without the pointed brackets.

    I would have expected an error message though - but I guess your issue is solved now? 
  4. Roger Blanchard
    Roger Blanchard avatar
    439 posts
    Registered:
    29 Jun 2018
    2 days and 17 hours ago in reply to Mike Fechner
    Link to this post
    All good Mike…thank you.

    HAPPY NEW YEAR!!
  5. Roger Blanchard
    Roger Blanchard avatar
    439 posts
    Registered:
    29 Jun 2018
    2 days ago in reply to Mike Fechner
    Link to this post
    >> I would have expected an error message though
    You would be correct. One of the issues I was having is the .annotations file is not being created in VS Code so I needed to use PDSOE. I will have to look into that further. 

    Thank you. 
  6. Mike Fechner
    Mike Fechner avatar
    367 posts
    Registered:
    14 Sep 2016
    1 day and 23 hours ago in reply to Roger Blanchard
    Link to this post
    We're using this VS Code Extension to use a similar ANT job to generate the .annotation files:

    https://marketplace.visualstudio.com/items?itemName=nickheap.vscode-ant

    It's no longer maintained - but it's doing it's job. But we're looking for an alternative.
  7. Roger Blanchard
    Roger Blanchard avatar
    439 posts
    Registered:
    29 Jun 2018
    56 minutes ago in reply to Mike Fechner
    Link to this post
    >> We're using this VS Code Extension to use a similar ANT job to generate the .annotation files

    Yep, we have that extension loaded and need to look into it. Thanks
7 posts, 0 answered