Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create upload, view, viewFiles, delete endpoints #62

Closed
15 tasks done
ian1dunn opened this issue Jun 28, 2023 · 3 comments · Fixed by #66
Closed
15 tasks done

Create upload, view, viewFiles, delete endpoints #62

ian1dunn opened this issue Jun 28, 2023 · 3 comments · Fixed by #66
Labels
enhancement New feature or request
Milestone

Comments

@ian1dunn
Copy link
Contributor

ian1dunn commented Jun 28, 2023

Overview

Get upload, view, & viewFiles endpoints implemented on the SVIP backend for front-end.

Related SVIP System Requirement IDs

  • 2.2: The system shall allow users to upload any SBOM, regardless of origin format

Acceptance Criteria

  • upload
    • Takes in an SBOMFile in the request body - fileName & contents value.
    • Caches the raw file on the backend.
    • Returns the unique ID of the uploaded file.
    • Unit Tests
  • view
    • Takes in an ID in the request parameters and returns the contents of that file.
    • Unit Tests
  • viewFiles
    • Returns all IDs of files stored on the backend.
    • Unit Tests
  • delete
    • Takes in an ID in the request parameters and deletes the file.
    • Unit Tests
  • Update API documentation
@ian1dunn ian1dunn added the enhancement New feature or request label Jun 28, 2023
@ian1dunn ian1dunn added this to the SVIP Demo 1 milestone Jun 28, 2023
@ian1dunn ian1dunn self-assigned this Jun 28, 2023
@ian1dunn ian1dunn mentioned this issue Jun 28, 2023
9 tasks
@ian1dunn
Copy link
Contributor Author

The unit tests on these have been disabled until I can find a way to mock the MySQL server instance in #63.

@ian1dunn ian1dunn changed the title Create upload, view, viewFiles endpoints Create upload, view, viewFiles, delete endpoints Jun 29, 2023
@ian1dunn
Copy link
Contributor Author

Added delete endpoint to delete files. API documentation has been updated, unit tests still need to be written.

@ian1dunn
Copy link
Contributor Author

All unit tests are now complete in 0359b6e

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
1 participant