J
J
Jekson2018-12-14 15:55:41
Flask
Jekson, 2018-12-14 15:55:41

How to handle an external API using Flask?

If it doesn't make it difficult to sketch out a sequence of steps (we connect, we serialize, etc.) for the next task. There is an external API containing data in json format. You need to get this data, form models and add them to the database, and give them to your own Api through the filtering and sorting system. Due to inexperience in such things, there is no clear understanding of further actions. Detail welcome!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Cheremisin, 2018-12-14
@Lepilov

The task statement is a little unclear.
Do you need to take data from one service and publish it in a modified form to another service? If so, what does flask have to do with it?
Data is well taken and given through requests - docs.python-requests.org/en/master
And if everything goes to json, then requests has a json () method, which gives a normal Python dictionary (dict) as output
Flask needs to deploy your own service.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question