Angular Petstore Example - Generated Code
Explore real TypeScript code generated from the OpenAPI Petstore specification using MetaEngine for Angular
Angular 19.2+ Modern Features
This example showcases cutting-edge Angular patterns:
- 8 httpResource usages with Signal-based HTTP API
- inject() function for dependency injection (no constructors)
- @Injectable services with clean architecture
Services (4 files)
Angular injectable services with httpResource and Signals
- pet.service.ts httpResource
- store.service.ts httpResource
- user.service.ts httpResource
- base-api.service.ts (Base class)
Models (6 files)
Features Showcased in This Example
httpResource API
Angular 19.2+ Signal-based HTTP with automatic request management
inject() Function
Modern inject() function (Angular 14+) instead of constructor injection
Type Safety
Full TypeScript type definitions from OpenAPI schema
About This Example
This code was generated from the official OpenAPI Petstore specification using MetaEngine.
Note: This is real generated code that compiles without errors. You can use the same tool to generate code from your own OpenAPI specifications.