The article Stop creating HTTP clients manually - Part I has a practical part that shows how to generate a Typescript HTTP client using openapi-generator and how to use it.
The article is located here: article/stop-creating-http-clients-manually-part-i.md
npm install
npm start