Rewake API

The Rewake API connects Rewake’s tools to its data. Airtable is the source of truth for the catalog, purchases and sales; Shopify is the shop. The API reads and writes both for:

  • RewakeApp (app.rewake.fr): the internal tool (catalog intake, receiving, scripts, payroll…);

  • RewakeInfo (info.rewake.fr): public forms (buy-back proposals, UltiMate 3000 offers);

  • the Chrome extension: contacts and deals from the browser;

  • Airtable automations and buttons: Shopify updates, PDF documents;

  • n8n workflows on the same server (the API also calls n8n to send some e-mails);

  • partners: HelloPro and Machinio product feeds.

It is a FastAPI application, with a Celery worker for long and scheduled jobs.

Documentation

Page

Read it to

Installation

run the API on your machine

Configuration

know every setting (.env)

Architecture

understand how the code is organised, and its conventions

Contributing

make a change: branches, tests, style

Deployment

put a version in production, or roll back

Troubleshooting

fix the usual problems

n8n automations

the n8n workflows: what each does, its links with the API, its failures

Variation pricing

the sale-price model (French)

The Source code section is the reference generated from the docstrings of api/, ocr/ and scripts/: every module, class and function, searchable from the search box.

The interactive list of routes is served by the API itself at /docs (Swagger) and /redoc.