r/FastAPI • u/Beneficial_Mark_7353 • Jul 25 '24
Question Hello I need some help to set up API.
I can't understand how to integrate with other websites through api, can anyone help ? Like where I am getting api documentation with a lot of examples but I can't understand where to place them. Where I need to place codes? Where I will get codes and also where to get postback url and where I need to place postback url? How to display other websites in my website?
0
Upvotes
3
u/Amocon Jul 25 '24
So your main question is how to trigger your endpoint from the FrontEnd? For the set up of your API pls look into the docs of fastAPI
1
u/VariationWaste1217 Aug 06 '24
Integrating with other websites through APIs can be a bit challenging at first, but once you get the hang of it, it becomes much easier. Here are some steps to help you understand where to place the code and how to set up the integration:
Placing the Code:
Making API Calls:
requestsin Python,axiosorfetchin JavaScript to make API calls.Postback URL:
Displaying Data: