Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
87 changes: 6 additions & 81 deletions sources/wenet-incentive_server-openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
}
}
}
Expand Down