Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • VIR - backend VIR - backend
  • Project information
    • Project information
    • Activity
    • Labels
    • Planning hierarchy
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1
    • Issues 1
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • VIR - Visual Interactive Reading
  • VIR - backendVIR - backend
  • Issues
  • #6

Closed
Open
Created Oct 01, 2024 by Luiz Felipe Porto Lara De Oliveira@luiz.oliveiraMaintainer3 of 3 tasks completed3/3 tasks

Sprint 2 | Admin | Book C.R.U.D | Book file processing and addition

To-Do:

  • Implement an endpoint to receive a PDF file containing the book
  • Validate the PDF file format upon upload
  • Process the PDF file to extract sections based on special divider characters

Feature: Upload and process a PDF containing a book

The service receives a PDF file containing a book with special divider characters to identify sections.
The system processes the PDF and stores it in the database.

Scenario: Upload PDF for an existing book

Given a valid PDF file containing a book with special divider characters is sent to the upload endpoint
When the PDF file is uploaded to the service
Then the service should process the PDF and identify sections based on the divider characters
And check if the book exists in the database
And if the book exists, the service updates the book's existing entry with the newly generated PDF file

Scenario: Upload PDF for a new book

Given a valid PDF file containing a new book with special divider characters is sent to the upload endpoint
When the PDF file is uploaded to the service
Then the service should process the PDF and identify sections based on the divider characters
And convert the processed content into an PDF file
And if the book does not exist in the database, it should be added
And the PDF file should be stored in the database as part of the new book

Edited Oct 11, 2024 by Luiz Felipe Porto Lara De Oliveira
Assignee
Assign to
Time tracking