feat: добавить генерацию image variants
- добавлен shared config presets, custom transforms и allowlist hosts - реализованы Backend endpoints для assets, presets и variants - добавлена orchestration через PostgreSQL, RabbitMQ, S3 и worker - обновлён Gateway read-through flow с L1 cache и корректным Vary: Accept - добавлена миграция resize_mode для variants lookup - обновлены dev scripts, env template, lockfile и документация
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
import { ApiProperty } from "@nestjs/swagger"
|
||||
|
||||
export class HealthResponseDto {
|
||||
@ApiProperty({ example: "image-platform-api" })
|
||||
@ApiProperty({ description: "Имя сервиса, который вернул health-check ответ.", example: "image-platform-api" })
|
||||
service!: string
|
||||
|
||||
@ApiProperty({ example: "ok" })
|
||||
@ApiProperty({ description: "Текущее состояние сервиса.", example: "ok" })
|
||||
status!: string
|
||||
}
|
||||
|
||||
@@ -7,8 +7,11 @@ import { HealthResponseDto } from "./health-response.dto"
|
||||
@Controller("health")
|
||||
export class HealthController {
|
||||
@Get()
|
||||
@ApiOperation({ summary: "Проверить состояние API" })
|
||||
@ApiOkResponse({ type: HealthResponseDto })
|
||||
@ApiOperation({
|
||||
summary: "проверить состояние Backend API",
|
||||
description: "Возвращает простой health-check ответ. Используется для локальной проверки, мониторинга и smoke tests.",
|
||||
})
|
||||
@ApiOkResponse({ description: "Backend API доступен и отвечает.", type: HealthResponseDto })
|
||||
getHealth(): HealthResponseDto {
|
||||
return {
|
||||
service: "image-platform-api",
|
||||
|
||||
Reference in New Issue
Block a user