Answer the question
In order to leave comments, you need to log in
How to make friends exchange data between 1C and Django REST Framework?
Good afternoon!
There was a task to change prices and balances by means of 1C in the database of an online store, which is implemented on Django. To do this, from the Django side, there is a REST API that gives a complete list of products and gives a specific product by its identifier (pk).
It is necessary that 1C, according to some scenario, change prices and balances.
Question one: how does 1C do it?
Question two: does the page with a list of ALL products in the REST API need to allow PUT / PATCH methods? If so, how to do it, because these methods require a mandatory argument (and this is pk).
I would appreciate any advice and help!
Answer the question
In order to leave comments, you need to log in
Find a 1c who will write an http request to your REST API.
PUT/PATCH - 1s it all can)
http request
For an example of 1C interaction with any Internet service, you can take the processing at infostart, which interacts with an external service via HTTPS requests: https://infostart.ru/public/1310842/
I
also recommend that you read my answers on this topic:
How to organize communication between database 1c and django?
How does the site and 1C: Enterprise interact?
REST API is great! But in real life, the exchange is best done through an Excel file. From 1C, such a file is formed with all the necessary data; Then it is transferred to the server, at least by mail, at least through the REST API, at least on a flash drive; and on the server this data is poured into the database.
With such a scheme, it is easy to debug and check the data at all stages;
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question