Answer the question
In order to leave comments, you need to log in
How to implement Rest api for a site on Bitrix?
There is a site on 1C Bitrix. Site management, you need to add a restful api for a mobile application (it comes down to working with several types of infoblocks). How, in fact, to implement this, in which direction to look? There is little experience with this system, but such a task arose. Thank you.
Answer the question
In order to leave comments, you need to log in
1. You need to write your component with routing.
2. Depending on the severity of the logic, it is better to take out all the heavy logic into classes into modules and connect it through namespace.
Before writing, go through the documentation on how to write components / modules + be sure to pay attention to the new D7 core, if you know OOP it will be much easier and more pleasant for you to write both a component and module classes.
There is not much documentation on the new core, but there are good short free video courses (registration required)
academy.1c-bitrix.ru/education/index.php?COURSE_ID...
marketplace.1c-bitrix.ru/solutions/artamonov.rest
marketplace.1c-bitrix.ru/solutions/artamonov.api
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question