Sanitation Worker Details

From the FSM Registry page Admins can Search for a Sanitation Worker and go to it's details page by clicking on Sanitation Worker Id

Sanitation Worker Details page

  • This page shows all the details about a Sanitation worker

  • Sample Page Screenshot is given below for reference

  • Sanitation Worker Details

  • Admin users will get an action bar at the bottom of the page which has two actions

  • Edit -> This takes the user to Edit Sanitation worker Page

  • Delete -> This calls the update Individual API and disables this user ( Soft delete)

  • A corresponding toast message is shown

  • After taking delete action page is automatically redirected to the FSM Registry

API Details

Search Individual

  • We are hitting this endpoint "/individual/v1/_search" to fetch Sanitation Worker Details

  • Refer the curl below:

Update Individual

  • When individual is deleted we are making use of individual update "/individual/v1/_update"

  • Refer to the curl below

Update Vendor

  • When we delete a Sanitation worker who is tagged to a vendor we are updating the worker - vendor tagging to inactive.

  • Refer to the curl below:

Role Action Mapping

Role Action mapping is done for the above three endpoints for FSM_ADMIN role

Was this helpful?