PricingDocsAcademy
Bluesky ...
Wed, Dec 11, 9:14 PM

API help on my first day

  • Dimble

    1 month ago

    Hi all! My very first look at Toddle today, I am trying to add an api, it is one that i have used before and trying to test by just sending a basic json request in the body. But i keep getting an Invalid JSON error.
    It is set up as POST, and the endpoint is correct, i just put the raw json as a string in the body to see if i get the right response. The same test works fine in Postman, returning the expected response. Is there something different about the way Toddle sends json post requests?
  • Ben H

    1 month ago

    Can you try setting the body equal to an object instead of a string? For example, the body { "lat": 33.44 } would be an object with "lat" as the key and 33.44 as the value
    πŸ‘1
  • Dimble

    1 month ago

    Ben! Thank you so much. Now it all makes sense πŸ™‚
    πŸ‘1

Stop scrolling. Start building.

toddle is a visual web app builder that rivals custom code β€” but accessible to your entire team!

Try toddle β€” it's free!

Β© Copyright 2024 toddle. All rights reserved.