Jasper Server Rest API Create Json DataSource Error 500

Jaspersoft Community 'Read-Only' as of July 8, 2022

Transition to New TIBCO Community Just Weeks Away

You can still search, review wiki content, and review discussions in read-only mode. Please email community@tibco.com with questions or issues requiring TIBCO review or response.

Hi, I m trying to make a POST request to create Json DataSource in Jasper Server. 

The Content-Type is set to application/repository.customDataSource+xml already.

But somehow I receive error 500 upon sending this request. May I know where I did wrong?

<customDataSource>

    <serviceClass>com.jaspersoft.jasperserver.api.metadata.jasperreports.service.ReportDataAdapterService</serviceClass>

    <label>MYMY</label>

    <uri>/TestAPI</uri>

    <dataSourceName>MYMY</dataSourceName>

    <description>TestTest</description>

    

<properties>

    <property>

        <key>language</key>

        <value>json</value>

    </property>

    

    <property>

        <key>fileName</key>

        <value>repo:/TestAPI/myData.json</value>

    </property>

    

    <property>

        <key>selectExpression</key>

        <value>data</value>

    </property>

</properties>

</customDataSource>

lzhaogoh's picture
Joined: May 12 2022 - 1:30am
Last seen: 1 month 1 week ago

0 Answers:

No answers yet
Feedback