Skip to content
Snippets Groups Projects
Commit 2f41e386 authored by Valentin Rigal's avatar Valentin Rigal Committed by Erwan Rouchet
Browse files

Update schema for transcriptions endpoint

parent 4a7cfffe
No related branches found
No related tags found
No related merge requests found
......@@ -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