Uploaded image for project: 'Document Management System'
  1. Document Management System
  2. DMS-485

CBAT : Get Document Status & Return Document Status API

    Details

    • Type: New Feature
    • Status: Done
    • Priority: Medium
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: Integration with CBAT
    • Labels:
      None

      Description

      CBAT : Get Document Status & Return Document Status API

        Attachments

          Activity

          Hide
          rohan.khandave Rohan J Khandave (Inactive) added a comment -

          As per discussion with Joris. This needs to confirm that any post api at CBAT end. If so (after confirmation) we need to taken into development. 

          Show
          rohan.khandave Rohan J Khandave (Inactive) added a comment - As per discussion with Joris. This needs to confirm that any post api at CBAT end. If so (after confirmation) we need to taken into development. 
          Hide
          rohan.khandave Rohan J Khandave (Inactive) added a comment -

          Hello Shamooka Mohapatra,

          Do you have any updates for this?

          Thanks,
          RohanK

          CC – Samir , Swapnil Pandhare

          Show
          rohan.khandave Rohan J Khandave (Inactive) added a comment - Hello Shamooka Mohapatra , Do you have any updates for this? Thanks, RohanK CC – Samir , Swapnil Pandhare
          Hide
          rohan.khandave Rohan J Khandave (Inactive) added a comment -

          Comments from David Vincent on slack.

          Regarding card https://careerbuilder.atlassian.net/browse/AT-1923, I will create an endpoint for you to call with a POST query.
          It will be available at https://system_url/bo.php/rest/dms/candidate/

          {id}

          /documents/status
          {id}

          stands for the candidate_id and I need you to send this payload:

          { "documents": [ "document_id": "int", "status": "string" ], [ "document_id": "int", "status": "string" ], [ "document_id": "int", "status": "string" ] }

          status: new|viewed|signed

          Comments from Alexandre Wuyts on slack.
          Do you think you can add the signature date in the answer for this endpoint: LatestStatus
          It’s misssing, if document is not signed null is fine

          Show
          rohan.khandave Rohan J Khandave (Inactive) added a comment - Comments from David Vincent on slack. Regarding card https://careerbuilder.atlassian.net/browse/AT-1923 , I will create an endpoint for you to call with a POST query. It will be available at https://system_url/bo.php/rest/dms/candidate/ {id} /documents/status {id} stands for the candidate_id and I need you to send this payload: { "documents": [ "document_id": "int", "status": "string" ], [ "document_id": "int", "status": "string" ], [ "document_id": "int", "status": "string" ] } status: new|viewed|signed Comments from Alexandre Wuyts on slack. Do you think you can add the signature date in the answer for this endpoint: LatestStatus It’s misssing, if document is not signed null is fine
          Hide
          swapnil.pandhare Swapnil Pandhare (Inactive) added a comment -

          Comments from Joris on slack

          Hi @Samir Shaikh @Rohan J Khandave,
          FYI: the ATS endpoint to push document updates is not ready yet. I just reviewed the code and there's still some more work to be done before we should share with you the API specs.
          Thanks for your patience.

          Show
          swapnil.pandhare Swapnil Pandhare (Inactive) added a comment - Comments from Joris on slack :  Hi @Samir Shaikh @Rohan J Khandave, FYI: the ATS endpoint to push document updates is not ready yet. I just reviewed the code and there's still some more work to be done before we should share with you the API specs. Thanks for your patience.
          Hide
          rohan.khandave Rohan J Khandave (Inactive) added a comment -

          Comments from Joris Berthelot on slack.

          the ATS endpoint spec is the following:

          POST /rest/dms/event    HTTP/1.1

          Host: customer-system.luceosoltions.com

          Content-Type: application/json

          [

              { "id": 1, "event": "Signed" } ,

              { "id": 2, "event": "Opened" } ,

              { "id": 3, "event": "Signed" }

          ]

          This is a demo request.

          Request body is a collection of documents { id, event }

          When a candidate signs a document, you can immediately send us back the event related to the document.

          CC – Shamooka Mohapatra , Samir , Swapnil Pandhare

          Show
          rohan.khandave Rohan J Khandave (Inactive) added a comment - Comments from Joris Berthelot on slack. the ATS endpoint spec is the following: POST /rest/dms/event     HTTP/1.1 Host: customer-system.luceosoltions.com Content-Type: application/json [     { "id": 1, "event": "Signed" } ,     { "id": 2, "event": "Opened" } ,     { "id": 3, "event": "Signed" } ] This is a demo request. Request body is a collection of documents { id, event } When a candidate signs a document, you can immediately send us back the event related to the document. CC – Shamooka Mohapatra , Samir , Swapnil Pandhare
          Hide
          rohan.khandave Rohan J Khandave (Inactive) added a comment -

          Comments from Joris Berthelot from slack

          Hello @Rohan J Khandave, you can test the ATS callback API with this request:

          ```curl --request POST \
          --url http://php56-sandbox-26.luceosolutions-dev.com/rest/dms/event \
          --header 'Authorization: Basic cGhwNTYtc2FuZGJveC0yNjpwaHA1Ni1zYW5kYm94LTI2' \
          --header 'Content-Type: application/json' \
          --data '[

          {"id": 3, "event": "Signed"}

           ]' 

          Basic Auth is:
          user: php56-sandbox-26
          passwd: php56-sandbox-26

          Show
          rohan.khandave Rohan J Khandave (Inactive) added a comment - Comments from Joris Berthelot from slack Hello @Rohan J Khandave, you can test the ATS callback API with this request: ```curl --request POST \ --url http://php56-sandbox-26.luceosolutions-dev.com/rest/dms/event \ --header 'Authorization: Basic cGhwNTYtc2FuZGJveC0yNjpwaHA1Ni1zYW5kYm94LTI2' \ --header 'Content-Type: application/json' \ --data '[ {"id": 3, "event": "Signed"}  ]'  Basic Auth is: user: php56-sandbox-26 passwd: php56-sandbox-26
          Hide
          Joris.Berthelot Joris Berthelot (Inactive) added a comment -

          Hello,

          New endpoint definition:

           

          POST /rest/dms/document/status-event HTTP/1.1
          Host: customer-system.luceosolutions.com
          Content-Type: application/json
          [
              {
                  "id": 1,
                  "status_id": 3,
              },
              {
                  "id": 2,
                  "status_id": 4,
              },
              {
                  "id": 3,
                  "status_id": 66,
              }
          ] 

           

          /rest/dms/event => /rest/dms/document/status-event

          event => status_id

          status_id is now an integer amongst the values you provided

           

          Show
          Joris.Berthelot Joris Berthelot (Inactive) added a comment - Hello, New endpoint definition:   POST / rest /dms/document/status-event HTTP/1.1 Host: customer-system.luceosolutions.com Content-Type: application/json [ { "id" : 1, "status_id" : 3, }, { "id" : 2, "status_id" : 4, }, { "id" : 3, "status_id" : 66, } ]   /rest/dms/event => /rest/dms/document/status-event event => status_id status_id is now an integer amongst the values you provided  
          Hide
          ramya.tantry Ramya Tantry (Inactive) added a comment -

          Task Details

          1. Log into document routing when declined - As of now migration is not to be considered of documents that are already declined.
          2. Code to fetch data in the required format of specific document
          3. Code to send data to CBAT url
          4. Unit testing

          Rohan J Khandave : Please review the PR

          Show
          ramya.tantry Ramya Tantry (Inactive) added a comment - Task Details Log into document routing when declined - As of now migration is not to be considered of documents that are already declined. Code to fetch data in the required format of specific document Code to send data to CBAT url Unit testing Rohan J Khandave : Please review the PR
          Hide
          rohan.khandave Rohan J Khandave (Inactive) added a comment -

          Code review done.

          Show
          rohan.khandave Rohan J Khandave (Inactive) added a comment - Code review done.
          Hide
          priya.dhamande Priya Dhamande (Inactive) added a comment -

          Environment: Preprod

          The jira is verifie fr

          • Review and Sign completet flow
          • Error log for CBATS value.

          Both worked as expected. So, closing jira.

          Ramya Tantry Rohan J Khandave Swapnil Pandhare

          Show
          priya.dhamande Priya Dhamande (Inactive) added a comment - Environment: Preprod The jira is verifie fr Review and Sign completet flow Error log for CBATS value. Both worked as expected. So, closing jira. Ramya Tantry Rohan J Khandave Swapnil Pandhare

            People

            Assignee:
            ramya.tantry Ramya Tantry (Inactive)
            Reporter:
            rohan.khandave Rohan J Khandave (Inactive)
            Developer:
            Ramya Tantry (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 24h
                24h
                Remaining:
                Time Spent - 10.5h Remaining Estimate - 13.5h
                13.5h
                Logged:
                Time Spent - 10.5h Remaining Estimate - 13.5h
                10.5h