fedspendingtransparency / data-act-broker-backend

Services that power the DATA Act's central data submission platform

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Trouble using Broker APIs

samishra1 opened this issue · comments

Hello,

I am running into issues uploading and validating files in a local copy of data act broker. I would like to know the sequence of APIs I need to execute to submit and validate files. I have tried /v1/submit_files/ followed by /v1/finalize_job/ but I am not if this is right. I don't see any uploaded files, neither the submission errors and warning files.

Background:

  1. Setup the data act broker backend. When I access 127.0.0.1:3333/ I get message broker is running
  2. I tried testing backed APIs using postman
    2a. I get session id by using 127.0.0.1:3333//v1/login
    2b. Using session id from step 2a, I executed /v1/submit_files and got back the submission_id (4)

Questions:

  1. Am I supposed to run /v1/finalize_job/ after getting the submission_id from /v1/submit_files. If so where do I get the upload_id which is the input required for /v1/finalize_job