Skip to content

Commit

Permalink
Update to new getPostData() API in 2.x
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Morgan committed Sep 28, 2009
1 parent 0a65c76 commit 120fb8c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hqu/hqapi1/app/ApplicationController.groovy
Expand Up @@ -122,7 +122,7 @@ class ApplicationController extends ApiController {
} }


def create(params) { def create(params) {
def createRequest = new XmlParser().parseText(getUpload('postdata')) def createRequest = new XmlParser().parseText(getPostData())
def xmlApplication = createRequest['Application'] def xmlApplication = createRequest['Application']


def newApp def newApp
Expand Down Expand Up @@ -209,7 +209,7 @@ class ApplicationController extends ApiController {
} }


def update(params) { def update(params) {
def updateRequest = new XmlParser().parseText(getUpload('postdata')) def updateRequest = new XmlParser().parseText(getPostData())
def xmlApplication = updateRequest['Application'] def xmlApplication = updateRequest['Application']


def updatedApp def updatedApp
Expand All @@ -233,7 +233,7 @@ class ApplicationController extends ApiController {
} }


def sync(params) { def sync(params) {
def syncRequest = new XmlParser().parseText(getUpload('postdata')) def syncRequest = new XmlParser().parseText(getPostData())


def applications = [] def applications = []
for (xmlApplication in syncRequest['Application']) { for (xmlApplication in syncRequest['Application']) {
Expand Down

0 comments on commit 120fb8c

Please sign in to comment.