This is an automated email from the ASF dual-hosted git repository.

sergeykamov pushed a commit to branch NLPCRAFT-371
in repository https://gitbox.apache.org/repos/asf/incubator-nlpcraft.git


The following commit(s) were added to refs/heads/NLPCRAFT-371 by this push:
     new d4a7dbc  WIP.
d4a7dbc is described below

commit d4a7dbcf16dff54ad833d7f19c8b651edaaffd33
Author: Sergey Kamov <[email protected]>
AuthorDate: Thu Jul 22 14:31:58 2021 +0300

    WIP.
---
 openapi/nlpcraft_swagger.yml | 57 ++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 57 insertions(+)

diff --git a/openapi/nlpcraft_swagger.yml b/openapi/nlpcraft_swagger.yml
index 4b0be1e..c317157 100644
--- a/openapi/nlpcraft_swagger.yml
+++ b/openapi/nlpcraft_swagger.yml
@@ -234,6 +234,63 @@ paths:
           description: Failed operation.
           schema:
             $ref: '#/definitions/Error'
+  /model/syns:
+    post:
+      tags:
+        - Tools
+      summary: Gets model element synonyms.
+      description: >-
+        Gets model element synonyms.
+        Administrative privileges required.
+      operationId: syns
+      parameters:
+        - in: body
+          name: Payload body
+          description: JSON request.
+          required: true
+          schema:
+            type: object
+            required:
+              - acsTok
+              - mdlId
+              - elemId
+            properties:
+              acsTok:
+                type: string
+                description: Access token obtain via '/signin' call.
+                maxLength: 256
+              mdlId:
+                type: string
+                maxLength: 32
+                description: ID of the model to run synonym suggestion on.
+              elemId:
+                type: string
+                description: ID of the model element to getting synonyms.
+      responses:
+        '200':
+          description: Successful operation.
+          schema:
+            type: object
+            required:
+              - status
+              - synonyms
+              - values
+            properties:
+              status:
+                type: string
+                description: Status code of this operation.
+                enum:
+                  - API_OK
+              synonyms:
+                type: object
+                description: Synonyms list.
+              values:
+                type: object
+                description: Values map (value name to vaule synonyms list). 
Empty if element doesn't contain values.
+        '400':
+          description: Failed operation.
+          schema:
+            $ref: '#/definitions/Error'
   /check:
     post:
       tags:

Reply via email to