Forcing reqest parameters encoding in body


#1

Consider

class Password(typesystem.String):
     pass

class Passwords(typesystem.Object):
    properties = {
        'old: Password,
        'new': Password,
    }

def password_change_url(old: Password, new: Password):
    pass

def password_change_body(password: Passwords)
    pass

(sorry for the 0.3.9-ness I wasn’t able to make the transition to 0.4.x yet)

I was finally able to figure it out, but it wasn’t obvious to me that if a parameter is a typesystem.Object the request will expect to get its parameters in the request’s body, otherwise it will be URL encoded.

  1. Is this documented and I was simply missed it?
  2. Is there a simpler way to force body encoding?