6. Data Services
• Querying – REST verbs (including
PATCH, former MERGE)
• Filtering
• Transact-SQL
• Paging – Take/Skip
7. Dynamic Schema
• No need to pre-define the table schema
• INSERT to a table and columns created by
magic
• Disable function before going to production
9. Filtering – cont’d
• Request very similar to WCF Data Services:
GET /tables/todoitem?$filter=
(complete+eq+false) HTTP/1.1
10. Transact SQL
• mssql.query(sql, params, options)
mssql.query('select top 3 * from statusupdates’,{
success: function(results {
console.log(results);
},
error: function(err) {
console.log("error is: " + err);
} });
11. Push Notifications
• WNS, Apple Push or Google Cloud
• Windows Store client secret and package sid
• Apple Store app certificate
• Google API key
12. Authentication
• Live ID, Facebook, Google, Twitter, Azure ADS
• Need the private API keys
• Simple API call to log in as a user
• Can filter data queries based on the user -
authorization
13. Authentication - ADS
• Azure provide Active Directory as an
authentication service
• Need private keys to add to Mobile Services
• Demo?
14. Scripting and Promises
• Server-side scripting available for CRUD, sched
jobs and custom APIs
• Promises are async delegates using the then()
and done() functions
• Launch when a value is returned
• query.read().done( // do work );
15. Custom APIs
• Can create custom APIs with Javascript
• Custom APIs get invoked on REST verbs
• Javascript used to script the response