Application Structure:
  • Session
    • app
      • model
        • State.js
        • Student.js
      • view
        • student
          • StateList.js
          • StudentList.js
          • StudentViewModel.js
    • app.js
    • default.html
    • ext-5.1.0

Example: Session

model\State.js
Ext.define('SchoolApp.model.State', {
    extend: 'Ext.data.Model',
    idProperty: 'Id',

    proxy: {
        type:'ajax',
        api: {
            read: '/ExampleService.svc/students/'
        },
        reader:{
            type:'json',
            rootProperty:'data'
        },
        writer: {
            allowSingle: false
        }

    },
    fields: [
        { name: 'Id', type: 'int' },
        { name: 'name', type: 'string' }
    ]
});

Preview