Результаты (
английский) 2:
[копия]Скопировано!
I spoke with the developer of the assembly.
Today, he continues to work with the database, and he had some questions below. On Monday, we will do Marj and do some assembly build for predpokaza. We will try to send the build and detail of extra work on Tuesday. Questions: - if we are checking in with various devices to one phone number, the server returns the id of the same Driver - to get a profile, you need to call the GET / app_secure / drivers / {driver_uuid} / profiles / {uuid} /, where uuid - id of the profile (where to take it - is unclear) - there is a method of GET / app_secure / drivers / {driver_uuid} / profiles /, which returns a list of profiles driver - immediately after the registration list is empty. Why is the list, too, is unclear - there may be several profiles at the driver? Then some of them choose in a particular case? - There is a method POST / app_secure / drivers / {driver_uuid} / profiles /, which creates a new profile for the driver, but when I try to call him twice, we get an error from the server (ie the server It gives only create one profile). Again the question - why then the list? In the current situation it turns out that after registration you need to check the list of profiles, and if it is empty, then create a new profile and use it. If the list already has a profile, then use it. And if, by some chance, there are several, what if I use? In general, the current implementation looks spike - a list of superfluous and as a result should be a single profile on the driver, or is missing some information.
переводится, пожалуйста, подождите..
