📄️ Infrastructure
Generated file contains infrastructure functions that are used to make API calls.
📄️ Data Contracts
REST2TS generates TypeScript interfaces for data contracts. These interfaces are used to define the shape of the data that is sent and received from the API.
📄️ Endpoint Functions
Generated file contains functions that are used to make API calls. Each function corresponds to an endpoint in the API. Each function also exports the route, which can be reused in your code.
📄️ Fetching
REST2TS is using the Fetch API to make requests. Fetch is a modern replacement for XMLHttpRequest. It is a promise-based API that returns a Response object.