Skip to content
Snippets Groups Projects
Commit de37505c authored by Erwan Rouchet's avatar Erwan Rouchet
Browse files

Merge branch 'update-schema-for-transcriptions-endpoint' into 'master'

Update schema for transcriptions endpoint

See merge request !340
parents 4a7cfffe 2f41e386
No related branches found
No related tags found
1 merge request!340Update schema for transcriptions endpoint
......@@ -394,7 +394,7 @@ class EntityCreateSerializer(EntityLightSerializer):
Serialize an entity with a possible parents and children
"""
corpus = serializers.PrimaryKeyRelatedField(queryset=Corpus.objects.none())
metas = serializers.HStoreField(child=serializers.CharField())
metas = serializers.HStoreField(child=serializers.CharField(), required=False)
children = EntityLinkSerializer(many=True, read_only=True)
parents = EntityLinkSerializer(many=True, read_only=True)
......
......@@ -157,6 +157,26 @@ paths:
security: []
tags:
- elements
parameters:
- description: Element id
in: path
name: id
required: true
schema:
type: string
- description: A page number within the paginated result set.
in: query
name: page
required: false
schema:
type: integer
- description: Transcription type filter
in: query
name: type
required: false
schema:
type: string
enum: ["page", "paragraph", "line", "word", "character"]
/api/v1/elements/:
get:
operationId: ListElements
......@@ -209,13 +229,18 @@ paths:
security: []
tags:
- elements
/api/v1/entity/search/:
get:
operationId: SearchEntities
tags:
- elements
/api/v1/entity/{id}/elements/:
get:
operationId: ListEntityElements
description: Get all elements that have a link with the entity
security: []
tags:
- elements
- elements
/api/v1/image/:
post:
operationId: CreateImage
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment