In order to test the following examples you can use Postman or similar tools.
In case clarifications are need, we'll support and answer only questions based on Postman options and configuration.
Postman is a multi-platform tool that can be used both as a standalone and as a chrome extension.
Postman can be downloaded here
Please check the Postman documentation. Once you successfully perform an operation, Postman can automatically generate the corresponding code in various languages.