Files
grzanieplus.pl/plugins/stWebApiPlugin/config/generator/stWebpageBackendWebApi.yml
2025-03-12 17:06:23 +01:00

56 lines
2.2 KiB
YAML

include_action_files: [/plugins/stWebApiPlugin/config/generator/extendGenerator.php]
webapi:
fields:
id: {type: integer}
title: {type: string}
content: {type: string}
culture: {type: string}
name: {type: string}
other_link: {type: string}
url: {type: string}
methods:
CountWebpageI18n:
type: count
peer_method: doCountWithI18n
inOutTypes: {in: object, out: object}
fields:
out: [_count]
GetWebpageI18nList:
type: list
peer_method: doSelectWithI18n
inOutTypes: {in: object, out: array}
fields:
in: [_offset, _limit, _modified_from, _modified_to]
out: [id, title, content, other_link, url]
UpdateWebpageI18n:
type: update
inOutTypes: {in: object, out: object}
fields:
in: [=id, title, content, other_link, url]
out: [_update]
CountWebpageGroupI18n:
type: count
model_class: WebpageGroup
peer_method: doCountWithI18n
inOutTypes: {in: object, out: object}
fields:
out: [_count]
GetWebpageGroupI18nList:
type: list
model_class: WebpageGroup
peer_method: doSelectWithI18n
inOutTypes: {in: object, out: array}
fields:
in: [_offset, _limit, _modified_from, _modified_to]
out: [id, name]
UpdateWebpageGroupI18n:
type: update
model_class: WebpageGroup
inOutTypes: {in: object, out: object}
fields:
in: [=id, name]
out: [_update]