Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 685 Bytes

api-client-typescript.md

File metadata and controls

21 lines (14 loc) · 685 Bytes

Api client TypeScript

Joanie can create a TypeScript client to be use in frontend applications. This client is made with openapi-typescript-codegen and Joanie's backend openapi schema (available here if you have Joanie's backend running).

Requirements

We'll need the online openapi schema generate by swagger. Therefor you need to install Joanie.

Install openApiClientJs

$ cd src/openApiClientJS
$ yarn install

Generate the client

yarn generate:api:client:local <output_path_for_generated_code>