How strasakul/osb-server works
This is a Spring Boot audio-sound API: clients upload files, browse or fetch sound metadata, stream audio, and delete sounds. The controller coordinates metadata access through a JPA repository and file operations through a storage service; the filesystem implementation stores audio locally and records sound metadata. Startup initializes storage, while storage exceptions are translated into HTTP responses. The README is empty, so capabilities and relationships here are based on the sampled source; database configuration details were not available.
Main entry points: FileSystemStorageService.java Filesystem Storage · SoundController.java Sound Controller · SoundRepository.java Sound Repository · StorageFileNotFoundException.java File Not Found
Components 13
Sound API
- Sound Controller
src/main/java/com/osb/server/SoundController.java
Sound Catalog
- Sound Metadata
src/main/java/com/osb/server/Sound.java - Sound Repository
src/main/java/com/osb/server/SoundRepository.java
Audio Storage
- Storage Service
src/main/java/com/osb/server/storage/StorageService.java - Filesystem Storage
src/main/java/com/osb/server/storage/FileSystemStorageService.java - Local Audio Files
- Storage Properties
src/main/java/com/osb/server/storage/StorageProperties.java
Startup and Errors
- Spring Application
src/main/java/com/osb/server/ServerApplication.java - Storage Initialization
src/main/java/com/osb/server/storage/StorageConfig.java - Storage Exception
src/main/java/com/osb/server/storage/StorageException.java - File Not Found
src/main/java/com/osb/server/storage/StorageFileNotFoundException.java - HTTP Error Handler
src/main/java/com/osb/server/storage/StorageExceptionHandler.java
Other components
- API Client
Connections 15
- API Client → Sound Controller: sends requests
src/main/java/com/osb/server/SoundController.java - Sound Controller → Storage Service: stores and loads
src/main/java/com/osb/server/SoundController.java - Sound Controller → Sound Repository: queries and deletes
src/main/java/com/osb/server/SoundController.java - Filesystem Storage → Sound Repository: saves metadata
src/main/java/com/osb/server/storage/FileSystemStorageService.java - Filesystem Storage → Sound Metadata: creates metadata
src/main/java/com/osb/server/storage/FileSystemStorageService.java - Sound Repository → Sound Metadata: persists entities
src/main/java/com/osb/server/SoundRepository.java - Filesystem Storage → Local Audio Files: writes and reads
src/main/java/com/osb/server/storage/FileSystemStorageService.java - Filesystem Storage → Storage Properties: reads location
src/main/java/com/osb/server/storage/FileSystemStorageService.java - Filesystem Storage → Storage Exception: raises errors
src/main/java/com/osb/server/storage/FileSystemStorageService.java - Filesystem Storage → File Not Found: raises missing-file
src/main/java/com/osb/server/storage/FileSystemStorageService.java - File Not Found → Storage Exception: extends
src/main/java/com/osb/server/storage/StorageFileNotFoundException.java - HTTP Error Handler → File Not Found: handles missing-file
src/main/java/com/osb/server/storage/StorageExceptionHandler.java - HTTP Error Handler → Storage Exception: handles storage errors
src/main/java/com/osb/server/storage/StorageExceptionHandler.java - Storage Initialization → Storage Service: initializes
src/main/java/com/osb/server/storage/StorageConfig.java - Spring Application → Storage Properties: enables properties
src/main/java/com/osb/server/ServerApplication.java