Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ userver_target_generate_chaotic(${PROJECT_NAME}-chgen
RELATIVE_TO
${CMAKE_CURRENT_SOURCE_DIR}
)
target_link_libraries(${PROJECT_NAME}-chgen userver::postgresql)
target_link_libraries(${PROJECT_NAME}_objs PUBLIC ${PROJECT_NAME}-chgen)

userver_add_sql_library(
Expand Down
78 changes: 40 additions & 38 deletions docs/api/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -296,44 +296,46 @@ components:
body:
type: string

# Article:
# required:
# - profile
# - body
# - createdAt
# - description
# - isFavorited
# - favoritesCount
# - slug
# - title
# - updatedAt
# type: object
# properties:
# slug:
# type: string
# title:
# type: string
# description:
# type: string
# body:
# type: string
# tags:
# type: array
# items:
# type: string
# createdAt:
# type: string
# format: date-time
# updatedAt:
# type: string
# format: date-time
# isFavorited:
# type: boolean
# favoritesCount:
# type: integer
# profile:
# $ref: '#/components/schemas/Profile'
# additionalProperties: false
Article:
required:
- profile
- body
- createdAt
- description
- isFavorited
- favoritesCount
- slug
- title
- updatedAt
type: object
properties:
slug:
type: string
title:
type: string
description:
type: string
body:
type: string
tags:
type: array
items:
type: string
createdAt:
type: string
format: date-time
x-usrv-cpp-type: userver::storages::postgres::TimePointTz
updatedAt:
type: string
format: date-time
x-usrv-cpp-type: userver::storages::postgres::TimePointTz
isFavorited:
type: boolean
favoritesCount:
type: integer
profile:
$ref: '#/components/schemas/Profile'
additionalProperties: false

ArticleFilterDTO:
type: object
Expand Down
Loading