REST API integration in Unity. Reusable Unity networking layer, ready-to-run auth and bookstore examples and a local .NET backend. Prototype, test and ship API-driven features faster.## Key Features### Production-style API architecture in UnityUse a structured service layer and request pipeline designed for real projects, not throwaway demos.Includes queue-based request processing, retry with exponential backoff, circuit breaker support, and main-thread-safe UnityWebRequest execution.### Multi-auth support out of the boxTest and integrate common authentication strategies without extra setup:- Session cookie auth- JWT bearer auth- API key auth### Full Book Store API flow (client + server)Includes end-to-end create/read/update/delete operations and filtered list retrieval.The same flow is available through Unity scripts, sample scenes, and PlayMode tests.### Fast onboarding experienceComes with example scenes, a test MonoBehaviour (`TestApi`), and editor tooling that can auto-generate and wire BookStore action buttons in the sample scene.You can validate your pipeline in minutes and then adapt the same structure to your own backend.### Built for extensibilityThe architecture is modular and easy to adapt to any domain (inventory, user profiles, game economy, CMS, etc.).Swap endpoints and models while keeping the same resilient network foundation.Transform how you build API-connected Unity applications with a clean, reusable client-server starter that is practical for games, tools, educational apps, and internal products.## Specs- Unity client + local ASP.NET Core server bundle- Unity 2022.3 LTS project setup (`2022.3.62f3`)- Server target framework: `net10.0`- In-memory backend data for quick local iteration (no DB required)- Clear separation of concerns:- `ServiceApi` endpoint wrappers- `BaseApi` request builder/logging- `NetworkClient` queue/worker/policy layer- `UnityWebRequestGateway` transport layer## Included components- Auth endpoints:- `POST /session/login`- `GET /session/data`- `POST /jwt/login`- `GET /jwt/data`- `GET /apikey/data`- Book Store endpoints:- `GET /bookstore/books` (with filters)- `GET /bookstore/stores/{storeId}/books/{bookId}`- `POST /bookstore/stores/{storeId}/books`- `PUT /bookstore/stores/{storeId}/books/{bookId}`- `DELETE /bookstore/stores/{storeId}/books/{bookId}`## Demo content- Auth scenes:- `SessionAuth.unity`- `JwtAuth.unity`- `ApiKeyAuth.unity`- BookStore scene:- `BookStore.unity`- Editor utility:- `Tools/Simple JSON RESTful Client/Setup BookStore Scene Buttons`## Test coverage- PlayMode tests for:- Session/JWT/API key login flows- BookStore auth requirement checks- BookStore filter retrieval- BookStore CRUD lifecycle## Notable features- Request queue + worker architecture- Exponential retry with jitter- Circuit breaker protection- Main-thread-safe Unity HTTP execution- Token storage/handling helpers- Structured response model (`status`, `body`, `headers`, `network error`)- Inspector-friendly test driver (`TestApi`) with response logging- Easy adaptation to other Unity projects





