ai-cfia / fertiscan-backend

Fertiscan backend
MIT License
1 stars 0 forks source link

Send files and analyze through the /analyze route #46

Closed snakedye closed 3 weeks ago

snakedye commented 1 month ago

This is current workflow:

  1. User sends images with POST /upload.
  2. To analyze the images from the label he calls GET /analyze.
  3. GET /analyze responds with a JSON.

The workflow we want is:

  1. The user sends POST /analyze. The request contains:
    • An identifiable token from the user in the header.
    • The files the user want to analyze.
  2. POST /analyze responds with a JSON.

    Tasks:

    • [x] #47
    • [x] Refactor app.py to accept files from POST /analyze.

    Acceptance Criteria: