# backend-api

Laravel 12 REST API for the App Distribution Platform.

See the [root README](../README.md) for installation, configuration, migration, seeding, testing and startup commands, and the full API reference.

```bash
composer install && cp .env.example .env && php artisan key:generate
touch database/database.sqlite && php artisan migrate --seed
composer serve      # http://127.0.0.1:8000 (APK-sized upload limits)
php artisan test
```

Key code:

| Path | Responsibility |
|---|---|
| `app/Services/ReleaseAccessService.php` | Server-side rules for what a tester may see/download |
| `app/Services/GroupAssignmentService.php` | Transactional assign / rollback / unassign |
| `app/Services/ReleaseService.php` | APK upload, verification, storage |
| `app/Services/Apk/*` | Structural APK checks and aapt2 metadata extraction |
| `app/Http/Controllers/Api/V1/*` | Tester-facing endpoints; `Admin/*` for the console |
| `tests/Feature/*` | Feature tests |
