@haykal/settings-backend
v1.0.0
Published
Domain backend package for the **Settings** domain.
Readme
@haykal/settings-backend
Domain backend package for the Settings domain.
Usage
import { SettingsModule } from '@haykal/settings-backend';
@Module({
imports: [
SettingsModule.forRoot({
// configuration
}),
],
})
export class AppModule {}Exports
SettingsModule— Dynamic NestJS moduleSettingEntity— TypeORM entitySETTINGS_ENTITIES— Entity array for migrationsSettingsService— Business logicSettingsRepository— Data access layerSettingsController— HTTP endpoints- DTOs, errors, and config types
API Endpoints
| Method | Path | Description |
| ------ | --------------- | -------------------- |
| POST | /settings | Create a new setting |
| GET | /settings | List all settings |
| GET | /settings/:id | Get a setting by ID |
| PATCH | /settings/:id | Update a setting |
| DELETE | /settings/:id | Delete a setting |
