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

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


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

commit b3bd2cbae1da0605139885651f9c0ada2c7f7a94
Author: Sergey Kamov <[email protected]>
AuthorDate: Fri Aug 28 15:45:45 2020 +0300

    WIP.
---
 openapi/nlpcraft_swagger.yml | 32 +++++++++++++-------------------
 1 file changed, 13 insertions(+), 19 deletions(-)

diff --git a/openapi/nlpcraft_swagger.yml b/openapi/nlpcraft_swagger.yml
index 10a42eb..66eda92 100644
--- a/openapi/nlpcraft_swagger.yml
+++ b/openapi/nlpcraft_swagger.yml
@@ -158,14 +158,14 @@ paths:
           description: Failed operation.
           schema:
             $ref: '#/definitions/Error'
-  /model/enhance:
+  /model/inspect:
     post:
       tags:
         - Model
-      summary: Model enchance suggestions for model.
+      summary: Model inspections.
       description: >-
-        TODO:
-      operationId: enhance
+        Inspections for given model.
+      operationId: inspect
       parameters:
         - in: body
           name: Payload body
@@ -176,6 +176,7 @@ paths:
             required:
               - acsTok
               - mdlId
+              - types
             properties:
               acsTok:
                 type: string
@@ -185,11 +186,12 @@ paths:
                 type: string
                 maxLength: 32
                 description: Data model ID for which elements synonyms will be 
suggested
-              minScore:
-                type: number
-                format: double
+              types:
+                type: array
+                items:
+                  type: string
                 description: >-
-                  Minimal score. Range from 0 to 1. Default 0.
+                  Inspections set. Possible values are: INSPECTION_MACROS, 
INSPECTION_SYNONYMS, INSPECTION_INTENTS, SUGGEST_SYNONYMS or ALL.
       responses:
         '200':
           description: Successful operation.
@@ -197,24 +199,16 @@ paths:
             type: object
             required:
               - status
-              - srvReqId
+              - result
             properties:
               status:
                 type: string
                 description: Status code of this operation
                 enum:
                   - API_OK
-              suggestions:
+              result:
                 type: object
-                description: Synonyms suggestions for given model
-                required:
-                  - acsTok
-                  - mdlId
-                properties:
-                  acsTok:
-                    type: string
-                    description: Access token obtain via '/signin' call
-                    maxLength: 256
+                description: Inspections data for given model
 
         '400':
           description: Failed operation.

Reply via email to