Error 500 sql server null value


im trying to build a Rest Api using the quick start tutorial

Im using an extension to send request to my app, GET working but not POST when im trying to insert a new user

I have this error ''SQLSTATE[23000]: [Microsoft][ODBC Driver 11 for SQL Server][SQL Server]Cannot insert the value NULL into column ‘username’, table ‘user’; column does not allow nulls. INSERT fails. The SQL being executed was: INSERT INTO [user] DEFAULT VALUES"

I don’t know why because i send good values

It seems my app don’t see parameters

I don’t know how to debug it

Can you help me ?

Please show the code you are using for inserting data. This sounds like you are trying to save data without using validation. Unvalidated data will not be inserted by default.


I’ve missed to specify rules… Now it’s working.