Hi all! I am very new to building APIs and I am following along with this video to learn. I am having issues because I am trying to send a POST request to http://127.0.0.1:8000/createposts on Postman and the console at the bottom of the screen under Body and JSON just shows {}. I’ve attached my Python code, my terminal, and Postman so you have an idea of what should be showing up. I’m so new to this I don’t even know what to Google to try to solve it. Thanks for your help!
Welcome to the API Party, its a blast but will come with loads of debugging!
Do any of your APIs in your sample FastAPI work within postman? If none of the other endpoints are working, the I would suspect something with your FastAPI setup.
You can also follow the example for FastAPI (FastAPI) and test their API example with Postman and compare what their example is doing and your example is doing.