Project

Steps to configure the project service

Overview

The project service provides APIs to create, update and manage a generic project. A project can have one or more of the following constructs: staff, tasks, beneficiaries and facilities. Currently, this service is shared across the Health and Works platforms. All Works projects start with a project construct. The Works platform uses only 3 primary APIs: project create, update and search.

For a deeper understanding, refer to the following:

Low-level designarrow-up-right

Functional specificationsarrow-up-right

Key Functionalities

  • Creating, updating, and searching for a project

  • Adding staff, tasks, resources and facilities to a project

Code

Module codearrow-up-right

Deployment in Worksarrow-up-right

Configuration Details

MDMS Configuration

roles.json

circle-info

Define (if not present already) and assign the EMPLOYEE_COMMON role to all project actors.

actions.json

Below are the actions or APIs exposed by the Project service used by the Works platform. Note that the "id" in the attributes needs to be unique and may be different in the implementation environment. It need not be exactly the same as what is shown below.

roleactions.json

The following table shows the mapping between the APIs and the roles:

Role Code
Description
API

PROJECT_CREATOR

Project Creator

/project/v1/_create

/project/v1/_update

/project/v1/_search

PROJECT_VIEWER

Project Viewer

/project/v1/_search

EMPLOYEE_COMMON

Employee Common

/inbox/v2/_search

The following role-action mappings derived from the above table are configured for the Project service in the roleactions.json in MDMS. A sample is provided below. Make sure the action ID is correct and corresponds to actions.json.

IdGen Format

Add Id Format as configured in the ‘IdFormat.json’ file of the ‘common-masters’ module herearrow-up-right. This format is used to generate the unique ID of the project.

Persister Configuration

Add persister file project-management-system-persister.ymlarrow-up-right as defined herearrow-up-right.

Indexer Configuration

Add indexer file projectmanagementsystem-indexer.ymlarrow-up-right as defined herearrow-up-right.

Other Master Data Configuration

1. ProjectType arrow-up-right

2. Departmentarrow-up-right

3. Boundary Dataarrow-up-right

4. Nature of Workarrow-up-right

Deployment Details

The image name of the service is available in the release charts in the DevOps repository. The service can be deployed using Helm commands.

Environment variables to be configured in the Helm chart for the service are:

circle-exclamation

Integration Details

API Spec

Base path: /project/

Refer to the API specarrow-up-right for a description of the APIs.

Documentation for this service is available herearrow-up-right.

Postman Collection

Click herearrow-up-right to access the Postman collection used to test APIs. Import the link into Postman and follow the instructions to run the collection. Use these to understand the request payloads.

Was this helpful?