Exposing Rest API to insert records into Database using cuba

Hi,

Any update on this?

Hi,

Could you double check your view definitions? It looks like no attributes are selected.

Please use

    <view entity="sales$Order" name="order-edit-view">
        <property name="number"/>
        <property name="date"/>
        <property name="description"/>
        <property name="items"/>
    </view>

instead of

<view entity="sales$Order" name="order-edit-view"/>

Hi Andrey,

Thank you. This is working fine now. I will let you know if there are any issues with this.

Hi Andrey,

I have a new issue regarding Rest APIs.

I have another application, where I have not installed the RestAPI addon, and using only Spring MVC Rest Controller structure to expose Rest endpoints.

However, whenever I am trying to hit the Rest endpoint, I am getting an error stating that “You have to enable javascript in your browser to use an application built with Vaadin.

The endpoint that I have exposed is used to create a new entity.

Kindly help in this issue.
Screenshots below.

image

image

I guess you published it in the wrong context. Please have a look at our recent REST API guide to learn how to deal with custom REST APIs in CUBA properly. Hope this will help.