Skip to content
This repository was archived by the owner on Aug 1, 2024. It is now read-only.

API.Routes.DoneDatLast

Mestre-Tramador edited this page Feb 14, 2023 · 1 revision

Read Last Done Dat GET

/dump/last

Read the last stored .done.dat file content.

Response

200

{
  "customers_quantity": 73,
  "sellers_quantity": 49,
  "most_expensive_sale_id": 426,
  "worst_seller": "João Silva"
}

Following the model of a Done Dat file, it describes the quantity of sellers and customers, also the most expensive sale's ID and the worst seller name, in other words the one with the minor profit of all.

404

{
  "error": "File not found"
}

If there is no file, then this error is returned.

Clone this wiki locally