Dean Hiller
Dean Hiller

Reputation: 20204

REST api playframework with xml

I was reading through the following example

RESTful on Play! framework

The one thing I am not sure about is the code here regarding and http POST

<user>
   <name>${user.name}</name>
   <dob>${user.dob}</dob>
   <somethign>${user.something}</something>
   <another>${user.another}</another>
   .... etc etc
</user>

What if the playframework is only given this xml during an http POST? (will the playframework break in this case)

Dean asdf

Notice that two fields were optional and not given. Does playframework still work in this case?

thanks, Dean

Upvotes: 0

Views: 899

Answers (1)

biesior
biesior

Reputation: 55798

Glad that we found basic agreement :)

I think that the Coffee Bean's post is that you are looking for.

Upvotes: 2

Related Questions