Interacting with the Resource Extension
Interacting with the Resource Extension
Make a request to the resource extension using a REST client and get "Hello World" back.
- Using a REST client, log into the demo store by following the instructions here: http://api-cortex-developers.docs.elasticpath.com/drupal/content/Generate_a_token_to_access_public_resources
- Enter the following fields in your REST client to make a GET request to the helloworld resource:
The response you get should have the following content:
HTTP Request Method
URL
Header
GET
https://localhost:8443/cortex/helloworld/ Content-type: Application/json
{ "self": { "type": "application/vnd.mycompany.helloworld", "uri": "/commerce-legacy/helloworld", "href": "https://localhost:8443/cortex/helloworld", "max-age": 0 }, "message": "Hello World""links": [], }