HP Anywhere API Reference
Defining the communication layer

The data model. This example refers to the app/mode/Notes.js model file.

model:"NotesApp.model.Note",
// The store proxy definitions.
proxy:{
    // Since the Notes application uses json as its data
    // the header is set to json
    headers:{'accept':'application/json'},

    // We are using a REST API to communicate
    type:'rest',
    appendId:true,

    // The URL that we will use to access the REST API.
    // The name of the service itself is defined in the
    // server side code as service.
    url:'services/notes',

    // The reader refers to the data itself. The demo data
    // is located under data/notes.json
    reader:{
    rootProperty:'note',
    type:'json'
    },
…