Files
Phraseanet/API_documentation/v3/schemas.yaml
jygaulier 5cb70407a6 PHRAS-3153_Doc-to-Swagger
- add extended mode to /record and /story
- fix compilation in 1 file
- better examples
- todo : extended mode for /search
- todo : check "include[]" available keys (compare with extended mode)
- todo : remove 'id' type ?
2021-02-11 19:41:40 +01:00

50 lines
1.0 KiB
YAML

RecordPatch_metadata:
type: object
properties:
field_name:
type: string
meta_struct_id:
$ref: 'common.yaml#/ID'
action:
type: string
enum:
- set
- add
- delete
- replace
value:
# todo : change to string, int, number, array
type: string
RecordPatch_status:
type: object
required:
- bit
- state
properties:
bit:
type: integer
minimum: 4
maximum: 31
state:
type: boolean
RecordPatch:
description: 'Metadata, status, collection, etc to be set for a record'
type: object
properties:
metadatas:
type: array
items:
$ref: '#/RecordPatch_metadata'
status:
type: array
items:
$ref: '#/RecordPatch_status'
# -------------------- searchraw ---------------
# -------------------- search ---------------