jatin.bidaye_1 Posted March 5, 2019 Share Posted March 5, 2019 Hello,I am trying to get the resource descriptor of a file using following link, However, it gives the actual file contents.HTTP Method: GETLink: http://localhost:8080/jasperserver-pro/rest_v2/resources/reports/JRXML1?j_username=jasperadmin&j_password=jasperadminHowever, for a report unit, the same command gets the resource descriptorHTTP Method: GETLink: http://localhost:8080/jasperserver-pro/rest_v2/resources/reports/UploadingReport?j_username=jasperadmin&j_password=jasperadminOutput: <?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 More sharing options...
Friendly User Posted March 11, 2019 Share Posted March 11, 2019 Hello,add Accept: application/repository.file+json or Accept: application/repository.file+xml to your request headers. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now