From 651b4bcd1bbc73a90ace5b3b289ca8dae7dcffbc Mon Sep 17 00:00:00 2001 From: daniel-izmaylov Date: Wed, 5 Jul 2023 11:49:06 +0300 Subject: [PATCH] updated delete user info --- sources/wenet-incentive_server-openapi.json | 87 ++------------------- 1 file changed, 6 insertions(+), 81 deletions(-) diff --git a/sources/wenet-incentive_server-openapi.json b/sources/wenet-incentive_server-openapi.json index fc31634..0182232 100644 --- a/sources/wenet-incentive_server-openapi.json +++ b/sources/wenet-incentive_server-openapi.json @@ -489,88 +489,16 @@ } } }, - "/norm/apps/{app_id}/users/{user_id}": { - "post": { - "tags": [ - "norms" - ], - "summary": "adds a user norm", - "operationId": "user_norm_update", - "description": "adds a user norm.", - "parameters": [ - { - "in": "path", - "name": "user_id", - "description": "The identifier of the user.", - "required": true, - "schema": { - "type": "string" - } - }, - { - "in": "path", - "name": "app_id", - "description": "The identifier of the app.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "requestBody": { - "description": "The added norm.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/norm" - } - } - } - }, - "responses": { - "200": { - "description": "norm saved", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/successful_operation" - } - } - } - }, - "400": { - "description": "wrong user id.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/wrong_user_id" - } - } - } - } - } - }, - "get": { + "/messages/Issued/{user_id}": { + "delete": { "tags": [ - "norms" + "Incentive Messages" ], - "summary": "get the user norms", - "operationId": "get_user_norms", - "description": "get the user norms", + "summary": "Delete user specific information", "parameters": [ { "in": "path", "name": "user_id", - "description": "The identifier of the user.", - "required": true, - "schema": { - "type": "string" - } - }, - { - "in": "path", - "name": "app_id", - "description": "The identifier of the app.", "required": true, "schema": { "type": "string" @@ -579,14 +507,11 @@ ], "responses": { "200": { - "description": "successful search", + "description": "Successfully deleted", "content": { "application/json": { "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/norms" - } + "$ref": "#/components/schemas/incentive_info_user" } } }