Back to all casesУкраїнською

Argus Soft · production

An API client generated from Swagger

API calls were written by hand inside useCallback hooks all over the components, with no shared types. Any backend change could quietly break something.

245 typed methods

I replaced them with a client generated from the backend's Swagger (OpenAPI) specification. Its 245 typed methods regenerate with one command whenever the backend changes.

Since then a contract change shows up as a TypeScript error at build time, and that whole class of integration bugs went away.

  • OpenAPI
  • codegen
  • TypeScript

Engineering drawings at Argus Soft

Engineering institutes needed to route drawings through review, approval, signing and archiving under Ukrainian DSTU standards. Thousands of people used the document-workflow platform. I owned its customer app and admin panel as the sole frontend engineer for 2.5 years.

A change to a backend response could leave a handwritten request out of date. I replaced those requests with a client generated from OpenAPI. One command rebuilds all 245 typed methods. I also connected the service that stamps approved drawings with archive numbers and integrated a PDF viewer for annotations.

Stack: React, TypeScript, REST APIs, OpenAPI, ComPDFKit WebViewer, Server-Sent Events.