Ways to load Vendor details :
From Api
By FSM Registry
Loading from API :
Steps:
Import this collection - https://www.getpostman.com/collections/59691b6d0a7346a7f29b
Change the request url specific to environment.
For Create DSO(URL) : https://sujog-dev.odisha.gov.in/vendor/v1/_create
For Search DSO(URL) : https://sujog-dev.odisha.gov.in/vendor/v1/_search?tenantId=od.anandapur
For Update DSO(URL) : https://sujog-dev.odisha.gov.in/vendor/v1/_update?tenantId=od.anandapur
Login from FSM_ADMINDEV credentials(for sujog-dev) which is having FSM Admin role for all the ulb’s.
Copy the auth token. Paste the auth token in the req. Body “authToken” field.
Request Info (eg. anandapur ulb) for Create DSO :-
Note:
Before pushing the vendor,first add Vehicle in MDMS. Take Vehicle Make, Model and Capacity from VehicleMakeModel in MDMS.
No special characters allowed in Vendor name.
Vehicle Registration number should be unique for every vehicle.
Scenerios for Vendor and Vehicle users: - One Vendor can be linked with two or more vehicles. - One Vehicle is linked with One Vendor. - Two Vendors can’t have same mobile number because vendor is a user and user is stored uniquely in database. - Vendor owner, Vehicle owner and Driver owner can be same or different for One Vehicle.
Hit the url it’ll push the data of vendor.
From FSM Registry :
Add details of Cesspool Operator,Vehicle and Driver from FSM Registry and link Vehicle with Cesspool operator and Driver with Cesspool Operator.