Skip to content

Commit

Permalink
fix(apidoc): 模型注册 => 操作 Action API path 不对 (#254)
Browse files Browse the repository at this point in the history
修改 action path 为  /api/v1/model/systems/{system_id}/actions/{action_id}

api doc 为  /api/v1/model/systems/{system_id}/action/{action_id}
  • Loading branch information
kingofzihua authored Jun 30, 2023
1 parent c7a8c3b commit b175939
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/api/model/handler/action.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ func BatchCreateActions(c *gin.Context) {
// @Header 200 {string} X-Request-Id "the request id"
// @Security AppCode
// @Security AppSecret
// @Router /api/v1/systems/{system_id}/action/{action_id} [put]
// @Router /api/v1/systems/{system_id}/actions/{action_id} [put]
func UpdateAction(c *gin.Context) {
systemID := c.Param("system_id")

Expand Down Expand Up @@ -252,7 +252,7 @@ func UpdateAction(c *gin.Context) {
// @Header 200 {string} X-Request-Id "the request id"
// @Security AppCode
// @Security AppSecret
// @Router /api/v1/systems/{system_id}/action/{action_id} [delete]
// @Router /api/v1/systems/{system_id}/actions/{action_id} [delete]
func DeleteAction(c *gin.Context) {
systemID := c.Param("system_id")
actionID := c.Param("action_id")
Expand Down

0 comments on commit b175939

Please sign in to comment.