Jump to content
We've recently updated our Privacy Statement, available here ×

Getting resource descriptor of a file resource, using Rest v2


jatin.bidaye_1

Recommended Posts

Hello,

I am trying to get the resource descriptor of a file using following link, However, it gives the actual file contents.

HTTP Method: GET

Link: http://localhost:8080/jasperserver-pro/rest_v2/resources/reports/JRXML1?j_username=jasperadmin&j_password=jasperadmin

However, for a report unit, the same command gets the resource descriptor

HTTP Method: GET

Link: http://localhost:8080/jasperserver-pro/rest_v2/resources/reports/UploadingReport?j_username=jasperadmin&j_password=jasperadmin

Output: 

<?xml version="1.0" encoding="UTF-8" standalone="yes"?><reportUnit>    <creationDate>2019-02-27T18:21:24</creationDate>    <description></description>    <label>UploadingReport</label>    <permissionMask>1</permissionMask>    <updateDate>2019-02-27T19:41:09</updateDate>    <uri>/reports/UploadingReport</uri>    <version>5</version>    <alwaysPromptControls>false</alwaysPromptControls>    <controlsLayout>popupScreen</controlsLayout>    <inputControlRenderingView></inputControlRenderingView>    <jrxmlFileReference>        <uri>/reports/JRXML1</uri>    </jrxmlFileReference>    <reportRenderingView></reportRenderingView></reportUnit>[/code]

What is the correct command to get the details of a File resource in terms of a resource descriptor?

Regards,

Jatin

 

 

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...