Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

The below API demonstrates two update queries. As update queries do not return any meaniful information, below API uses Text tag to 

send back the feedback submitted.

Feedback 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.

  • No labels