Upgrading Your App

From DreamFactory
Jump to: navigation, search
DreamFactoryTutorialsUpgrading Your App
Line 5: Line 5:
 
* /user/session for user login
 
* /user/session for user login
 
* /db/todo changes to /db/_table/todo
 
* /db/todo changes to /db/_table/todo
 +
* record arrays wrapped with 'resource' not 'record',  array required
 
* App sends API key instead of app name
 
* App sends API key instead of app name
 
* App should send session token instead of session id
 
* App should send session token instead of session id
 
* Relationships are singular, related=contacts_by_account_id becomes related=contact_by_account_id
 
* Relationships are singular, related=contacts_by_account_id becomes related=contact_by_account_id

Revision as of 00:24, 9 November 2015

The REST API has changed a bit since version 1.x. Here are the basic steps to update your app for newer versions of DreamFactory.

  • /rest changes to /api/v2
  • /system/admin/session for admin login
  • /user/session for user login
  • /db/todo changes to /db/_table/todo
  • record arrays wrapped with 'resource' not 'record', array required
  • App sends API key instead of app name
  • App should send session token instead of session id
  • Relationships are singular, related=contacts_by_account_id becomes related=contact_by_account_id