Navigation

    APPDRAG Community

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular

    REMINDER

    Please be respectful of all AppDragers! Keep it really civil so that we can make the AppDrag community of builders as embracing, positive and inspiring as possible.

    Tooltip/Explanation for response types

    Features requests
    2
    2
    241
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Daniel Mulroy
      Daniel Mulroy last edited by

      Can we have more information (ideally, baked into the UI 🙂 about the response types for Cloud Backend functions?

      Screen Shot 2020-07-17 at 09.49.41.png

      1 Reply Last reply Reply Quote 2
      • Joseph Benguira
        Joseph Benguira last edited by

        Hey Daniel,

        Good idea, we will add something in the UI 🙂

        about the types:

        JSON: your response will be wrapped in a JSON object containing details about execution, logs and your data in a payload field

        RAW: this return directly your response without any wrapping

        Gateway: this one expect you to return a response where you can define headers, content type, content ... please check our Nodejs samples for more details on how to use this one (QR Code generator)

        Gateway & Base64: Same as Gateway but expect the data to be encoded in Base64, this is useful to return binary content, we also have few samples in Nodejs showing how to use it (Read URL and return binary)

        1 Reply Last reply Reply Quote 1
        • First post
          Last post