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

33 lines
1.2 KiB
YAML

include_action_files: [/plugins/stWebApiPlugin/config/generator/extendGenerator.php]
webapi:
fields:
id: {type: integer}
name: {type: string}
content: {type: string}
culture: {type: string}
methods:
CountThemeContentI18n:
type: count
model_class: ThemeContent
peer_method: doCountWithI18n
inOutTypes: {in: object, out: object}
fields:
out: [_count]
GetThemeContentI18nList:
type: list
model_class: ThemeContent
peer_method: doSelectWithI18n
inOutTypes: {in: object, out: array}
fields:
in: [_offset, _limit, _modified_from, _modified_to]
out: [id, name, content]
UpdateThemeContentI18n:
type: update
model_class: ThemeContent
inOutTypes: {in: object, out: object}
fields:
in: [=id, name, content]
out: [_update]