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

Jasper Server Rest API Create Json DataSource Error 500


lzhaogoh

Recommended Posts

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>

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

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...