Page tree

Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.


Code Block
titleFeedback POST request with Text Tag
<?xml version="1.0" encoding="UTF-8" ?>
<Resource xmlns="" v="1.0">
	<Request method="POST">
	    <Sql id="addFeedback" type="update">
          INSERT into feedback (name,email,issue,description) VALUES 
      	<Sql id="addUser" type="update"> 
          	INSERT IGNORE INTO feedback_user(emailUsers,registration_source) VALUES ($email,'product-feedback')
      <Text id="feedback">
      	name: $name,feedback: $issue - $description

Inserting Duplicate Records

addUser  ignores duplicate inserts preventing the POST API from failing in case the user already exists in the table.