tibi-docs/api/collections/ssr.yml

58 lines
1.2 KiB
YAML
Raw Permalink Normal View History

2023-02-21 14:00:56 +01:00
########################################################################
# SSR Dummy collections
########################################################################
name: ssr
meta:
label: { de: "SSR Dummy", en: "ssr dummy" }
muiIcon: server
rowIdentTpl: { twig: "{{ id }}" }
2024-01-27 19:58:35 +01:00
2023-02-21 14:00:56 +01:00
views:
- type: simpleList
mediaQuery: "(max-width: 600px)"
primaryText: id
secondaryText: insertTime
tertiaryText: path
- type: table
columns:
- id
- insertTime
2024-04-10 10:26:40 +02:00
- source: path
filter: true
2023-02-21 14:00:56 +01:00
permissions:
public:
methods:
2024-04-10 10:26:40 +02:00
get: true
post: true
2023-02-21 14:00:56 +01:00
put: false
delete: false
user:
methods:
get: true
2024-04-10 10:26:40 +02:00
post: false
2023-02-21 14:00:56 +01:00
put: false
2024-04-10 10:26:40 +02:00
delete: true
2023-02-21 14:00:56 +01:00
hooks:
get:
read:
type: javascript
file: hooks/ssr/get_read.js
post:
bind:
type: javascript
file: hooks/ssr/post_bind.js
fields:
- name: path
type: string
index: [single, unique]
2024-01-27 19:58:35 +01:00
2023-02-21 14:00:56 +01:00
- name: content
type: string
meta:
inputProps:
multiline: true