🧩 Integrate OpenAPI TypeScript Client into Angular 19 with Signals
@budrobundy69 がすでに取り組んでいます。
2025年6月1日 から。
評価
この issue はまだ評価されていません。
説明
🧩 Integrate OpenAPI TypeScript Client into Angular 19 with Signals
Goal: Use the generated OpenAPI TS client to communicate with the backend, and manage state using Angular Signals and SignalStore.
✅ Tasks
1. Setup SignalStore
- Create a signal store (
apiStore) infrontend/src/app/stores/ - Store loading state, errors, and response data
- Export actions for component usage
2. Create ApiService Wrapper
- Create
api.service.tsinfrontend/src/app/services/ - Inject OpenAPI-generated services (e.g.,
DefaultService) - Wrap service methods to return observables or promises
- Handle and log HTTP errors gracefully
3. Create Example Feature
- Create a component that:
- Triggers an API call using the store
- Displays loading/error/success state
- Uses Signals for UI updates
4. Optional: Add Test Coverage
- Unit test the SignalStore and ApiService
- Mock OpenAPI responses
📁 Suggested Structure
frontend/
├── src/
│ ├── app/
│ │ ├── api/ # OpenAPI-generated
│ │ ├── services/
│ │ │ └── api.service.ts
│ │ ├── stores/
│ │ │ └── api.store.ts
│ │ └── features/
│ │ └── sample/
│ │ └── sample.component.ts
🔜 Next Steps (Separate Issues)
- Add tests to CI
- Extend SignalStore pattern across features
- Trigger OpenAPI client generation automatically in CI
- Cloud Foundry deploy with OpenAPI client
Labels: 🔄 openapi, 🧱 frontend, 🌐 angular, 📦 integration, ⚡ state, 🧪 test
Milestone: M1 - Backend MVP
Project: OpenAPI Angular Spring Example
- 主要言語
- HTML
- スター
- 0
- フォーク
- 0
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
budrobundy69/openapi-angular-spring-example のほかの issue
-
🎨 frontend 🛠️ setup
budrobundy69/openapi-angular-spring-example#20 · 担当者 1 名 ·
-
🌱 symbols オープン🌱 enhancement 📚 documentation
budrobundy69/openapi-angular-spring-example#10 · 担当者 1 名 ·
-
📚 documentation 📜 openapi 🧩 backend
budrobundy69/openapi-angular-spring-example#2 · 担当者 1 名 ·
-
🛠️ setup 🧩 backend
budrobundy69/openapi-angular-spring-example#1 · 担当者 1 名 ·