API - Basic API calls

Look at my examples I provided in the comment. $queryIDExistence is a stor proc which runs and checks that ID exists prior executing a query for your PUT/ POST/ GET/ DELETE