title: SharePoint 2013 App - CRUD operation
body: <p>I am new to Sharepoint 2013 app with external content. I can pull the data from SQL and can populate in the App page. However I try to add new data, I am received following error message</p>
  
  <hr>
  
  <p><strong>Message from webpage</strong></p>
  
  <pre><code>{"readyState":4,"responseText":"{\"error\":{\"code\":\"-1, Microsoft.SharePoint.Client.InvalidClientQueryException\",\"message\":{\"lang\":\"en-US\",\"value\":\"An entry without a type name was found, but no expected type was specified. To allow entries without type information, the expected type must also be specified when the model is specified.\"}}}","status":400,"statusText":"Bad Request"}
  </code></pre>
  
  <h2>OK</h2>
  
  <p>I have used following code</p>
  
  <pre><code>create: function (dname, description) {
      debugger;
      $.ajax({
          url: _spPageContextInfo.webServerRelativeUrl +
                      "/_api/web/lists/getByTitle('tblDomain_SP')/items",
          type: "POST",
          contentType: "application/json;odata=verbose",
          data: JSON.stringify({'DomainName':dname,'Description':description}),
          dataType: "json",
          headers: {
              "accept": "application/json;odata=verbose",
              "X-RequestDigest": $("#__REQUESTDIGEST").val()
          },
          success: function () {
              REST.DomainFormFiller.clear();
          },
          error: function (err) {
              alert(JSON.stringify(err));
          }
  
      });
  
  }
  </code></pre>
  
  <p>could you please help me to insert data to sql table?</p>