fossology / FOSSologyUI

Repository to hold the new UI framework for FOSSology built with React
https://fossology.github.io/FOSSologyUI/
GNU General Public License v2.0
48 stars 85 forks source link

fix(MULTIPLE-API-CALLS) merge multiple upload-api calls into one #249

Open dushimsam opened 2 years ago

dushimsam commented 2 years ago

Signed-off-by: dushimsam dushsam100@gmail.com

Description

Merge the create upload API and create job API into one API request.

Changes

  1. Removed the getUploadApiRequest.
  2. Removed the createJobApiRequest.
  3. Added scanOptions parameter on the uploadApiRequest.

How to test

How to test

1. Upload Request

Fill up the input details on Vcs Upload Page for the upload click the upload button hence the request should look as follows.

merge_uploads_request

merge_uploads

2. Response

You should see this response object with the ID of the corresponding job in the message.

merge_uploads_response

Related issue

closes : https://github.com/Shruti3004/FOSSology-REST-API/issues/2 ,https://github.com/fossology/FOSSologyUI/issues/260

cc: @shaheemazmalmmd @GMishx

Shruti3004 commented 2 years ago

@dushimsam can you also fix test cases

dushimsam commented 2 years ago

ok , I'm on it.

dushimsam commented 2 years ago

tested and working perfectly.