L
L
LikeKey2019-12-13 14:27:46
Python
LikeKey, 2019-12-13 14:27:46

How to make a REST API in python to send queries to a database?

My task is to create an application for a computer that sends posts to VKontakte, and when each post is sent, the value in the database is updated by the user by one. I can't figure out how to create an api and work with it through the program code

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrew, 2019-12-13
@deepblack

If a

the task is to create an application for a computer that sends posts to VKontakte, and when each post is sent, the value in the database is updated by the user by one.
then why
create an api and work with it through the program code

If it is possible to implement it in one application.
Send requests to the database directly from your application,
requests to the VKontakte API also from the application.
Or is there a task to make an intermediate API, something like an adapter for the VKontakte API?
By the way, there is a pretty good FastAPI project

A
Alexey Cheremisin, 2019-12-13
@leahch

Get Flask.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question