From c9feabb4bfa0d7d082c1e8e1410b51ecce3ca867 Mon Sep 17 00:00:00 2001
From: Valentin Rigal <rigal@teklia.com>
Date: Thu, 13 Jun 2019 13:24:51 +0000
Subject: [PATCH] ListTranscriptionsEntities endpoint

---
 arkindex/schema.yml | 50 +++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 50 insertions(+)

diff --git a/arkindex/schema.yml b/arkindex/schema.yml
index c616705..184f680 100644
--- a/arkindex/schema.yml
+++ b/arkindex/schema.yml
@@ -4696,6 +4696,56 @@ paths:
                 - transcriptions
       tags:
       - ml
+  /api/v1/transcription/{id}/entities/:
+    get:
+      description: List existing entities linked to a specific transcription
+      operationId: ListTranscriptionEntities
+      parameters:
+      - description: ''
+        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
+      responses:
+        '200':
+          content:
+            application/json:
+              schema:
+                properties:
+                  entity:
+                    properties:
+                      id:
+                        type: string
+                      name:
+                        type: string
+                      type:
+                        enum:
+                        - person
+                        - location
+                        - subject
+                        - organization
+                        - misc
+                    required:
+                    - name
+                    - type
+                    type: object
+                  length:
+                    type: integer
+                  offset:
+                    type: integer
+                required:
+                - entity
+                - offset
+                - length
+      tags:
+      - entities
   /api/v1/transcription/{id}/entity/:
     post:
       description: Link an existing Entity to a given transcription with its position
-- 
GitLab