Skip to main content

Are only JSON Api's supported?

Comments

5 comments

  • Official comment
    Support

    Hi James! Yes you are right that we support only JSON serialization/deserialization. For Xml, you can use string request and response type, with your own string xml serialization/deserialization. In this case application/json headers will not be added.

  • James Hitchcock

    Hmm ok, so If I had an API that needed to request the following;

    Content-Type: application/x-www-form-urlencoded
    Payload: username=jsmith&password=pa55w0rd

    I'd had to manually implement this in the generated SDK's?

    0
  • Support

    No, simply use:
    1) FORM as the HTTP method.
    2) Specify the two "String" parameters in the endpoint as "Form" parameters.

    Code generator will take of the rest. We support both JSON and primitive datatypes.

    0
  • James Hitchcock

    Ah, of course. Sorry, I misunderstood your reply there!

    Its just the xml serialization/deserialization that isn't supported

    Thanks!

    0
  • Support

    Yes, that's true. Xml can be treated as String in APIMATIC's generated code. Externally, you can handle the serialization and deserialization.

    0

Please sign in to leave a comment.