63 lines
2.6 KiB
YAML
63 lines
2.6 KiB
YAML
include_action_files: [/plugins/stWebApiPlugin/config/generator/extendGenerator.php]
|
|
|
|
webapi:
|
|
fields:
|
|
id: {type: integer}
|
|
title: {type: string}
|
|
url: {type: string}
|
|
head_description: {type: string}
|
|
long_description: {type: string}
|
|
short_description: {type: string}
|
|
cta_button_name: {type: string}
|
|
cta_button_url: {type: string}
|
|
cta_description_head: {type: string}
|
|
cta_description_foot: {type: string}
|
|
name: {type: string}
|
|
description: {type: string}
|
|
|
|
methods:
|
|
CountBlogI18n:
|
|
type: count
|
|
peer_method: doCountWithI18n
|
|
inOutTypes: {in: object, out: object}
|
|
fields:
|
|
out: [_count]
|
|
GetBlogI18nList:
|
|
type: list
|
|
peer_method: doSelectWithI18n
|
|
inOutTypes: {in: object, out: array}
|
|
fields:
|
|
in: [_offset, _limit, _modified_from, _modified_to]
|
|
out: [id, url, title, head_description, short_description, long_description, cta_button_name, cta_button_url, cta_description_head, cta_description_foot]
|
|
UpdateBlogI18n:
|
|
type: update
|
|
inOutTypes: {in: object, out: object}
|
|
fields:
|
|
in: [=id, url, title, head_description, short_description, long_description, cta_button_name, cta_button_url, cta_description_head, cta_description_foot]
|
|
out: [_update]
|
|
|
|
CountBlogCategoryI18n:
|
|
type: count
|
|
model_class: BlogCategory
|
|
peer_method: doCountWithI18n
|
|
inOutTypes: {in: object, out: object}
|
|
fields:
|
|
out: [_count]
|
|
|
|
GetBlogCategoryI18nList:
|
|
type: list
|
|
model_class: BlogCategory
|
|
peer_method: doSelectWithI18n
|
|
inOutTypes: {in: object, out: array}
|
|
fields:
|
|
in: [_offset, _limit, _modified_from, _modified_to]
|
|
out: [id, name, description, url]
|
|
|
|
UpdateBlogCategoryI18n:
|
|
type: update
|
|
model_class: BlogCategory
|
|
inOutTypes: {in: object, out: object}
|
|
fields:
|
|
in: [=id, name, description, url]
|
|
out: [_update]
|