Details

    • Type: New Feature
    • Status: Done
    • Priority: Medium
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: CBAT Offer Letter - Fall
    • Labels:
      None

      Description

      Need document type filter for API like getTemplateList , Document History API.

        Attachments

        1. Compliance.jpg
          Compliance.jpg
          314 kB
        2. History.jpg
          History.jpg
          377 kB
        3. RefernceDocument.jpg
          RefernceDocument.jpg
          374 kB
        4. Screen Shot 2019-05-22 at 1.14.55 PM.png
          Screen Shot 2019-05-22 at 1.14.55 PM.png
          283 kB
        5. W4.jpg
          W4.jpg
          311 kB

          Activity

          Hide
          ramya.tantry Ramya Tantry (Inactive) added a comment - - edited

          To apply filter of template type, id of template type needs to be sent in request header as "DocumentTemplateType". Similarly, for document type , id of document type needs to be sent in request header as "DocumentType".

          Document Template Type are :

          26 Offer Letter
          27 W4
          28 Compliance
          29 Other

          Document Types are

          14 Action Required
          15 Reference

          The API's will fetch the id from request header and will filter the records accordingly.
          Validation will be thrown for invalid document template type id and document type id.
          If "DocumentTemplateType" and/or "DocumentType" is not sent in request header, records will be fetched as per existing flow.

          Show
          ramya.tantry Ramya Tantry (Inactive) added a comment - - edited To apply filter of template type, id of template type needs to be sent in request header as "DocumentTemplateType". Similarly, for document type , id of document type needs to be sent in request header as "DocumentType". Document Template Type are : 26 Offer Letter 27 W4 28 Compliance 29 Other Document Types are 14 Action Required 15 Reference The API's will fetch the id from request header and will filter the records accordingly. Validation will be thrown for invalid document template type id and document type id. If " DocumentTemplateType " and/or " DocumentType " is not sent in request header, records will be fetched as per existing flow.
          Hide
          jayshree.nagpure Jayshree Nagpure (Inactive) added a comment - - edited

          Hi Ramya Tantry,

          Environment : Preproduction

          We have verified Filters for DocumentTemplateType and Document Types :
          Verified for below mentioned API :

          • /api/documents/ {sourceProduct}/{documentId}/{personId}/LatestStatus
            * /api/documents/{sourceProduct}

            /document/

            {id}/LatestStatus
            * /api/documents/{sourceProduct}/person/{id}

            /LatestStatus

          • /api/documents/sourceProduct/ {id}/LatestStatus
            * /api/documents/{sourceProduct}/{documentId}/{personId}/statusHistory
            * /api/documents/{sourceProduct}/document/{id}

            /statusHistory

          • /api/documents/ {sourceProduct}

            /person/

            {id}/statusHistory
            * /api/documents/sourceProduct/{id}

            /statusHistory

          Filters are working fine
          PFA -
          Closing this ticket

          Thanks.
          Jayshree

          Priya Dhamande Swapnil Pandhare Rohan J Khandave

          Show
          jayshree.nagpure Jayshree Nagpure (Inactive) added a comment - - edited Hi Ramya Tantry , Environment : Preproduction We have verified Filters for DocumentTemplateType and Document Types : Verified for below mentioned API : /api/documents/ {sourceProduct}/{documentId}/{personId}/LatestStatus * /api/documents/{sourceProduct} /document/ {id}/LatestStatus * /api/documents/{sourceProduct}/person/{id} /LatestStatus /api/documents/sourceProduct/ {id}/LatestStatus * /api/documents/{sourceProduct}/{documentId}/{personId}/statusHistory * /api/documents/{sourceProduct}/document/{id} /statusHistory /api/documents/ {sourceProduct} /person/ {id}/statusHistory * /api/documents/sourceProduct/{id} /statusHistory Filters are working fine PFA - Closing this ticket Thanks. Jayshree Priya Dhamande Swapnil Pandhare Rohan J Khandave
          Hide
          Shamooka.Mohapatra Shamooka Mohapatra (Inactive) added a comment -

          I have checked the api.

          It is returning error response if i am passing 26 for DocumentTemplateType. 26 is the id for Offerletter.

          Show
          Shamooka.Mohapatra Shamooka Mohapatra (Inactive) added a comment - I have checked the api. It is returning error response if i am passing 26 for DocumentTemplateType. 26 is the id for Offerletter.
          Hide
          Shamooka.Mohapatra Shamooka Mohapatra (Inactive) added a comment -

          It is also not working in case of passing multiple ids and for "0" that we need to pass if all types are required 

          Show
          Shamooka.Mohapatra Shamooka Mohapatra (Inactive) added a comment - It is also not working in case of passing multiple ids and for "0" that we need to pass if all types are required 

            People

            Assignee:
            rohan.khandave Rohan J Khandave (Inactive)
            Reporter:
            rohan.khandave Rohan J Khandave (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 8h
                8h
                Remaining:
                Time Spent - 6h 20m Remaining Estimate - 1h 40m
                1h 40m
                Logged:
                Time Spent - 6h 20m Remaining Estimate - 1h 40m
                6h 20m