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

API.Routes.DoneDatRead

Mestre-Tramador edited this page Sep 9, 2022 · 1 revision

Read Done Dat GET

/dump/:id

Read a stored .done.dat file content.

URL Path

Path Value Description
:id number The numeric ID of the .done.dat file being read.

Response

200

{
  "customers_quantity": 29,
  "sellers_quantity": 12,
  "most_expensive_sale_id": 885,
  "worst_seller": "Adriano Borba"
}

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 with the given ID, then this error is returned.

Clone this wiki locally