diff --git a/controllers/session.go b/controllers/session.go index 01dd9eb7..0761d8d2 100644 --- a/controllers/session.go +++ b/controllers/session.go @@ -68,7 +68,7 @@ func (c *ApiController) GetSessions() { // @Title GetSingleSession // @Tag Session API // @Description Get session for one user in one application. -// @Param id query string true "The id(organization/application/user) of session" +// @Param sessionPkId query string true "The id(organization/user/application) of session" // @Success 200 {array} string The Response object // @router /get-session [get] func (c *ApiController) GetSingleSession() { @@ -87,7 +87,7 @@ func (c *ApiController) GetSingleSession() { // @Title UpdateSession // @Tag Session API // @Description Update session for one user in one application. -// @Param id query string true "The id(organization/application/user) of session" +// @Param id query string true "The id(organization/user/application) of session" // @Success 200 {array} string The Response object // @router /update-session [post] func (c *ApiController) UpdateSession() { @@ -106,7 +106,7 @@ func (c *ApiController) UpdateSession() { // @Title AddSession // @Tag Session API // @Description Add session for one user in one application. If there are other existing sessions, join the session into the list. -// @Param id query string true "The id(organization/application/user) of session" +// @Param id query string true "The id(organization/user/application) of session" // @Param sessionId query string true "sessionId to be added" // @Success 200 {array} string The Response object // @router /add-session [post] @@ -126,7 +126,7 @@ func (c *ApiController) AddSession() { // @Title DeleteSession // @Tag Session API // @Description Delete session for one user in one application. -// @Param id query string true "The id(organization/application/user) of session" +// @Param id query string true "The id(organization/user/application) of session" // @Success 200 {array} string The Response object // @router /delete-session [post] func (c *ApiController) DeleteSession() { @@ -145,7 +145,7 @@ func (c *ApiController) DeleteSession() { // @Title IsSessionDuplicated // @Tag Session API // @Description Check if there are other different sessions for one user in one application. -// @Param id query string true "The id(organization/application/user) of session" +// @Param sessionPkId query string true "The id(organization/user/application) of session" // @Param sessionId query string true "sessionId to be checked" // @Success 200 {array} string The Response object // @router /is-session-duplicated [get] diff --git a/swagger/swagger.json b/swagger/swagger.json index 39adffe5..2537f3a1 100644 --- a/swagger/swagger.json +++ b/swagger/swagger.json @@ -638,7 +638,7 @@ { "in": "query", "name": "id", - "description": "The id(organization/application/user) of session", + "description": "The id(organization/user/application) of session", "required": true, "type": "string" }, @@ -1448,7 +1448,7 @@ { "in": "query", "name": "id", - "description": "The id(organization/application/user) of session", + "description": "The id(organization/user/application) of session", "required": true, "type": "string" } @@ -3318,8 +3318,8 @@ "parameters": [ { "in": "query", - "name": "id", - "description": "The id(organization/application/user) of session", + "name": "sessionPkId", + "description": "The id(organization/user/application) of session", "required": true, "type": "string" } @@ -4034,8 +4034,8 @@ "parameters": [ { "in": "query", - "name": "id", - "description": "The id(organization/application/user) of session", + "name": "sessionPkId", + "description": "The id(organization/user/application) of session", "required": true, "type": "string" }, @@ -5457,7 +5457,7 @@ { "in": "query", "name": "id", - "description": "The id(organization/application/user) of session", + "description": "The id(organization/user/application) of session", "required": true, "type": "string" } diff --git a/swagger/swagger.yml b/swagger/swagger.yml index 62213f4b..dd02278a 100644 --- a/swagger/swagger.yml +++ b/swagger/swagger.yml @@ -413,7 +413,7 @@ paths: parameters: - in: query name: id - description: The id(organization/application/user) of session + description: The id(organization/user/application) of session required: true type: string - in: query @@ -935,7 +935,7 @@ paths: parameters: - in: query name: id - description: The id(organization/application/user) of session + description: The id(organization/user/application) of session required: true type: string responses: @@ -2159,8 +2159,8 @@ paths: operationId: ApiController.GetSingleSession parameters: - in: query - name: id - description: The id(organization/application/user) of session + name: sessionPkId + description: The id(organization/user/application) of session required: true type: string responses: @@ -2629,8 +2629,8 @@ paths: operationId: ApiController.IsSessionDuplicated parameters: - in: query - name: id - description: The id(organization/application/user) of session + name: sessionPkId + description: The id(organization/user/application) of session required: true type: string - in: query @@ -3567,7 +3567,7 @@ paths: parameters: - in: query name: id - description: The id(organization/application/user) of session + description: The id(organization/user/application) of session required: true type: string responses: