Skip to Content
0

How to add entity with generate key in ODATA ?

Jun 01, 2017 at 07:27 AM

71

avatar image

I have my HANA SQL table

CREATE COLUMN TABLE "Model.Param"
(
MODEL_ID INT,
NAME NVARCHAR(60),
INTARGS INT ,
DOUBLEARGS DOUBLE,
STRINGARGS NVARCHAR(100)
);

and xsodata code

service  { 
	"TITANIC"."Model.Param" key generate local "GenID";
}

and URL is https://<serverpath>/list.xsodata/Model.Param/

I can use GET method to read full table. However , when I try POST method to create an entity, it always returns 'Feature not supported.' no matter what my JSON format body is.

How to insert a record using this OData service ?

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers