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

API.Routes.DoneDatCreate

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

Create Done Dat POST

/dump

Get all undumped .dat files and summarize their data in a .done.dat file.

Response

201

{
  "name": "9.done.dat",
  "data": {
    "customers_quantity": 41,
    "sellers_quantity": 20,
    "most_expensive_sale_id": 638,
    "worst_seller": "Jaqueline Garcia"
  }
}

The data is the same of the Read route, which requires the ID (number) on the name returned.

202

{
  "message": "No newer Dat files"
}

If there is no unread .dat files on the database, then this message is returned as no dump is made.

Clone this wiki locally