A
A
Anton2019-06-11 08:43:22
JavaScript
Anton, 2019-06-11 08:43:22

How to use Rest api in 1C?

Good day everyone!
Has anyone made a simple application in conjunction with 1C?

The essence of the idea:

There is a javascript / vue application that displays data on stock balances (total balance, name and reserve (for now, just reading the data)). Separately, it is planned to keep statistics and graphs on the dynamics in warehouses and personal counters of managers (who sold more, who sold more reserves, etc., but this is in the background).

Google says that 1C has a rest api , through oData . But I don't know 1C from the word at all.
Questions:

  1. Can anyone tell me how and where to start, where to read to get data from 1C: Product category-> Warehouse \ Name \ Reserve \ Balance?
  2. And looking ahead, through the same rest, is it possible to authorize under the manager's account in 1C on a third-party application?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Dmitry Kinash, 2019-06-11
@WebWC

Has anyone made a simple application in conjunction with 1s?
Many did.
Google says that 1c has rest api, through oData.
You can use oData , or you can create your own custom HTTP services .
And looking ahead, through the same rest, is it possible to authorize under the manager's account in 1s on a third-party application?
you can pull any procedure on 1C and if you don’t catch 401 errors, then the login / password is correct. But you can use 1C for authentication as an OpenID provider .

D
Darkhan Kamaliev, 2019-06-11
@darakanoit

You need a back-end for vue.js, which will be scheduled to exchange with 1s.
1c must be the initiator of the unloading! You can’t go every time and fuck 1s, if it is quite large, then the users of the database will receive friezes, but do you need it? Schedule synchronization or upload data to the portal through processing.

K
Keeperkit, 2019-06-11
@Keeperkit

DD,
Find 1Snik and tell him to raise the http service in 1C
or through a web service ...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question