API help on my first day

  • dimble0534_39337-1296218523047301210

    Dimble

    5 months 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?
  • benjamin.h-1296220093281341462

    Ben H

    5 months 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
  • dimble0534_39337-1296223525618847806

    Dimble

    5 months 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.