egov-pdf service (interservice call to pdfservice) promotion

Introduction:

Egov-pdf service is new service being added which can work in between existing pdf-service and client requesting pdfs. Earlier client used to directly call pdf-service with complete data as json, but with introduction of this new service can provide just few parameters ex:- applicationnumber, tenantId to this new service get a pdf. The egov-pdf service will take responsibility of getting application data from concerned service and also will do any enrichment if required and then call pdf service to get pdf directly with the data. The service will return pdf binary as response which can be directly downloaded by the client. With this service the existing pdf service need not be exposed to frontend.

For any new pdf requirement one new endpoint with validations and logic for getting data for pdf has to be added in the code. With separate endpoint for each pdf we can define access rules per pdf basis. Currently egov-pdf service has endpoint for following pdfs used in our system:-

  • PT mutationcertificate

  • PT bill

  • PT receipt

  • TL receipt

  • TL certifcate

  • TL renewal certificate

  • Consolidated receipt

 

Promotion Steps:

Service builds

  • Egov-pdf : egov-pdf:20-pdf-new-89df3c9

  • Tl-services: tl-services:124-TL_mobno_fix-ea930c50

  • PDF Service: pdf-service:25-pdf-add-1b2fb5b

  • Make sure  pdf-service configs for above mentioned pdfs are present

 

MDMS:

Add below mention config to https://github.com/egovernments/egov-mdms-data/blob/master/data/pb/ACCESSCONTROL-ACTIONS-TEST/actions-test.json

and give access to ‘CITIZEN’ and ‘EMPLOYEE’ roles in https://github.com/egovernments/egov-mdms-data/blob/master/data/pb/ACCESSCONTROL-ROLEACTIONS/roleactions.json

   {

      "id": 1991,

      "name": "consolidatedreceipt search",

      "url": "/egov-pdf/download/PAYMENT/consolidatedreceipt",

      "displayName": "consolidatedreceipt search",

      "orderNumber": 1,

      "enabled": false,

      "serviceCode": "egov-pdf",

      "code": "null",

      "path": ""

    },

    {

      "id": 1993,

      "name": "tlreceipt search",

      "url": "/egov-pdf/download/TL/tlreceipt",

      "displayName": "tlreceipt search",

      "orderNumber": 3,

      "enabled": false,

      "serviceCode": "egov-pdf",

      "code": "null",

      "path": ""

    },

    {

      "id": 1994,

      "name": "tlcertificate search",

      "url": "/egov-pdf/download/TL/tlcertificate",

      "displayName": "tlcertificate search",

      "orderNumber": 4,

      "enabled": false,

      "serviceCode": "egov-pdf",

      "code": "null",

      "path": ""

    },

    {

      "id": 1995,

      "name": "tlrenewalcertificate search",

      "url": "/egov-pdf/download/TL/tlrenewalcertificate",

      "displayName": "tlrenewalcertificate search",

      "orderNumber": 5,

      "enabled": false,

      "serviceCode": "egov-pdf",

      "code": "null",

      "path": ""

    },

    {

      "id": 1997,

      "name": "ptmutationcertificate search",

      "url": "/egov-pdf/download/PT/ptmutationcertificate",

      "displayName": "ptmutationcertificate search",

      "orderNumber": 7,

      "enabled": false,

      "serviceCode": "egov-pdf",

      "code": "null",

      "path": ""

    },

    {

      "id": 1998,

      "name": "ptbill search",

      "url": "/egov-pdf/download/PT/ptbill",

      "displayName": "ptbill search",

      "orderNumber": 8,

      "enabled": false,

      "serviceCode": "egov-pdf",

      "code": "null",

      "path": ""

    },

    {

      "id": 1999,

      "name": "ptreceipt search",

      "url": "/egov-pdf/download/PT/ptreceipt",

      "displayName": "ptreceipt search",

      "orderNumber": 9,

      "enabled": false,

      "serviceCode": "egov-pdf",

      "code": "null",

      "path": ""

    }