Optional
init: RequestInitOptional
init: RequestInitCreate a flag in the NutriPatrol API.
Data for the flag to create.
Optional
barcode?: stringBarcode
Optional
comment?: stringComment
Optional
confidence?: numberConfidence
Optional
created_at?: stringCreated At Format: date-time
Optional
image_id?: stringImage Id
Optional
reason?: stringReason
Url
User Id
Get the status of the NutriPatrol API.
If the returned status.data
is undefined, it indicates that
the API is down or unreachable.
Retrieves a specific flag by its ID from the NutriPatrol API.
The ID of the flag to fetch.
A promise that resolves with the flag data if found or error.
List all flags.
Get flags by ticket batch.
Ids of ticket to get flags from.
A promise that resolves with the flags data or error.
Retrieves a specific ticket by its ID from the NutriPatrol API.
The ID of the ticket to fetch.
List all tickets.
Parameters to filter the tickets.
A promise that resolves with the list of tickets or error.
Update a ticket status in the NutriPatrol API.
The ID of the ticket to update.
The new status of the ticket.
MDN Reference