Introduction

This sample is demonstrating how to use Everest REST API client in the browser, using an AMD module loader (require.js in that case). If you use an AMD-module loader, this is the way to use Everest.

EverestJs is also usable as a global variable.

Key concepts

This sample triggers a call to the github api after creating a new RestClient. The call result is displayed in the panel under the form.

Open your browser javascript console and check the source to see what is going on under the hood.

  • Shows how to set up your script references
  • Shows how to configure require.js
  • Shows how to create a new Rest client
  • Shows how to trigger an api read request (GET) and handle the response