Everest - AMD module Everest.js samples


        

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 an global variable (window.e or window.ê).
Check the global variable sample to see how it works.

What this sample demonstrates ?

This sample triggers a call to the github api after instantiating a new RestApi client. 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 instantiates a new Rest client
  • Shows how to trigger an api read request (GET) and handle the response