Added API POST/GET example

Configured to POST at the moment, but code is there for GET method as
well